diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-09-07 14:56:50 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-09-07 14:56:50 +0000 |
commit | 71bd4883d964169b14dfd5f83896fbc07cf2b55c (patch) | |
tree | 9b2384fc9f06d399e81675e5cf03dd4d047da7a0 /gcc/tree-ssa-loop-ivopts.c | |
parent | b31f705bc2e1acb43b04e00cea8a3bdceef51a2a (diff) | |
download | gcc-71bd4883d964169b14dfd5f83896fbc07cf2b55c.tar.gz |
* tree-ssa-loop-ivopts.c (iv_value): Avoid invalid sharing on niter.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87143 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-loop-ivopts.c')
-rw-r--r-- | gcc/tree-ssa-loop-ivopts.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-loop-ivopts.c b/gcc/tree-ssa-loop-ivopts.c index 7234660412b..be4958d2a79 100644 --- a/gcc/tree-ssa-loop-ivopts.c +++ b/gcc/tree-ssa-loop-ivopts.c @@ -2908,7 +2908,7 @@ iv_value (struct iv *iv, tree niter) tree type = TREE_TYPE (iv->base); niter = fold_convert (type, niter); - val = fold (build2 (MULT_EXPR, type, iv->step, niter)); + val = fold (build2 (MULT_EXPR, type, iv->step, unsave_expr_now (niter))); return fold (build2 (PLUS_EXPR, type, iv->base, val)); } |