diff options
author | Richard Guenther <rguenther@suse.de> | 2012-01-30 15:51:23 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2012-01-30 15:51:23 +0000 |
commit | e799d447097b728213232e08fc2e807c3e5f8265 (patch) | |
tree | e4abc17cead0b0fef2107e331dfd9d19e5b4de5a /gcc/tree-loop-distribution.c | |
parent | be5295721cf937f31d88f77e7868884e643016b4 (diff) | |
download | gcc-e799d447097b728213232e08fc2e807c3e5f8265.zip gcc-e799d447097b728213232e08fc2e807c3e5f8265.tar.gz gcc-e799d447097b728213232e08fc2e807c3e5f8265.tar.bz2 |
re PR tree-optimization/52028 (wrong code with -O2 -ftree-loop-distribution)
2012-01-30 Richard Guenther <rguenther@suse.de>
PR tree-optimization/52028
* tree-loop-distribution.c (ldist_gen): Properly update
virtual SSA form.
* gcc.dg/torture/pr52028.c: New testcase.
* gfortran.dg/ldist-pr45199.f: Adjust.
* gcc.dg/tree-ssa/ldist-16.c: Likewise.
* gcc.dg/tree-ssa/ldist-17.c: Likewise.
* gcc.dg/tree-ssa/ldist-pr45948.c: Likewise.
From-SVN: r183730
Diffstat (limited to 'gcc/tree-loop-distribution.c')
-rw-r--r-- | gcc/tree-loop-distribution.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-loop-distribution.c b/gcc/tree-loop-distribution.c index 67c3c41..06dd14d 100644 --- a/gcc/tree-loop-distribution.c +++ b/gcc/tree-loop-distribution.c @@ -1143,7 +1143,8 @@ ldist_gen (struct loop *loop, struct graph *rdg, goto ldist_done; rewrite_into_loop_closed_ssa (NULL, TODO_update_ssa); - update_ssa (TODO_update_ssa_only_virtuals | TODO_update_ssa); + mark_sym_for_renaming (gimple_vop (cfun)); + update_ssa (TODO_update_ssa_only_virtuals); ldist_done: |