]> git.ipfire.org Git - thirdparty/gcc.git/commit
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>
Fri, 27 May 2022 13:14:36 +0000 (15:14 +0200)
commitbdfe7e5510b28c3ab8f8cd0fd7f715f2da3af938
tree08f56292fd8f8cd95b17d3e4d5ef84cc2cd88d6d
parent84ebfc7558d23c5262d35740d1d495bd0884a58c
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.c (repropagate_negates): Avoid propagating
negated abnormals.

* gcc.dg/torture/pr105163.c: New testcase.

(cherry picked from commit 44fe49401725055a740ce47e80561b6932b8cd01)
gcc/testsuite/gcc.dg/torture/pr105163.c [new file with mode: 0644]
gcc/tree-ssa-reassoc.c