aboutsummaryrefslogtreecommitdiff
path: root/libcpp/expr.cc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2022-09-07 10:44:33 +0200
committerRichard Biener <rguenther@suse.de>2022-09-07 12:08:59 +0200
commit0386609923577e07354ee63754795b2f729e7e00 (patch)
tree93223fdd5fdda888c75e21b0fe9ec617a4be13a7 /libcpp/expr.cc
parentd14514641d7d2052bc2bf1f09018e1f18f19850a (diff)
downloadgcc-0386609923577e07354ee63754795b2f729e7e00.zip
gcc-0386609923577e07354ee63754795b2f729e7e00.tar.gz
gcc-0386609923577e07354ee63754795b2f729e7e00.tar.bz2
tree-optimization/106860 - fix profile scaling in split_loop
The following fixes a mistake in loop splitting which assumes loop latches have a single predecessor and that edge is from the exit test. Instead work from the single exit edge we have to find the edge towards the latch. PR tree-optimization/106860 * tree-ssa-loop-split.cc (split_loop): Find the exit to latch edge from the loop exit edge instead of from the latch. Verify we're going to find it. * g++.dg/opt/pr106860.C: New testcase.
Diffstat (limited to 'libcpp/expr.cc')
0 files changed, 0 insertions, 0 deletions