OSDN Git Service

[AArch64] Update comment to reflect reality.
authorChad Rosier <mcrosier@codeaurora.org>
Thu, 1 Oct 2015 13:09:44 +0000 (13:09 +0000)
committerChad Rosier <mcrosier@codeaurora.org>
Thu, 1 Oct 2015 13:09:44 +0000 (13:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249007 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp

index de3930c..f648d0f 100644 (file)
@@ -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);