tree-optimization/109262 - ICE with non-call EH and forwprop
authorRichard Biener <rguenther@suse.de>
Thu, 23 Mar 2023 14:50:59 +0000 (15:50 +0100)
committerRichard Biener <rguenther@suse.de>
Thu, 23 Mar 2023 15:35:12 +0000 (16:35 +0100)
commit25979b6761516b9039004385e08141e0925e1a17
tree9e8c72b75c05bab9eeaceccd3012b28f7f6be87a
parentc46b5b0a2c10139379a25b0071aa8997af41220d
tree-optimization/109262 - ICE with non-call EH and forwprop

The recent combining of complex part loads to a complex load missed
to account for non-call EH.

PR tree-optimization/109262
* tree-ssa-forwprop.cc (pass_forwprop::execute): When
combining a piecewise complex load avoid touching loads
that throw internally.  Use fun, not cfun throughout.

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