[PATCH] D17101: AMDGPU/SI: When splitting SMRD instructions, add its users to VALU worklist

Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 11 13:18:52 PST 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL260588: AMDGPU/SI: When splitting SMRD instructions, add its users to VALU worklist (authored by tstellar).

Changed prior to commit:
  http://reviews.llvm.org/D17101?vs=47527&id=47719#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D17101

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

Index: llvm/trunk/lib/Target/AMDGPU/SIInstrInfo.cpp
===================================================================
--- llvm/trunk/lib/Target/AMDGPU/SIInstrInfo.cpp
+++ llvm/trunk/lib/Target/AMDGPU/SIInstrInfo.cpp
@@ -2411,6 +2411,7 @@
     }
     case 32: {
       MachineInstr *Lo, *Hi;
+      addUsersToMoveToVALUWorklist(MI->getOperand(0).getReg(), MRI, Worklist);
       splitSMRD(MI, &AMDGPU::SReg_128RegClass, AMDGPU::S_LOAD_DWORDX4_IMM,
                 AMDGPU::S_LOAD_DWORDX4_SGPR, Lo, Hi);
       MI->eraseFromParent();
@@ -2421,6 +2422,7 @@
 
     case 64: {
       MachineInstr *Lo, *Hi;
+      addUsersToMoveToVALUWorklist(MI->getOperand(0).getReg(), MRI, Worklist);
       splitSMRD(MI, &AMDGPU::SReg_256RegClass, AMDGPU::S_LOAD_DWORDX8_IMM,
                 AMDGPU::S_LOAD_DWORDX8_SGPR, Lo, Hi);
       MI->eraseFromParent();


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17101.47719.patch
Type: text/x-patch
Size: 845 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160211/ff471a89/attachment.bin>


More information about the llvm-commits mailing list