summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-07-14 06:16:35 +0000
committerChris Lattner <sabre@nondot.org>2010-07-14 06:16:35 +0000
commitec0e7b16435d0a01888cc8b9dfccfd9109bfca18 (patch)
tree19f35e57c6dad15d24c6b1660c431378fd3f9ada /llvm/lib/Transforms
parent658680b2f5f9052a3ee33915fcf36d7b1aa03659 (diff)
downloadbcm5719-llvm-ec0e7b16435d0a01888cc8b9dfccfd9109bfca18.tar.gz
bcm5719-llvm-ec0e7b16435d0a01888cc8b9dfccfd9109bfca18.zip
revert r108320, I see the failures now...
llvm-svn: 108322
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp b/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
index 4542dda6372..3f4a857c41a 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
@@ -1597,14 +1597,6 @@ Instruction *InstCombiner::visitOr(BinaryOperator &I) {
Instruction *Ret = FoldOrWithConstants(I, Op0, A, V1, D);
if (Ret) return Ret;
}
-
- // (A & ~D) | (B & D) -> ((B ^ A) & D) ^ A
- if (Op0->hasOneUse() && Op1->hasOneUse() &&
- match(C, m_Not(m_Specific(D)))) {
- Value *Xor = Builder->CreateXor(B, A, "xor");
- Value *And = Builder->CreateAnd(Xor, D, "and");
- return BinaryOperator::CreateXor(And, A);
- }
}
// (X >> Z) | (Y >> Z) -> (X|Y) >> Z for all shifts.
OpenPOWER on IntegriCloud