summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@codeaurora.org>2015-08-10 17:17:19 +0000
committerChad Rosier <mcrosier@codeaurora.org>2015-08-10 17:17:19 +0000
commitcaed6db51ea81a08824ec7ec884b26ce1024da39 (patch)
tree203c8fde0ae9449636918eb15ae7a0221ea4ba77 /llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
parent10294b59de9ddfb37f9b1286ed62dcf8b61dc16b (diff)
downloadbcm5719-llvm-caed6db51ea81a08824ec7ec884b26ce1024da39.tar.gz
bcm5719-llvm-caed6db51ea81a08824ec7ec884b26ce1024da39.zip
Typo. Move comment closer to relevant code. NFC.
llvm-svn: 244465
Diffstat (limited to 'llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp')
-rw-r--r--llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp b/llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
index 442abf81e87..d5a3c693105 100644
--- a/llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
+++ b/llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
@@ -555,11 +555,12 @@ AArch64LoadStoreOpt::findMatchingInsn(MachineBasicBlock::iterator I,
// Early exit if the first instruction modifies the base register.
// e.g., ldr x0, [x0]
- // Early exit if the offset if not possible to match. (6 bits of positive
- // range, plus allow an extra one in case we find a later insn that matches
- // with Offset-1
if (FirstMI->modifiesRegister(BaseReg, TRI))
return E;
+
+ // Early exit if the offset if not possible to match. (6 bits of positive
+ // range, plus allow an extra one in case we find a later insn that matches
+ // with Offset-1)
int OffsetStride =
IsUnscaled && EnableAArch64UnscaledMemOp ? getMemSize(FirstMI) : 1;
if (!inBoundsForPair(IsUnscaled, Offset, OffsetStride))
OpenPOWER on IntegriCloud