[PATCH] D81364: AMDGPU Initializes StackPtrOffset when NonSpillStackObjects present
David Stuttard via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 8 02:08:12 PDT 2020
dstuttard marked an inline comment as done.
dstuttard added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/SIFrameLowering.cpp:463
+ // initialize SP in case it is required.
+ if (MF.getFrameInfo().hasCalls() || MFI->hasNonSpillStackObjects()) {
Register SPReg = MFI->getStackPtrOffsetReg();
----------------
Is there a way to finesse this so it's only added when it is likely to be required?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D81364/new/
https://reviews.llvm.org/D81364
More information about the llvm-commits
mailing list