Skip to content

Commit

Permalink
AMDGPU: Fix incorrectly setting kill flag when copying register tuples
Browse files Browse the repository at this point in the history
This fixes some verifier errors when trackLivenessAfterRegAlloc is
enabled.

llvm-svn: 271446
  • Loading branch information
arsenm committed Jun 2, 2016
1 parent 8f4d43a commit 598f553
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ SIInstrInfo::copyPhysReg(MachineBasicBlock &MBB,
Builder.addReg(RI.getSubReg(SrcReg, SubIdx));

if (Idx == SubIndices.size() - 1)
Builder.addReg(SrcReg, RegState::Kill | RegState::Implicit);
Builder.addReg(SrcReg, getKillRegState(KillSrc) | RegState::Implicit);

if (Idx == 0)
Builder.addReg(DestReg, RegState::Define | RegState::Implicit);
Expand Down

0 comments on commit 598f553

Please sign in to comment.