Skip to content

Commit 3260ef1

Browse files
committed
[AMDGPU] Remove unused variable AllSGPRSpilledToVGPRs. NFC
Summary: Removing the unused variable AllSGPRSpilledToVGPRs in SIFrameLowering::processFunctionBeforeFrameFinalized to avoid error: variable 'AllSGPRSpilledToVGPRs' set but not used [-Werror=unused-but-set-variable] Reviewers: arsenm, nhaehnle Reviewed By: nhaehnle Subscribers: kzhuravl, jvesely, wdng, nhaehnle, yaxunl, dstuttard, tpr, t-tye, hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D63721 llvm-svn: 364190
1 parent db26bcd commit 3260ef1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

llvm/lib/Target/AMDGPU/SIFrameLowering.cpp

+1-5
Original file line numberDiff line numberDiff line change
@@ -754,11 +754,8 @@ void SIFrameLowering::processFunctionBeforeFrameFinalized(
754754
const SIInstrInfo *TII = ST.getInstrInfo();
755755
const SIRegisterInfo &TRI = TII->getRegisterInfo();
756756
SIMachineFunctionInfo *FuncInfo = MF.getInfo<SIMachineFunctionInfo>();
757-
bool AllSGPRSpilledToVGPRs = false;
758757

759758
if (TRI.spillSGPRToVGPR() && FuncInfo->hasSpilledSGPRs()) {
760-
AllSGPRSpilledToVGPRs = true;
761-
762759
// Process all SGPR spills before frame offsets are finalized. Ideally SGPRs
763760
// are spilled to VGPRs, in which case we can eliminate the stack usage.
764761
//
@@ -780,8 +777,7 @@ void SIFrameLowering::processFunctionBeforeFrameFinalized(
780777
bool Spilled = TRI.eliminateSGPRToVGPRSpillFrameIndex(MI, FI, RS);
781778
(void)Spilled;
782779
assert(Spilled && "failed to spill SGPR to VGPR when allocated");
783-
} else
784-
AllSGPRSpilledToVGPRs = false;
780+
}
785781
}
786782
}
787783
}

0 commit comments

Comments
 (0)