diff options
author | Richard Biener <rguenther@suse.de> | 2018-01-08 15:04:53 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2018-01-08 15:04:53 +0000 |
commit | b33086c0a74ecc4ca0abb4011bb30564198f034e (patch) | |
tree | 7fa8f70a82d245485545406f45cc9708e2787ba3 /gcc/graphite.c | |
parent | 87c4dace919a404c10521061af2bad6e4752810e (diff) | |
download | gcc-b33086c0a74ecc4ca0abb4011bb30564198f034e.zip gcc-b33086c0a74ecc4ca0abb4011bb30564198f034e.tar.gz gcc-b33086c0a74ecc4ca0abb4011bb30564198f034e.tar.bz2 |
re PR tree-optimization/83563 ([graphite] ICE: Segmentation fault (in instantiate_scev_r))
2018-01-08 Richard Biener <rguenther@suse.de>
PR tree-optimization/83563
* graphite.c (canonicalize_loop_closed_ssa_form): Reset the SCEV
cache.
* gcc.dg/graphite/pr83563.c: New testcase.
From-SVN: r256343
Diffstat (limited to 'gcc/graphite.c')
-rw-r--r-- | gcc/graphite.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/graphite.c b/gcc/graphite.c index fb8437c..8208d3d 100644 --- a/gcc/graphite.c +++ b/gcc/graphite.c @@ -322,6 +322,10 @@ canonicalize_loop_closed_ssa_form (void) FOR_EACH_LOOP (loop, LI_FROM_INNERMOST) canonicalize_loop_closed_ssa (loop); + /* We can end up releasing duplicate exit PHIs and also introduce + additional copies so the cached information isn't correct anymore. */ + scev_reset (); + checking_verify_loop_closed_ssa (true); } |