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 | 0ca25608b97d0d02273887fe58e87bb3cfa062d3 (patch) | |
tree | 8f361527497035560d83211fd520e751dbe7a45a /lib/Transforms | |
parent | b28f57920075391571deaed8c6aa867ae8a6749c (diff) | |
download | external_llvm-0ca25608b97d0d02273887fe58e87bb3cfa062d3.zip external_llvm-0ca25608b97d0d02273887fe58e87bb3cfa062d3.tar.gz external_llvm-0ca25608b97d0d02273887fe58e87bb3cfa062d3.tar.bz2 |
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
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/InstCombine/InstCombineAndOrXor.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp b/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp index b4ba875..3dc8779 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); |