]> git.ipfire.org Git - thirdparty/gcc.git/commit
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:50:16 +0000 (11:50 +0200)
commit28ef9276654856b53ba45f0082e6579c365e2962
tree007c4ead50efa37dd0f0de792df4a7b517ae7054
parent008d568ac7eba4057172c52d306e09d174041c59
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.c (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.

(cherry picked from commit 31cccadcf2d3cc8acb7a5f36ed57ca847f7ea0ea)
gcc/testsuite/g++.dg/opt/pr105235-1.C [new file with mode: 0644]
gcc/tree-ssa-math-opts.c