tree-optimization/110777 - abnormals and recent PRE optimization
commit50b5feaa94c26d01fed13f1119f025ae2bc75d2b
authorRichard Biener <rguenther@suse.de>
Mon, 24 Jul 2023 06:55:11 +0000 (24 08:55 +0200)
committerRichard Biener <rguenther@suse.de>
Mon, 24 Jul 2023 07:50:33 +0000 (24 09:50 +0200)
tree6459681aaf5ca714fbed5e421013b2709bba9bf0
parentfb132cdfb204bc12851eb1d5852eef6f03c13af3
tree-optimization/110777 - abnormals and recent PRE optimization

The following avoids propagating abnormals with the recent tweak
to look through PRE introduced copies between equal values.

PR tree-optimization/110777
* tree-ssa-sccvn.cc (eliminate_dom_walker::eliminate_avail):
Avoid propagating abnormals.

* gcc.dg/pr110777.c: New testcase.
gcc/testsuite/gcc.dg/pr110777.c [new file with mode: 0644]
gcc/tree-ssa-sccvn.cc