The tests were passing by luck since the instruction ID and operand index happened to be the same.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315788
91177308-0d34-0410-b5e6-
96231b3b80d8
assert(State.MIs[InsnID] != nullptr && "Used insn before defined");
assert(State.MIs[OtherInsnID] != nullptr && "Used insn before defined");
if (!State.MIs[InsnID]->getOperand(OpIdx).isIdenticalTo(
- State.MIs[OtherInsnID]->getOperand(OtherInsnID))) {
+ State.MIs[OtherInsnID]->getOperand(OtherOpIdx))) {
if (handleReject() == RejectAndGiveUp)
return false;
}