[llvm-branch-commits] [llvm] 2d89ebd - Address unused variable warning
Juneyoung Lee via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Jan 18 16:35:09 PST 2021
Author: Juneyoung Lee
Date: 2021-01-19T09:30:16+09:00
New Revision: 2d89ebd5d17b8d8800606880fe02cd867e4a0b90
URL: https://github.com/llvm/llvm-project/commit/2d89ebd5d17b8d8800606880fe02cd867e4a0b90
DIFF: https://github.com/llvm/llvm-project/commit/2d89ebd5d17b8d8800606880fe02cd867e4a0b90.diff
LOG: Address unused variable warning
Added:
Modified:
llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp b/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
index 59291617d2b0..c42f113feca3 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
@@ -3460,8 +3460,6 @@ Instruction *InstCombinerImpl::visitXor(BinaryOperator &I) {
bool InvertibleT = (CmpT && CmpT->hasOneUse()) || isa<Constant>(TV);
bool InvertibleF = (CmpF && CmpF->hasOneUse()) || isa<Constant>(FV);
if (InvertibleT && InvertibleF) {
- Constant *One = cast<Constant>(Op1);
-
if (CmpT)
CmpT->setPredicate(CmpT->getInversePredicate());
else
More information about the llvm-branch-commits
mailing list