* loop.c (check_dbra_loop): Pass COMPARISON_VALUE, not
authorbrendan <brendan@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 28 Aug 1998 11:23:35 +0000 (11:23 +0000)
committerbrendan <brendan@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 28 Aug 1998 11:23:35 +0000 (11:23 +0000)
COMPARISON_VAL, into invariant_p.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22054 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/loop.c

index a4c535a..e26f2a2 100644 (file)
@@ -1,3 +1,8 @@
+1998-08-28  Brendan Kehoe  <brendan@cygnus.com>
+
+       * loop.c (check_dbra_loop): Pass COMPARISON_VALUE, not
+       COMPARISON_VAL, into invariant_p.
+
 Fri Aug 28 15:13:25 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
 
         * regmove.c (regclass_compatible_p): New function.
index e581f44..ac091e9 100644 (file)
@@ -6910,7 +6910,7 @@ check_dbra_loop (loop_end, insn_count, loop_start)
                 ??? If the insns which initialize the comparison value as
                 a whole compute an invariant result, then we could move
                 them out of the loop and proceed with loop reversal.  */
-             if (!invariant_p (comparison_val))
+             if (!invariant_p (comparison_value))
                return 0;
 
              if (GET_CODE (comparison_value) == CONST_INT)