]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/107867 - failed abnormal cleanup in forwprop
authorRichard Biener <rguenther@suse.de>
Fri, 25 Nov 2022 12:53:14 +0000 (13:53 +0100)
committerRichard Biener <rguenther@suse.de>
Mon, 28 Nov 2022 08:00:18 +0000 (09:00 +0100)
commit0976b012d89e3d819d83cdaf0dab05925b3eb3a0
tree50028a397868bde71a0ba884e1b10f12f252b473
parentbe591d00ed6cf8ac13850d5490749651acf10139
tree-optimization/107867 - failed abnormal cleanup in forwprop

The following makes sure to perform abnormal cleanup when forwprop
propagates into a call.

PR tree-optimization/107867
* tree-ssa-forwprop.cc (pass_forwprop::execute): Handle
abnormal cleanup after substitution.

* g++.dg/pr107867.C: New testcase.
gcc/testsuite/g++.dg/pr107867.C [new file with mode: 0644]
gcc/tree-ssa-forwprop.cc