From: Tilmann Scheller Date: Tue, 16 Sep 2014 08:50:10 +0000 (+0000) Subject: [InstCombine] Remove redundant test case. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=359ae293f5875b432290a1295b985b893dc0d9fc;p=oota-llvm.git [InstCombine] Remove redundant test case. Patch by Sonam Kumari! Differential Revision: http://reviews.llvm.org/D5284 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217865 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Transforms/InstCombine/xor2.ll b/test/Transforms/InstCombine/xor2.ll index a449e12c5b0..797c8f39f29 100644 --- a/test/Transforms/InstCombine/xor2.ll +++ b/test/Transforms/InstCombine/xor2.ll @@ -138,45 +138,35 @@ define i32 @test11(i32 %A, i32 %B) { ; CHECK-NEXT: ret i32 0 } -define i32 @test12(i32 %A, i32 %B) { - %xor1 = xor i32 %B, %A - %not = xor i32 %A, -1 - %xor2 = xor i32 %not, %B - %and = and i32 %xor1, %xor2 - ret i32 %and -; CHECK-LABEL: @test12( -; CHECK-NEXT: ret i32 0 -} - -define i32 @test13(i32 %a, i32 %b) { +define i32 @test12(i32 %a, i32 %b) { %negb = xor i32 %b, -1 %and = and i32 %a, %negb %nega = xor i32 %a, -1 %xor = xor i32 %and, %nega ret i32 %xor -; CHECK-LABEL: @test13( +; CHECK-LABEL: @test12( ; CHECK-NEXT: %1 = and i32 %a, %b ; CHECK-NEXT: %xor = xor i32 %1, -1 } -define i32 @test14(i32 %a, i32 %b) { +define i32 @test13(i32 %a, i32 %b) { %nega = xor i32 %a, -1 %negb = xor i32 %b, -1 %and = and i32 %a, %negb %xor = xor i32 %nega, %and ret i32 %xor -; CHECK-LABEL: @test14( +; CHECK-LABEL: @test13( ; CHECK-NEXT: %1 = and i32 %a, %b ; CHECK-NEXT: %xor = xor i32 %1, -1 } ; (A ^ C) ^ (A | B) -> ((~A) & B) ^ C -define i32 @test15(i32 %a, i32 %b, i32 %c) { +define i32 @test14(i32 %a, i32 %b, i32 %c) { %neg = xor i32 %a, %c %or = or i32 %a, %b %xor = xor i32 %neg, %or ret i32 %xor -; CHECK-LABEL: @test15( +; CHECK-LABEL: @test14( ; CHECK-NEXT: %[[not:.*]] = xor i32 %a, -1 ; CHECK-NEXT: %[[and:.*]] = and i32 %[[not]], %b ; CHECK-NEXT: %[[xor:.*]] = xor i32 %[[and]], %c