diff options
author | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-01-08 07:39:01 +0000 |
---|---|---|
committer | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-01-08 07:39:01 +0000 |
commit | d9458edccad29649a2e452c4dd728698181aa48a (patch) | |
tree | 3a6ff180c658ef9460fc25b2abf9ff49fe330a6c /gcc/graphite.c | |
parent | b33d4eb4b7266604ebd053ccce1158a96ae946fa (diff) | |
download | gcc-d9458edccad29649a2e452c4dd728698181aa48a.tar.gz |
Fix PR42521.
2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
PR middle-end/42521
* graphite.c (graphite_finalize): Call scev_reset.
(graphite_transform_loops): Do not call scev_reset between the code
generation of scops.
* testsuite/gcc.dg/graphite/pr42521.c: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@155728 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/graphite.c')
-rw-r--r-- | gcc/graphite.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/graphite.c b/gcc/graphite.c index 83d484aae56..7037a3fa1a0 100644 --- a/gcc/graphite.c +++ b/gcc/graphite.c @@ -228,6 +228,7 @@ graphite_finalize (bool need_cfg_cleanup_p) { if (need_cfg_cleanup_p) { + scev_reset (); cleanup_tree_cfg (); profile_status = PROFILE_ABSENT; release_recorded_exits (); @@ -279,10 +280,7 @@ graphite_transform_loops (void) check_poly_representation (scop); if (transform_done) - { - scev_reset (); - need_cfg_cleanup_p = true; - } + need_cfg_cleanup_p = true; } htab_delete (bb_pbb_mapping); |