]> 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, 24 Jun 2025 11:07:50 +0000 (13:07 +0200)
commitf4dbdeabb2944d014d506a537a576a6f9a1f4c1f
treea866c8ba1587dceea37f1c00b9a1918bc4c81dc5
parent415bad120d8f21cd754d827da9e3d5e1fbe68d4c
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.

(cherry picked from commit 0675eb17480bada678bf2769d39732027abcd6d0)
gcc/gimple-loop-jam.cc
gcc/testsuite/gcc.dg/torture/pr117113.c [new file with mode: 0644]