summaryrefslogtreecommitdiff
path: root/gcc/loop-iv.c
diff options
context:
space:
mode:
authorrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>2004-12-28 10:33:39 +0000
committerrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>2004-12-28 10:33:39 +0000
commit15943825f61000481adcae55e35a999e29f563b0 (patch)
tree613dd3455c0d065b6e486371a00e36022ee964ad /gcc/loop-iv.c
parent55ab7ff952fa917c277f0bda28359d1bf5701a44 (diff)
downloadgcc-15943825f61000481adcae55e35a999e29f563b0.tar.gz
PR rtl-optimization/19103
* loop-iv.c (iv_number_of_iterations): Fix typo. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92669 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/loop-iv.c')
-rw-r--r--gcc/loop-iv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/loop-iv.c b/gcc/loop-iv.c
index 704d51e07af..04f53b88d3e 100644
--- a/gcc/loop-iv.c
+++ b/gcc/loop-iv.c
@@ -2132,7 +2132,7 @@ iv_number_of_iterations (struct loop *loop, rtx insn, rtx condition,
if (iv0.step == const0_rtx)
step_val = -INTVAL (iv1.step);
else
- step_val = INTVAL (iv1.step);
+ step_val = INTVAL (iv0.step);
/* Ignore loops of while (i-- < 10) type. */
if (step_val < 0)