summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@codeaurora.org>2015-10-01 13:09:44 +0000
committerChad Rosier <mcrosier@codeaurora.org>2015-10-01 13:09:44 +0000
commit7a83d770aef9374ca49c996a337a3ed309d23f1a (patch)
treefd18443359285853110cd527b87f7d8d9a36fc74 /llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
parent90bf895aa3f7aaf5b39b94133d57aa618f27437b (diff)
downloadbcm5719-llvm-7a83d770aef9374ca49c996a337a3ed309d23f1a.tar.gz
bcm5719-llvm-7a83d770aef9374ca49c996a337a3ed309d23f1a.zip
[AArch64] Update comment to reflect reality.
llvm-svn: 249007
Diffstat (limited to 'llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp')
-rw-r--r--llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp b/llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
index de3930cd0ce..f648d0f2fc5 100644
--- a/llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
+++ b/llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
@@ -1181,8 +1181,8 @@ bool AArch64LoadStoreOpt::optimizeBlock(MachineBasicBlock &MBB) {
++NumPreFolded;
break;
}
- // The immediate in the load/store is scaled by the size of the register
- // being loaded. The immediate in the add we're looking for,
+ // The immediate in the load/store is scaled by the size of the memory
+ // operation. The immediate in the add we're looking for,
// however, is not, so adjust here.
int Value = getLdStOffsetOp(MI).getImm() * getMemScale(MI);
OpenPOWER on IntegriCloud