mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-22 04:22:57 +02: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. llvm-svn: 305205
This commit is contained in:
parent
6ea2cff39a
commit
7af59e24fc
@ -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…
Reference in New Issue
Block a user