forked from OSchip/llvm-project
[AArch64] Update comment to reflect reality.
llvm-svn: 249007
This commit is contained in:
parent
90bf895aa3
commit
7a83d770ae
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue