diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2010-07-12 16:38:48 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2010-07-12 16:38:48 +0000 |
commit | 8f36402ac29354e17f4355d8f44856bc6d2bf272 (patch) | |
tree | 21d8af150ed677df792f5e1cb48fb163d5f981d9 /llvm | |
parent | 07b695e052557a3f9a5cdfa36bd96ec7733098fa (diff) | |
download | bcm5719-llvm-8f36402ac29354e17f4355d8f44856bc6d2bf272.tar.gz bcm5719-llvm-8f36402ac29354e17f4355d8f44856bc6d2bf272.zip |
Nope, still breaks the release selfhost bots :(
llvm-svn: 108153
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp | 8 | ||||
-rw-r--r-- | llvm/test/Transforms/InstCombine/or.ll | 13 |
2 files changed, 0 insertions, 21 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. diff --git a/llvm/test/Transforms/InstCombine/or.ll b/llvm/test/Transforms/InstCombine/or.ll index 0246925bd82..c3526b77f6a 100644 --- a/llvm/test/Transforms/InstCombine/or.ll +++ b/llvm/test/Transforms/InstCombine/or.ll @@ -350,16 +350,3 @@ define <4 x i32> @test32(<4 x i1> %and.i1352, <4 x i32> %vecinit6.i176, <4 x i32 ; CHECK: or <4 x i32> %and.i, %and.i129 } -; PR6773 -define i32 @test33(i32 %x, i32 %y, i32 %z) nounwind readnone { - %and = and i32 %y, %x - %not = xor i32 %x, -1 - %and2 = and i32 %z, %not - %or = or i32 %and2, %and - ret i32 %or -; CHECK: @test33 -; CHECK-NEXT: xor i32 -; CHECK-NEXT: and i32 -; CHECK-NEXT: xor i32 -; CHECK-NEXT: ret i32 -} |