[llvm] 5b2b67b - [InstCombine] Remove unnecessary worklist push; NFCI

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Sat Feb 8 08:09:58 PST 2020


Author: Nikita Popov
Date: 2020-02-08T17:09:28+01:00
New Revision: 5b2b67be8eef706c4959201e9cf8590e133166b2

URL: https://github.com/llvm/llvm-project/commit/5b2b67be8eef706c4959201e9cf8590e133166b2
DIFF: https://github.com/llvm/llvm-project/commit/5b2b67be8eef706c4959201e9cf8590e133166b2.diff

LOG: [InstCombine] Remove unnecessary worklist push; NFCI

This is no longer needed after d4627b90a0462c90a834c2f7b9c9228b3ec7a45b,
should have dropped it there...

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 c589b06d1ec8..f304288336c8 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
@@ -3099,7 +3099,6 @@ Instruction *InstCombiner::visitXor(BinaryOperator &I) {
       if (match(Op0, m_Or(m_Value(X), m_APInt(C))) &&
           MaskedValueIsZero(X, *C, 0, &I)) {
         Constant *NewC = ConstantInt::get(I.getType(), *C ^ *RHSC);
-        Worklist.push(cast<Instruction>(Op0));
         return BinaryOperator::CreateXor(X, NewC);
       }
     }


        


More information about the llvm-commits mailing list