[PATCH] D98038: [AMDGPU] Fix the dead frame indices during custom spill lowering.
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 8 05:55:44 PST 2021
arsenm added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/SILowerSGPRSpills.cpp:405
+ if (MI.isDebugValue() && MI.getOperand(0).isFI() &&
+ SpillFIs[MI.getOperand(0).getIndex()]) {
+ MI.getOperand(0).ChangeToRegister(Register(), false /*isDef*/);
----------------
You can just check if the stack ID is SGPR spill, you don't need the custom set
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D98038/new/
https://reviews.llvm.org/D98038
More information about the llvm-commits
mailing list