[llvm] r217865 - [InstCombine] Remove redundant test case.
Tilmann Scheller
t.scheller at samsung.com
Tue Sep 16 01:50:10 PDT 2014
Author: tilmann
Date: Tue Sep 16 03:50:10 2014
New Revision: 217865
URL: http://llvm.org/viewvc/llvm-project?rev=217865&view=rev
Log:
[InstCombine] Remove redundant test case.
Patch by Sonam Kumari!
Differential Revision: http://reviews.llvm.org/D5284
Modified:
llvm/trunk/test/Transforms/InstCombine/xor2.ll
Modified: llvm/trunk/test/Transforms/InstCombine/xor2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/xor2.ll?rev=217865&r1=217864&r2=217865&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/xor2.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/xor2.ll Tue Sep 16 03:50:10 2014
@@ -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
More information about the llvm-commits
mailing list