From: Benjamin Kramer Date: Fri, 10 Sep 2010 19:52:35 +0000 (+0000) Subject: This transform is also performed by InstructionSimplify, remove the duplicate. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=0ca25608b97d0d02273887fe58e87bb3cfa062d3;p=oota-llvm.git This transform is also performed by InstructionSimplify, remove the duplicate. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113608 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp b/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp index b4ba875db90..3dc8779879d 100644 --- a/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp +++ b/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp @@ -207,9 +207,6 @@ Instruction *InstCombiner::OptAndOp(Instruction *Op, } break; case Instruction::Or: - if (Together == AndRHS) // (X | C) & C --> C - return ReplaceInstUsesWith(TheAnd, AndRHS); - if (Op->hasOneUse() && Together != OpRHS) { // (X | C1) & C2 --> (X | (C1&C2)) & C2 Value *Or = Builder->CreateOr(X, Together);