[llvm] 4803910 - [InstCombine] Remove unnecessary worklist add; NFCI

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 30 14:25:49 PST 2020


Author: Nikita Popov
Date: 2020-01-30T23:24:59+01:00
New Revision: 480391035c730b7b8a58601ef54e0543824ba931

URL: https://github.com/llvm/llvm-project/commit/480391035c730b7b8a58601ef54e0543824ba931
DIFF: https://github.com/llvm/llvm-project/commit/480391035c730b7b8a58601ef54e0543824ba931.diff

LOG: [InstCombine] Remove unnecessary worklist add; NFCI

Again, this will already be added by IRBuilder.

Added: 
    

Modified: 
    llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp b/llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
index f604c9dc32ca..4deda5cc5c09 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
@@ -432,7 +432,6 @@ Instruction *InstCombiner::visitExtractElementInst(ExtractElementInst &EI) {
       // nothing.
       if (CI->hasOneUse() && (CI->getOpcode() != Instruction::BitCast)) {
         Value *EE = Builder.CreateExtractElement(CI->getOperand(0), Index);
-        Worklist.AddValue(EE);
         return CastInst::Create(CI->getOpcode(), EE, EI.getType());
       }
     }


        


More information about the llvm-commits mailing list