[AMDGPU] Remove unused variables from SIOptimizeExecMasking
authorKonstantin Zhuravlyov <kzhuravl_dev@outlook.com>
Mon, 3 Oct 2016 04:43:22 +0000 (04:43 +0000)
committerKonstantin Zhuravlyov <kzhuravl_dev@outlook.com>
Mon, 3 Oct 2016 04:43:22 +0000 (04:43 +0000)
Differential Revision: https://reviews.llvm.org/D25110

llvm-svn: 283087

llvm/lib/Target/AMDGPU/SIOptimizeExecMasking.cpp

index 421ac72993b09513a0cc430cfce2090ec6dfdfe5..32a0db7265eaa3b159e037c0afbd282c0ec22c49 100644 (file)
@@ -266,17 +266,14 @@ bool SIOptimizeExecMasking::runOnMachineFunction(MachineFunction &MF) {
     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");