[AArch64] Update comment to reflect reality.
llvm-svn: 249007
diff --git a/llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp b/llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
index de3930c..f648d0f 100644
--- a/llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
+++ b/llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
@@ -1181,8 +1181,8 @@
++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);