aboutsummaryrefslogtreecommitdiff
path: root/gcc/loop.c
diff options
context:
space:
mode:
authorPat Haugen <pthaugen@us.ibm.com>2005-05-31 21:29:05 +0000
committerDavid Edelsohn <dje@gcc.gnu.org>2005-05-31 17:29:05 -0400
commitec22e73ba8b0c57e65fb72522603fe7555123010 (patch)
tree36f36cd61cf100c4e81b792974e93885a3672b43 /gcc/loop.c
parent87d33b419bb6dc40816527b553478d482adf69ec (diff)
downloadgcc-ec22e73ba8b0c57e65fb72522603fe7555123010.zip
gcc-ec22e73ba8b0c57e65fb72522603fe7555123010.tar.gz
gcc-ec22e73ba8b0c57e65fb72522603fe7555123010.tar.bz2
loop.c (loop_invariant_p, [...]): Revert last change.
2005-05-31 Pat Haugen <pthaugen@us.ibm.com> * loop.c (loop_invariant_p, valid_initial_value_p): Revert last change. From-SVN: r100408
Diffstat (limited to 'gcc/loop.c')
-rw-r--r--gcc/loop.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/loop.c b/gcc/loop.c
index 868b052..a25c1c0 100644
--- a/gcc/loop.c
+++ b/gcc/loop.c
@@ -3645,8 +3645,7 @@ loop_invariant_p (const struct loop *loop, rtx x)
return 1;
if (LOOP_INFO (loop)->has_call
- && REGNO (x) < FIRST_PSEUDO_REGISTER
- && TEST_HARD_REG_BIT (regs_invalidated_by_call, REGNO (x)))
+ && REGNO (x) < FIRST_PSEUDO_REGISTER && call_used_regs[REGNO (x)])
return 0;
/* Out-of-range regs can occur when we are called from unrolling.
@@ -6720,8 +6719,7 @@ valid_initial_value_p (rtx x, rtx insn, int call_seen, rtx loop_start)
some machines, don't use any hard registers at all. */
if (REGNO (x) < FIRST_PSEUDO_REGISTER
&& (SMALL_REGISTER_CLASSES
- || (call_seen
- && TEST_HARD_REG_BIT (regs_invalidated_by_call, REGNO (x)))))
+ || (call_seen && call_used_regs[REGNO (x)])))
return 0;
/* Don't use registers that have been clobbered before the start of the