]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/117113 - ICE with unroll-and-jam
authorRichard Biener <rguenther@suse.de>
Mon, 3 Feb 2025 14:12:52 +0000 (15:12 +0100)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 4 Feb 2025 09:59:55 +0000 (10:59 +0100)
commit0675eb17480bada678bf2769d39732027abcd6d0
treee454e143eb592cb5fcc4ae9930fc5d824f09a8d1
parent887bdabfe3e315d661bed55800cd4f64542c7029
tree-optimization/117113 - ICE with unroll-and-jam

When there's an inner loop without virtual header PHI but the outer
loop has one the fusion process cannot handle the need to create
an inner loop virtual header PHI.  Punt in this case.

PR tree-optimization/117113
* gimple-loop-jam.cc (unroll_jam_possible_p): Detect when
we cannot handle virtual SSA update.

* gcc.dg/torture/pr117113.c: New testcase.
gcc/gimple-loop-jam.cc
gcc/testsuite/gcc.dg/torture/pr117113.c [new file with mode: 0644]