[llvm] r271446 - AMDGPU: Fix incorrectly setting kill flag when copying register tuples
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 1 17:04:30 PDT 2016
Author: arsenm
Date: Wed Jun 1 19:04:30 2016
New Revision: 271446
URL: http://llvm.org/viewvc/llvm-project?rev=271446&view=rev
Log:
AMDGPU: Fix incorrectly setting kill flag when copying register tuples
This fixes some verifier errors when trackLivenessAfterRegAlloc is
enabled.
Modified:
llvm/trunk/lib/Target/AMDGPU/SIInstrInfo.cpp
Modified: llvm/trunk/lib/Target/AMDGPU/SIInstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/SIInstrInfo.cpp?rev=271446&r1=271445&r2=271446&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/SIInstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/SIInstrInfo.cpp Wed Jun 1 19:04:30 2016
@@ -487,7 +487,7 @@ SIInstrInfo::copyPhysReg(MachineBasicBlo
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);
More information about the llvm-commits
mailing list