Skip to content

Commit 979830c

Browse files
committed
fixup! [AMDGPU] Ensure non-reserved CSR spilled regs are live-in
1 parent 07bd851 commit 979830c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AMDGPU/SIFrameLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,7 @@ void SIFrameLowering::emitCSRSpillStores(
996996
}
997997
};
998998

999-
for (const auto &Reg : make_first_range(WWMScratchRegs)) {
999+
for (const Register &Reg : make_first_range(WWMScratchRegs)) {
10001000
if (!MRI.isReserved(Reg)) {
10011001
MRI.addLiveIn(Reg);
10021002
MBB.addLiveIn(Reg);

0 commit comments

Comments
 (0)