1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 12:02:58 +02:00

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 ddfcd9b819
commit cd84f14639

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