diff options
author | Andrew MacLeod <amacleod@redhat.com> | 2021-11-23 14:12:29 -0500 |
---|---|---|
committer | Andrew MacLeod <amacleod@redhat.com> | 2021-11-25 08:44:27 -0500 |
commit | 661c02e54ea72fb55205df0a717951ff28bb739e (patch) | |
tree | 95da0613a67a1427bd0c59a55fabe050cd158b0e /libgcc | |
parent | f4e470d44e8104bada6a95c12765f6ed8bd505e2 (diff) | |
download | gcc-661c02e54ea72fb55205df0a717951ff28bb739e.zip gcc-661c02e54ea72fb55205df0a717951ff28bb739e.tar.gz gcc-661c02e54ea72fb55205df0a717951ff28bb739e.tar.bz2 |
Check for equivalences between PHI argument and def.
If a PHI argument on an edge is equivalent with the DEF, then it doesn't
provide any new information, defer processing it unless they are all
equivalences.
PR tree-optimization/103359
gcc/
* gimple-range-fold.cc (fold_using_range::range_of_phi): If arg is
equivalent to def, don't initially include it's range.
gcc/testsuite/
* gcc.dg/pr103359.c: New.
Diffstat (limited to 'libgcc')
0 files changed, 0 insertions, 0 deletions