[PATCH] D19744: AMDGPU/SI: Set the kill flag on temp VGPRs used to restore SGPRs from scratch

Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 2 12:43:51 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL268287: AMDGPU/SI: Set the kill flag on temp VGPRs used to restore SGPRs from scratch (authored by tstellar).

Changed prior to commit:
  http://reviews.llvm.org/D19744?vs=55664&id=55868#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D19744

Files:
  llvm/trunk/lib/Target/AMDGPU/SIRegisterInfo.cpp

Index: llvm/trunk/lib/Target/AMDGPU/SIRegisterInfo.cpp
===================================================================
--- llvm/trunk/lib/Target/AMDGPU/SIRegisterInfo.cpp
+++ llvm/trunk/lib/Target/AMDGPU/SIRegisterInfo.cpp
@@ -590,7 +590,7 @@
                   .addMemOperand(MMO);
           BuildMI(*MBB, MI, DL,
                   TII->getMCOpcodeFromPseudo(AMDGPU::V_READLANE_B32), SubReg)
-                  .addReg(TmpReg)
+                  .addReg(TmpReg, RegState::Kill)
                   .addImm(0)
                   .addReg(MI->getOperand(0).getReg(), RegState::ImplicitDefine);
         }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19744.55868.patch
Type: text/x-patch
Size: 608 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160502/8d3bacdf/attachment.bin>


More information about the llvm-commits mailing list