diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2004-02-06 22:10:22 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2004-02-06 22:10:22 +0000 |
commit | 761fa0f7a25f2519470fcd0c9351f88dae0761cb (patch) | |
tree | 3e667c764d7a1d2291189ea313142e2cbb69021d /gcc/reload1.c | |
parent | 15d72060874c9714f5df3d6693a2a4f9b6c06528 (diff) | |
download | gcc-761fa0f7a25f2519470fcd0c9351f88dae0761cb.zip gcc-761fa0f7a25f2519470fcd0c9351f88dae0761cb.tar.gz gcc-761fa0f7a25f2519470fcd0c9351f88dae0761cb.tar.bz2 |
reload1.c (check_eliminable_occurrences): Optimize the reset of can_eliminate.
* reload1.c (check_eliminable_occurrences): Optimize the reset
of can_eliminate.
(eliminate_regs_in_insn): Likewise.
From-SVN: r77427
Diffstat (limited to 'gcc/reload1.c')
-rw-r--r-- | gcc/reload1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/reload1.c b/gcc/reload1.c index 171283c..dacf1b5 100644 --- a/gcc/reload1.c +++ b/gcc/reload1.c @@ -2834,7 +2834,7 @@ check_eliminable_occurrences (rtx x) struct elim_table *ep; for (ep = reg_eliminate; ep < ®_eliminate[NUM_ELIMINABLE_REGS]; ep++) - if (ep->from_rtx == x && ep->can_eliminate) + if (ep->from_rtx == x) ep->can_eliminate = 0; return; } @@ -3100,7 +3100,7 @@ eliminate_regs_in_insn (rtx insn, int replace) eliminate this reg. */ for (ep = reg_eliminate; ep < ®_eliminate[NUM_ELIMINABLE_REGS]; ep++) - if (ep->from_rtx == orig_operand[i] && ep->can_eliminate) + if (ep->from_rtx == orig_operand[i]) ep->can_eliminate = 0; } |