summaryrefslogtreecommitdiffstats
path: root/gcc/lambda-code.c
diff options
context:
space:
mode:
authordberlin <dberlin@138bc75d-0d04-0410-961f-82ee72b054a4>2005-06-10 21:34:07 +0000
committerdberlin <dberlin@138bc75d-0d04-0410-961f-82ee72b054a4>2005-06-10 21:34:07 +0000
commit6126d87b1e8d94fca5687dd339fefc6f3b8b42ee (patch)
treec49b7ab0066a8daebec2563f4275123dfcb8a2a6 /gcc/lambda-code.c
parent8154c14223315b8850ebbc5f244ab4266da6fc13 (diff)
downloadppe42-gcc-6126d87b1e8d94fca5687dd339fefc6f3b8b42ee.tar.gz
ppe42-gcc-6126d87b1e8d94fca5687dd339fefc6f3b8b42ee.zip
2005-06-10 Daniel Berlin <dberlin@dberlin.org>
* lambda-code.c (replace_uses_equiv_to_x_with_y): Check step and access function against chrec_dont_know. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100831 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lambda-code.c')
-rw-r--r--gcc/lambda-code.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/lambda-code.c b/gcc/lambda-code.c
index cedc8cd129f..6dbbe6d8b8b 100644
--- a/gcc/lambda-code.c
+++ b/gcc/lambda-code.c
@@ -2182,9 +2182,9 @@ replace_uses_equiv_to_x_with_y (struct loop *loop, tree stmt, tree x,
access_fn = instantiate_parameters
(loop, analyze_scalar_evolution (loop, use));
- if (access_fn != NULL_TREE)
+ if (access_fn != NULL_TREE && access_fn != chrec_dont_know)
step = evolution_part_in_loop_num (access_fn, loop->num);
- if ((step && int_cst_value (step) == xstep)
+ if ((step && step != chrec_dont_know && int_cst_value (step) == xstep)
|| USE_FROM_PTR (use_p) == x)
SET_USE (use_p, y);
}
OpenPOWER on IntegriCloud