[llvm] r249007 - [AArch64] Update comment to reflect reality.

Chad Rosier via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 1 06:09:44 PDT 2015


Author: mcrosier
Date: Thu Oct  1 08:09:44 2015
New Revision: 249007

URL: http://llvm.org/viewvc/llvm-project?rev=249007&view=rev
Log:
[AArch64] Update comment to reflect reality.

Modified:
    llvm/trunk/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp

Modified: llvm/trunk/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp?rev=249007&r1=249006&r2=249007&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp Thu Oct  1 08:09:44 2015
@@ -1181,8 +1181,8 @@ bool AArch64LoadStoreOpt::optimizeBlock(
         ++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);
 




More information about the llvm-commits mailing list