[PATCH] D45886: AMDGPU: Fix SDWA peephole for V_AND_B32

Phabricator via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 23 06:09:41 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL330586: AMDGPU: Fix SDWA peephole for V_AND_B32 (authored by nha, committed by ).

Repository:
  rL LLVM

https://reviews.llvm.org/D45886

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


Index: llvm/trunk/lib/Target/AMDGPU/SIPeepholeSDWA.cpp
===================================================================
--- llvm/trunk/lib/Target/AMDGPU/SIPeepholeSDWA.cpp
+++ llvm/trunk/lib/Target/AMDGPU/SIPeepholeSDWA.cpp
@@ -699,7 +699,7 @@
 
     MachineOperand *Dst = TII->getNamedOperand(MI, AMDGPU::OpName::vdst);
 
-    if (TRI->isPhysicalRegister(Src1->getReg()) ||
+    if (TRI->isPhysicalRegister(ValSrc->getReg()) ||
         TRI->isPhysicalRegister(Dst->getReg()))
       break;
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45886.143533.patch
Type: text/x-patch
Size: 497 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180423/fe1239a2/attachment.bin>


More information about the llvm-commits mailing list