[PATCH] D25110: [AMDGPU] Remove unused variables from SIOptimizeExecMasking

Konstantin Zhuravlyov via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 30 10:15:46 PDT 2016


kzhuravl created this revision.
kzhuravl added a reviewer: arsenm.
kzhuravl added a subscriber: llvm-commits.
Herald added a reviewer: tstellarAMD.
Herald added subscribers: tony-tye, yaxunl, nhaehnle, wdng.

https://reviews.llvm.org/D25110

Files:
  lib/Target/AMDGPU/SIOptimizeExecMasking.cpp


Index: lib/Target/AMDGPU/SIOptimizeExecMasking.cpp
===================================================================
--- lib/Target/AMDGPU/SIOptimizeExecMasking.cpp
+++ lib/Target/AMDGPU/SIOptimizeExecMasking.cpp
@@ -266,17 +266,14 @@
     MachineOperand &Src0 = SaveExecInst->getOperand(1);
     MachineOperand &Src1 = SaveExecInst->getOperand(2);
 
-    MachineOperand *CopyOp = nullptr;
     MachineOperand *OtherOp = nullptr;
 
     if (Src0.isReg() && Src0.getReg() == CopyFromExec) {
-      CopyOp = &Src0;
       OtherOp = &Src1;
     } else if (Src1.isReg() && Src1.getReg() == CopyFromExec) {
       if (!SaveExecInst->isCommutable())
         break;
 
-      CopyOp = &Src1;
       OtherOp = &Src0;
     } else
       llvm_unreachable("unexpected");


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25110.73084.patch
Type: text/x-patch
Size: 762 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160930/9feb09fd/attachment.bin>


More information about the llvm-commits mailing list