From: Kazu Hirata Date: Fri, 6 Feb 2004 22:10:22 +0000 (+0000) Subject: reload1.c (check_eliminable_occurrences): Optimize the reset of can_eliminate. X-Git-Tag: releases/gcc-4.0.0~10296 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=761fa0f7a25f2519470fcd0c9351f88dae0761cb;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b44197f3e1ae..a13721257e67 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2004-02-06 Kazu Hirata + + * reload1.c (check_eliminable_occurrences): Optimize the reset + of can_eliminate. + (eliminate_regs_in_insn): Likewise. + 2004-02-06 Daniel Berlin Josef Zlomek diff --git a/gcc/reload1.c b/gcc/reload1.c index 171283c4b55f..dacf1b5e584d 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; }