aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-nested.cc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2023-06-19 09:52:45 +0200
committerRichard Biener <rguenther@suse.de>2023-06-19 12:59:47 +0200
commit916add3bf6e46467e4391e358b11ecfbc4daa275 (patch)
tree031ec98a8f614aedc58f8c9584420ee49c2a5838 /gcc/tree-nested.cc
parentde2d3b69eefde005759279d6739d9a0dbd2a05cc (diff)
downloadgcc-916add3bf6e46467e4391e358b11ecfbc4daa275.zip
gcc-916add3bf6e46467e4391e358b11ecfbc4daa275.tar.gz
gcc-916add3bf6e46467e4391e358b11ecfbc4daa275.tar.bz2
tree-optimization/110298 - CFG cleanup and stale nb_iterations
When unrolling we eventually kill nb_iterations info since it may refer to removed SSA names. But we do this only after cleaning up the CFG which in turn can end up accessing it. Fixed by swapping the two. PR tree-optimization/110298 * tree-ssa-loop-ivcanon.cc (tree_unroll_loops_completely): Clear number of iterations info before cleaning up the CFG. * gcc.dg/torture/pr110298.c: New testcase.
Diffstat (limited to 'gcc/tree-nested.cc')
0 files changed, 0 insertions, 0 deletions