aboutsummaryrefslogtreecommitdiff
path: root/libgcc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2024-04-25 08:08:24 +0200
committerRichard Biener <rguenther@suse.de>2024-04-25 15:20:25 +0200
commit59ff81835fee22a9d4c9a481a4d1814583aae945 (patch)
tree2a4ad9ebedd0989500a60103e86d383bd3a4d1ea /libgcc
parent1d238c84025aaef1641e4000bd2a8f4328b474dd (diff)
downloadgcc-59ff81835fee22a9d4c9a481a4d1814583aae945.zip
gcc-59ff81835fee22a9d4c9a481a4d1814583aae945.tar.gz
gcc-59ff81835fee22a9d4c9a481a4d1814583aae945.tar.bz2
tree-optimization/114792 - order loops to unloops in CH
When we use unloop_loops we have to make sure to have loops ordered inner to outer as otherwise we can wreck inner loop structure where unlooping relies on that being intact. The following re-sorts the vector of to unloop loops after copy-header as that adds to the vector in two places and the wrong order. PR tree-optimization/114792 * tree-ssa-loop-ch.cc (ch_order_loops): New function. (ch_base::copy_headers): Sort loops to unloop inner-to-outer. * gcc.dg/torture/pr114792.c: New testcase.
Diffstat (limited to 'libgcc')
0 files changed, 0 insertions, 0 deletions