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


        
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to