[ARC] Restore blink first when optimizing for speed.
authorClaudiu Zissulescu <claziss@synopsys.com>
Wed, 3 Apr 2019 10:08:04 +0000 (12:08 +0200)
committerClaudiu Zissulescu <claziss@gcc.gnu.org>
Wed, 3 Apr 2019 10:08:04 +0000 (12:08 +0200)
commit8f84521301fa84c4fe3ab1b5294532b6a6dd3dae
tree0a218c2fbb8b9adf24ad9163347ec268f585d2cf
parentdeb012a19d852a3decf241cb4f81f6f7a606df69
[ARC] Restore blink first when optimizing for speed.

When not optimizing for size, we can restore first blink, hence the return
instruction will be executed faster.

gcc/
xxxx-xx-xx  Claudiu Zissulescu  <claziss@synopsys.com>

* config/arc/arc.c (GMASK_LEN): Define.
(arc_restore_callee_saves): Restore first blink when
!optimize_size.

From-SVN: r270120
gcc/ChangeLog
gcc/config/arc/arc.c