summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorKonstantin Zhuravlyov <kzhuravl_dev@outlook.com>2016-10-03 04:43:22 +0000
committerKonstantin Zhuravlyov <kzhuravl_dev@outlook.com>2016-10-03 04:43:22 +0000
commitc9786f0d8a4db5f11442962907da2a4999ce8ec3 (patch)
treebb07a967e6d847bc2dbbd17432638f37830c0f82 /llvm/lib
parent530fa5fcc973c0e1ac5801563a42f69ffffa0c6c (diff)
downloadbcm5719-llvm-c9786f0d8a4db5f11442962907da2a4999ce8ec3.tar.gz
bcm5719-llvm-c9786f0d8a4db5f11442962907da2a4999ce8ec3.zip
[AMDGPU] Remove unused variables from SIOptimizeExecMasking
Differential Revision: https://reviews.llvm.org/D25110 llvm-svn: 283087
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/AMDGPU/SIOptimizeExecMasking.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIOptimizeExecMasking.cpp b/llvm/lib/Target/AMDGPU/SIOptimizeExecMasking.cpp
index 421ac72993b..32a0db7265e 100644
--- a/llvm/lib/Target/AMDGPU/SIOptimizeExecMasking.cpp
+++ b/llvm/lib/Target/AMDGPU/SIOptimizeExecMasking.cpp
@@ -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");
OpenPOWER on IntegriCloud