tree-optimization/105235 - clean EH in execute_cse_conv_1
authorRichard Biener <rguenther@suse.de>
Tue, 12 Apr 2022 08:07:10 +0000 (10:07 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 12 Apr 2022 09:48:30 +0000 (11:48 +0200)
commit31cccadcf2d3cc8acb7a5f36ed57ca847f7ea0ea
tree44ffeaa09374c13344b873f9eaf5d215673a0a12
parent1210fd6e69e51516c935acc49e223fce14a0dd86
tree-optimization/105235 - clean EH in execute_cse_conv_1

When a FP conversion is removed we have to eventually clean EH.

2022-04-12  Richard Biener  <rguenther@suse.de>

PR tree-optimization/105235
* tree-ssa-math-opts.cc (execute_cse_conv_1): Clean EH and
return whether the CFG changed.
(execute_cse_sincos_1): Adjust.

* g++.dg/opt/pr105235-1.C: New testcase.
gcc/testsuite/g++.dg/opt/pr105235-1.C [new file with mode: 0644]
gcc/tree-ssa-math-opts.cc