aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrendan Kehoe <brendan@cygnus.com>1998-08-28 11:23:35 +0000
committerBrendan Kehoe <brendan@gcc.gnu.org>1998-08-28 07:23:35 -0400
commit9231189b62413d0e5427371eb97cd7961ec8be34 (patch)
tree74daff483faf8830d5075af1686ef31e0202418d
parentf285ef20725bb7bcf901c6ddc573ecff29652ec6 (diff)
downloadgcc-9231189b62413d0e5427371eb97cd7961ec8be34.zip
gcc-9231189b62413d0e5427371eb97cd7961ec8be34.tar.gz
gcc-9231189b62413d0e5427371eb97cd7961ec8be34.tar.bz2
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
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/loop.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a4c535a..e26f2a2 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/loop.c b/gcc/loop.c
index e581f44..ac091e9 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)