diff options
author | Richard Biener <rguenther@suse.de> | 2021-03-22 11:09:46 +0100 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2021-03-22 14:37:26 +0100 |
commit | b931e4792b8696f3da69f70988720c4d1ec6142a (patch) | |
tree | a666bbbf3e9d9ea76035565ddb390247569e4354 /gcc/debug.h | |
parent | c4519fe3db366d781f342b7f04c4a09e4cc9fbd9 (diff) | |
download | gcc-b931e4792b8696f3da69f70988720c4d1ec6142a.zip gcc-b931e4792b8696f3da69f70988720c4d1ec6142a.tar.gz gcc-b931e4792b8696f3da69f70988720c4d1ec6142a.tar.bz2 |
tree-optimization/99694 - fix value-numbering PHIs
This avoids endless cycling when a PHI node with unchanged backedge
value (the PHI result appearing there) is subject to CSE since doing
that effectively alters the hash entry. The way to avoid this is
to ignore such edges when processing the PHI node.
2021-03-22 Richard Biener <rguenther@suse.de>
PR tree-optimization/99694
* tree-ssa-sccvn.c (visit_phi): Ignore edges with the
PHI result.
* gcc.dg/torture/pr99694.c: New testcase.
Diffstat (limited to 'gcc/debug.h')
0 files changed, 0 insertions, 0 deletions