[AArch64] Update comment to reflect reality.

llvm-svn: 249007
This commit is contained in:
Chad Rosier 2015-10-01 13:09:44 +00:00
parent 90bf895aa3
commit 7a83d770ae
1 changed files with 2 additions and 2 deletions

View 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);