Fix InstructionComparer for ref_element_addr

InstructionComparer should only check for equality on additional state,
not operands. Fix visitRefElementAddr which was not using this common
pattern.
This commit is contained in:
Meghana Gupta
2021-02-04 11:56:48 -08:00
parent bb0c6b3673
commit 487e8ebd0d

View File

@@ -544,8 +544,6 @@ namespace {
auto *X = cast<RefElementAddrInst>(LHS);
if (X->getField() != RHS->getField())
return false;
if (X->getOperand() != RHS->getOperand())
return false;
return true;
}