]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/118569 - LC SSA broken after unrolling
authorRichard Biener <rguenther@suse.de>
Tue, 21 Jan 2025 08:45:41 +0000 (09:45 +0100)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 21 Jan 2025 12:53:13 +0000 (13:53 +0100)
commit1d25e357c047f48cee50df318e965a0fbf84e2fe
treec1d244f6b83e3f6b28e492f1fe87b4359a977eca
parenteb0b551c5570d98dd7cf21fa1bd0240a0c9d875f
tree-optimization/118569 - LC SSA broken after unrolling

The following amends the previous fix to mark all of the loop BBs
as need to be scanned for new LC PHI uses when its nesting parents
changed, noticing one caller of fix_loop_placement was already
doing that.  So the following moves this code into fix_loop_placement,
covering both callers now.

PR tree-optimization/118569
* cfgloopmanip.cc (fix_loop_placement): When the loops
nesting parents changed, mark all blocks to be scanned
for LC PHI uses.
(fix_bb_placements): Remove code moved into fix_loop_placement.

* gcc.dg/torture/pr118569.c: New testcase.
gcc/cfgloopmanip.cc
gcc/testsuite/gcc.dg/torture/pr118569.c [new file with mode: 0644]