File tree 1 file changed +1
-5
lines changed
1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -754,11 +754,8 @@ void SIFrameLowering::processFunctionBeforeFrameFinalized(
754
754
const SIInstrInfo *TII = ST.getInstrInfo ();
755
755
const SIRegisterInfo &TRI = TII->getRegisterInfo ();
756
756
SIMachineFunctionInfo *FuncInfo = MF.getInfo <SIMachineFunctionInfo>();
757
- bool AllSGPRSpilledToVGPRs = false ;
758
757
759
758
if (TRI.spillSGPRToVGPR () && FuncInfo->hasSpilledSGPRs ()) {
760
- AllSGPRSpilledToVGPRs = true ;
761
-
762
759
// Process all SGPR spills before frame offsets are finalized. Ideally SGPRs
763
760
// are spilled to VGPRs, in which case we can eliminate the stack usage.
764
761
//
@@ -780,8 +777,7 @@ void SIFrameLowering::processFunctionBeforeFrameFinalized(
780
777
bool Spilled = TRI.eliminateSGPRToVGPRSpillFrameIndex (MI, FI, RS);
781
778
(void )Spilled;
782
779
assert (Spilled && " failed to spill SGPR to VGPR when allocated" );
783
- } else
784
- AllSGPRSpilledToVGPRs = false ;
780
+ }
785
781
}
786
782
}
787
783
}
You can’t perform that action at this time.
0 commit comments