This shouldn't change anything since the no-ret atomics are selected
later.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@357084
91177308-0d34-0410-b5e6-
96231b3b80d8
// getNamedOperandIdx returns the index for MachineInstrs. Since they
// include the output in the operand list, but SDNodes don't, we need to
// subtract the index by one.
- --OffIdx0;
- --OffIdx1;
+ OffIdx0 -= get(Opc0).NumDefs;
+ OffIdx1 -= get(Opc1).NumDefs;
SDValue Off0 = Load0->getOperand(OffIdx0);
SDValue Off1 = Load1->getOperand(OffIdx1);