diff options
author | Andrew MacLeod <amacleod@redhat.com> | 2022-06-29 13:34:05 -0400 |
---|---|---|
committer | Andrew MacLeod <amacleod@redhat.com> | 2022-06-29 21:37:21 -0400 |
commit | 918ccccbb0e78ae42bfcf808a1e93a8f6b9d02ea (patch) | |
tree | 83ae2acd54adb33ba626d31089e61fa1680fa1c4 /gcc/value-range.h | |
parent | e484755aecd543b4c9e2adb4f348118c1e43cfd0 (diff) | |
download | gcc-918ccccbb0e78ae42bfcf808a1e93a8f6b9d02ea.zip gcc-918ccccbb0e78ae42bfcf808a1e93a8f6b9d02ea.tar.gz gcc-918ccccbb0e78ae42bfcf808a1e93a8f6b9d02ea.tar.bz2 |
Don't use gori dependencies to optimize.
The routine fold_using_range::relation_fold_and_or needs to veriyf that both
operands of 2 stmts are the same, and uses GORIs dependency cache for this.
This cache cannot be counted on to reflect the current contents of a
stmt, expecially in the presence of an IL changing pass. Instead, look at the
statement operands.
PR tree-optimization/106114
gcc/
* gimple-range-fold.cc (fold_using_range::relation_fold_and_or): Check
statement operands instead of GORI cache.
gcc/testsuite/
* gcc.dg/pr106114.c: New.
Diffstat (limited to 'gcc/value-range.h')
0 files changed, 0 insertions, 0 deletions