diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2010-09-10 19:52:35 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2010-09-10 19:52:35 +0000 |
| commit | 77ab138f84ef76f97e589920e36d725fd2ab9bb5 (patch) | |
| tree | 56a63b9f06b3aecbe68f2aa29816b381dd816eac /llvm/lib | |
| parent | 3495f25aa709a595ce499e8c8f0c900b4b5762ec (diff) | |
| download | bcm5719-llvm-77ab138f84ef76f97e589920e36d725fd2ab9bb5.tar.gz bcm5719-llvm-77ab138f84ef76f97e589920e36d725fd2ab9bb5.zip | |
This transform is also performed by InstructionSimplify, remove the duplicate.
llvm-svn: 113608
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp b/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp index b4ba875db90..3dc8779879d 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp +++ b/llvm/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); |

