[ARC] Introduce ADJUST_REG_ALLOC_ORDER.
authorClaudiu Zissulescu <claziss@synopsys.com>
Mon, 18 Mar 2019 09:28:11 +0000 (10:28 +0100)
committerClaudiu Zissulescu <claziss@gcc.gnu.org>
Mon, 18 Mar 2019 09:28:11 +0000 (10:28 +0100)
commit864e2eaa392bb8d43ac40066f06f4a23711e19c5
tree761f993336bfd40221cbc378d7243d81dc893023
parent7d7d1ce83889ee17fbf7fb8aadf23e1f5179b9ce
[ARC] Introduce ADJUST_REG_ALLOC_ORDER.

The ARC port is changing the allocation order in the
arc_conditional_register_usage function, but this is not the proper
way. Thus, we employ ADJUST_REG_ALLOC_ORDER hook for this task.

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

* config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
* config/arc/arc.c (arc_conditional_register_usage): Remove all
reg_alloc_order references.
(size_alloc_order): Define.
(arc_adjust_reg_alloc_order): New function.
* config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
order.
(ADJUST_REG_ALLOC_ORDER): Define.
(HONOR_REG_ALLOC_ORDER): Likewise.

From-SVN: r269755
gcc/ChangeLog
gcc/config/arc/arc-protos.h
gcc/config/arc/arc.c
gcc/config/arc/arc.h