From 9231189b62413d0e5427371eb97cd7961ec8be34 Mon Sep 17 00:00:00 2001 From: Brendan Kehoe Date: Fri, 28 Aug 1998 11:23:35 +0000 Subject: [PATCH] loop.c (check_dbra_loop): Pass COMPARISON_VALUE, not COMPARISON_VAL, into invariant_p. * loop.c (check_dbra_loop): Pass COMPARISON_VALUE, not COMPARISON_VAL, into invariant_p. From-SVN: r22054 --- gcc/ChangeLog | 5 +++++ gcc/loop.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a4c535ac1b7..e26f2a2623a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +1998-08-28 Brendan Kehoe + + * loop.c (check_dbra_loop): Pass COMPARISON_VALUE, not + COMPARISON_VAL, into invariant_p. + Fri Aug 28 15:13:25 1998 J"orn Rennecke * regmove.c (regclass_compatible_p): New function. diff --git a/gcc/loop.c b/gcc/loop.c index e581f44d7ca..ac091e93d41 100644 --- a/gcc/loop.c +++ b/gcc/loop.c @@ -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) -- 2.30.2