[llvm-branch-commits] [llvm] [AMDGPU] Don't spill an SGPR while SCC is live in frame index lowering (PR #224080)
Pankaj Dwivedi via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Sep 21 03:46:43 PDT 2026
================
@@ -3641,8 +3659,9 @@ bool SIRegisterInfo::eliminateFrameIndex(MachineBasicBlock::iterator MI,
if (Offset) {
int64_t ScaledOffset = -Offset * ST.getWavefrontSize();
- bool SCCLiveAfterMI = MI->definesRegister(AMDGPU::SCC, this) &&
- !MI->registerDefIsDead(AMDGPU::SCC, this);
+ bool SCCLiveAfterMI = MI->definesRegister(AMDGPU::SCC, this)
----------------
PankajDwivedi-25 wrote:
I believe to answer "is SCC live after MI" only need
RS->isRegUsed(AMDGPU::SCC) ?
https://github.com/llvm/llvm-project/pull/224080
More information about the llvm-branch-commits
mailing list