]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/103458 - avoid creating new loops in CD-DCE
authorRichard Biener <rguenther@suse.de>
Mon, 29 Nov 2021 08:15:47 +0000 (09:15 +0100)
committerRichard Biener <rguenther@suse.de>
Mon, 29 Nov 2021 08:20:27 +0000 (09:20 +0100)
commit85e91ad55a69282c1b0e34569836a026a1a954d1
tree4a67dedbb8e9fc421c05838b034d9e7e6c275647
parent5e5f880d0452ef2cffb94f4a686d56833c9f4215
tree-optimization/103458 - avoid creating new loops in CD-DCE

When creating forwarders in CD-DCE we have to avoid creating loops
where we formerly did not consider those because of abnormal
predecessors.  At this point simply excuse us when there are any
abnormal predecessors.

2021-11-29  Richard Biener  <rguenther@suse.de>

PR tree-optimization/103458
* tree-ssa-dce.c (make_forwarders_with_degenerate_phis): Do not
create forwarders for blocks with abnormal predecessors.

* gcc.dg/torture/pr103458.c: New testcase.
gcc/testsuite/gcc.dg/torture/pr103458.c [new file with mode: 0644]
gcc/tree-ssa-dce.c