]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/96349 - avoid abnormal coalescing issues in loop split
authorRichard Biener <rguenther@suse.de>
Tue, 28 Jul 2020 07:45:52 +0000 (09:45 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 11 Sep 2020 10:41:42 +0000 (12:41 +0200)
commitd1f9b13fd45f9c7ca6c5dd31245705388645f306
tree0f84d5f4f4441604bd214003c4ed8985c2f152e3
parent80ff137368412a1628cd56b76a860a76a08fd8ea
tree-optimization/96349 - avoid abnormal coalescing issues in loop split

This avoids splitting a loop when the entry value of a loop PHI is
involved with abnormal coalescing.

2020-07-28  Richard Biener  <rguenther@suse.de>

PR tree-optimization/96349
* tree-ssa-loop-split.c (stmt_semi_invariant_p_1): When the
condition runs into a loop PHI with an abnormal entry value give up.

* gcc.dg/torture/pr96349.c: New testcase.

(cherry picked from commit 2b2f3867c09c8977268b8ffbd646ac242188b335)
gcc/testsuite/gcc.dg/torture/pr96349.c [new file with mode: 0644]
gcc/tree-ssa-loop-split.c