llvm.org GIT mirror llvm / 20f59c8
Typo. Move comment closer to relevant code. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244465 91177308-0d34-0410-b5e6-96231b3b80d8 Chad Rosier 4 years ago
1 changed file(s) with 4 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
554554
555555 // Early exit if the first instruction modifies the base register.
556556 // e.g., ldr x0, [x0]
557 if (FirstMI->modifiesRegister(BaseReg, TRI))
558 return E;
559
557560 // Early exit if the offset if not possible to match. (6 bits of positive
558561 // range, plus allow an extra one in case we find a later insn that matches
559 // with Offset-1
560 if (FirstMI->modifiesRegister(BaseReg, TRI))
561 return E;
562 // with Offset-1)
562563 int OffsetStride =
563564 IsUnscaled && EnableAArch64UnscaledMemOp ? getMemSize(FirstMI) : 1;
564565 if (!inBoundsForPair(IsUnscaled, Offset, OffsetStride))