mirror of
https://github.com/RPCSX/llvm.git
synced 2025-03-01 17:35:38 +00:00
AMDGPU: Fix not setting kill flag on temp reg when spilling
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@287808 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e834ce5976
commit
057bbbe4ae
@ -477,7 +477,7 @@ void SIRegisterInfo::buildSpillLoadStore(MachineBasicBlock::iterator MI,
|
||||
EltSize, MinAlign(Align, EltSize * i));
|
||||
|
||||
auto MIB = BuildMI(*MBB, MI, DL, Desc)
|
||||
.addReg(SubReg, getDefRegState(!IsStore))
|
||||
.addReg(SubReg, getDefRegState(!IsStore) | getKillRegState(IsKill))
|
||||
.addReg(ScratchRsrcReg)
|
||||
.addReg(SOffset, SOffsetRegState)
|
||||
.addImm(Offset)
|
||||
|
Loading…
x
Reference in New Issue
Block a user