loop.c (check_dbra_loop): Pass COMPARISON_VALUE, not COMPARISON_VAL, into invariant_p.
authorBrendan Kehoe <brendan@cygnus.com>
Fri, 28 Aug 1998 11:23:35 +0000 (11:23 +0000)
committerBrendan Kehoe <brendan@gcc.gnu.org>
Fri, 28 Aug 1998 11:23:35 +0000 (07:23 -0400)
* loop.c (check_dbra_loop): Pass COMPARISON_VALUE, not
COMPARISON_VAL, into invariant_p.

From-SVN: r22054

gcc/ChangeLog
gcc/loop.c

index a4c535ac1b7e2408e772f4b8708f68de9f95ee14..e26f2a2623a3546560652ca5684e03d85c076b0d 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 e581f44d7cad7379c3cbde77c1bf184145393046..ac091e93d412c6b90afa5ef2bc6ddb2da723beb2 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)