Skip to content

Commit 4d80122

Browse files
authored
[AArch64] Teach areMemAccessesTriviallyDisjoint about scalable widths. (#73655)
The base change here is to change getMemOperandWithOffsetWidth to return a TypeSize Width, which in turn allows areMemAccessesTriviallyDisjoint to reason about trivially disjoint widths.
1 parent a6f7278 commit 4d80122

File tree

8 files changed

+224
-156
lines changed

8 files changed

+224
-156
lines changed

llvm/lib/Target/AArch64/AArch64FrameLowering.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1214,8 +1214,7 @@ static MachineBasicBlock::iterator convertCalleeSaveRestoreToSPPrePostIncDec(
12141214
SEH->eraseFromParent();
12151215
}
12161216

1217-
TypeSize Scale = TypeSize::getFixed(1);
1218-
unsigned Width;
1217+
TypeSize Scale = TypeSize::getFixed(1), Width = TypeSize::getFixed(0);
12191218
int64_t MinOffset, MaxOffset;
12201219
bool Success = static_cast<const AArch64InstrInfo *>(TII)->getMemOpInfo(
12211220
NewOpc, Scale, Width, MinOffset, MaxOffset);

0 commit comments

Comments
 (0)