aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-sccvn.cc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2022-07-01 13:16:33 +0200
committerRichard Biener <rguenther@suse.de>2022-07-01 14:20:40 +0200
commit2b0937946b19f0f4d91e6248a2806b1f98f5244b (patch)
treee554a79fbe95f3f9af869e88c87dac97f2f59877 /gcc/tree-ssa-sccvn.cc
parent08ed796ed08996545c574b846f3ca04f2cbe70dc (diff)
downloadgcc-2b0937946b19f0f4d91e6248a2806b1f98f5244b.zip
gcc-2b0937946b19f0f4d91e6248a2806b1f98f5244b.tar.gz
gcc-2b0937946b19f0f4d91e6248a2806b1f98f5244b.tar.bz2
Revert maybe_ne -> known_ne change in vn_reference_lookup_3
This reverts the change as discussed. 2022-07-01 Richard Biener <rguenther@suse.de> * tree-ssa-sccvn.cc (vn_reference_lookup_3): Revert back to using maybe_ne (off, -1).
Diffstat (limited to 'gcc/tree-ssa-sccvn.cc')
-rw-r--r--gcc/tree-ssa-sccvn.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-ssa-sccvn.cc b/gcc/tree-ssa-sccvn.cc
index c40c45e..f41d503 100644
--- a/gcc/tree-ssa-sccvn.cc
+++ b/gcc/tree-ssa-sccvn.cc
@@ -3243,12 +3243,12 @@ vn_reference_lookup_3 (ao_ref *ref, tree vuse, void *data_,
poly_int64 extra_off = 0;
if (j == 0 && i >= 0
&& lhs_ops[0].opcode == MEM_REF
- && known_ne (lhs_ops[0].off, -1))
+ && maybe_ne (lhs_ops[0].off, -1))
{
if (known_eq (lhs_ops[0].off, vr->operands[i].off))
i--, j--;
else if (vr->operands[i].opcode == MEM_REF
- && known_ne (vr->operands[i].off, -1))
+ && maybe_ne (vr->operands[i].off, -1))
{
extra_off = vr->operands[i].off - lhs_ops[0].off;
i--, j--;