mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-19 02:42:58 +00:00
AMDGPU: Don't add same implicit use multiple times
For the last component, the same register use was added as an implicit use and another implicit kill use. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305205 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
57098b0fe9
commit
9cae1d2455
@ -468,13 +468,11 @@ void SIInstrInfo::copyPhysReg(MachineBasicBlock &MBB,
|
||||
|
||||
Builder.addReg(RI.getSubReg(SrcReg, SubIdx));
|
||||
|
||||
if (Idx == SubIndices.size() - 1)
|
||||
Builder.addReg(SrcReg, getKillRegState(KillSrc) | RegState::Implicit);
|
||||
|
||||
if (Idx == 0)
|
||||
Builder.addReg(DestReg, RegState::Define | RegState::Implicit);
|
||||
|
||||
Builder.addReg(SrcReg, RegState::Implicit);
|
||||
bool UseKill = KillSrc && Idx == SubIndices.size() - 1;
|
||||
Builder.addReg(SrcReg, getKillRegState(UseKill) | RegState::Implicit);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user