tree-optimization/105163 - abnormal SSA coalescing and reassoc
authorRichard Biener <rguenther@suse.de>
Wed, 6 Apr 2022 07:36:38 +0000 (09:36 +0200)
committerRichard Biener <rguenther@suse.de>
Wed, 6 Apr 2022 08:33:13 +0000 (10:33 +0200)
commit44fe49401725055a740ce47e80561b6932b8cd01
tree6d07d63256eb0e2e1afb427532ca3112f8997c15
parent71770a0ea920641c53912f725f5abd4413b38fd5
tree-optimization/105163 - abnormal SSA coalescing and reassoc

The negate propagation optimizations in reassoc did not look out for
abnormal SSA coalescing issues.  The following fixes that.

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

PR tree-optimization/105163
* tree-ssa-reassoc.cc (repropagate_negates): Avoid propagating
negated abnormals.

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