summaryrefslogtreecommitdiff
path: root/gcc/ira.c
diff options
context:
space:
mode:
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2015-05-26 11:02:27 +0000
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2015-05-26 11:02:27 +0000
commitdcd6d0f4c726667e51d190a5823ee277b334ffa8 (patch)
treedba2c286c477be2bf4c71b98ce3dda560e91b05a /gcc/ira.c
parentd5e47a460c58fc586e45a48861b7e240bac9e7ef (diff)
downloadgcc-dcd6d0f4c726667e51d190a5823ee277b334ffa8.tar.gz
gcc/
* caller-save.c (init_caller_save): Base temporary register numbers on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER. * cfgloopanal.c (init_set_costs): Likewise. * dojump.c (prefer_and_bit_test): Likewise. * expr.c (init_expr_target): Likewise. * ira.c (setup_prohibited_mode_move_regs): Likewise. * lower-subreg.c (init_lower_subreg): Likewise. * postreload.c (reload_cse_regs_1): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223688 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ira.c')
-rw-r--r--gcc/ira.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ira.c b/gcc/ira.c
index 47b57252bb6..804d162f0f0 100644
--- a/gcc/ira.c
+++ b/gcc/ira.c
@@ -1767,8 +1767,8 @@ setup_prohibited_mode_move_regs (void)
if (ira_prohibited_mode_move_regs_initialized_p)
return;
ira_prohibited_mode_move_regs_initialized_p = true;
- test_reg1 = gen_rtx_REG (word_mode, FIRST_PSEUDO_REGISTER);
- test_reg2 = gen_rtx_REG (word_mode, FIRST_PSEUDO_REGISTER);
+ test_reg1 = gen_rtx_REG (word_mode, LAST_VIRTUAL_REGISTER + 1);
+ test_reg2 = gen_rtx_REG (word_mode, LAST_VIRTUAL_REGISTER + 2);
move_pat = gen_rtx_SET (test_reg1, test_reg2);
move_insn = gen_rtx_INSN (VOIDmode, 0, 0, 0, move_pat, 0, -1, 0);
for (i = 0; i < NUM_MACHINE_MODES; i++)