Skip to content

Commit

Permalink
This transform is also performed by InstructionSimplify, remove the d…
Browse files Browse the repository at this point in the history
…uplicate.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113608 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
d0k committed Sep 10, 2010
1 parent b28f579 commit 0ca2560
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0ca2560

Please sign in to comment.