Commit b6f90b23 authored by dje's avatar dje
Browse files

2005-05-31 Pat Haugen <pthaugen@us.ibm.com>

        * loop.c (loop_invariant_p, valid_initial_value_p): Revert last
        change.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100408 138bc75d-0d04-0410-961f-82ee72b054a4
parent 1b62e105
2005-05-31 Pat Haugen <pthaugen@us.ibm.com>
* loop.c (loop_invariant_p, valid_initial_value_p): Revert last
change.
2005-05-31 Andrew Pinski <pinskia@physics.uc.edu> 2005-05-31 Andrew Pinski <pinskia@physics.uc.edu>
   
PR middle-end/20931 PR middle-end/20931
......
...@@ -3645,8 +3645,7 @@ loop_invariant_p (const struct loop *loop, rtx x) ...@@ -3645,8 +3645,7 @@ loop_invariant_p (const struct loop *loop, rtx x)
return 1; return 1;
if (LOOP_INFO (loop)->has_call if (LOOP_INFO (loop)->has_call
&& REGNO (x) < FIRST_PSEUDO_REGISTER && REGNO (x) < FIRST_PSEUDO_REGISTER && call_used_regs[REGNO (x)])
&& TEST_HARD_REG_BIT (regs_invalidated_by_call, REGNO (x)))
return 0; return 0;
/* Out-of-range regs can occur when we are called from unrolling. /* 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) ...@@ -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. */ some machines, don't use any hard registers at all. */
if (REGNO (x) < FIRST_PSEUDO_REGISTER if (REGNO (x) < FIRST_PSEUDO_REGISTER
&& (SMALL_REGISTER_CLASSES && (SMALL_REGISTER_CLASSES
|| (call_seen || (call_seen && call_used_regs[REGNO (x)])))
&& TEST_HARD_REG_BIT (regs_invalidated_by_call, REGNO (x)))))
return 0; return 0;
/* Don't use registers that have been clobbered before the start of the /* Don't use registers that have been clobbered before the start of the
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment