This transform is also performed by InstructionSimplify, remove the duplicate.

llvm-svn: 113608
This commit is contained in:
Benjamin Kramer 2010-09-10 19:52:35 +00:00
parent 3495f25aa7
commit 77ab138f84
1 changed files with 0 additions and 3 deletions

View File

@ -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);