This patch replaces the AArch64StackOffset class by the generic one
defined in TypeSize.h.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
One suggestion for a possible fold of some additions, but otherwise looks good to me!
llvm/lib/Target/AArch64/AArch64FrameLowering.cpp | ||
---|---|---|
1944–1945 | It's just a thought, but in cases such as this where we're initialising to a composite we could replace the addition with: StackOffset::get(OffsetFromFPToSVEArea, ObjectOffset) |
Comment Actions
- Use StackOffset::get(Fixed, Scalable) instead of StackOffset::getFixed(Fixed) + StackOffset::getScalable(Scalable)
llvm/lib/Target/AArch64/AArch64FrameLowering.cpp | ||
---|---|---|
1944–1945 | Good catch! |
Comment Actions
LGTM!
llvm/lib/Target/AArch64/AArch64InstrInfo.cpp | ||
---|---|---|
3885–3886 | nit: You could change the if and else case to also use StackOffset::get(). |
It's just a thought, but in cases such as this where we're initialising to a composite we could replace the addition with:
StackOffset::get(OffsetFromFPToSVEArea, ObjectOffset)