[llvm] r274925 - adjust test so it won't completely optimize away
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 8 13:35:53 PDT 2016
Author: spatel
Date: Fri Jul 8 15:35:53 2016
New Revision: 274925
URL: http://llvm.org/viewvc/llvm-project?rev=274925&view=rev
Log:
adjust test so it won't completely optimize away
Modified:
llvm/trunk/test/Transforms/InstCombine/logical-select.ll
Modified: llvm/trunk/test/Transforms/InstCombine/logical-select.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/logical-select.ll?rev=274925&r1=274924&r2=274925&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/logical-select.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/logical-select.ll Fri Jul 8 15:35:53 2016
@@ -302,16 +302,16 @@ define i1 @bools_multi_uses2(i1 %a, i1 %
; CHECK-NEXT: [[AND2:%.*]] = and i1 %c, %b
; CHECK-NEXT: [[TMP1:%.*]] = select i1 %c, i1 %b, i1 %a
; CHECK-NEXT: [[ADD:%.*]] = xor i1 [[AND1]], [[AND2]]
-; CHECK-NEXT: [[XOR:%.*]] = xor i1 [[TMP1]], [[ADD]]
-; CHECK-NEXT: ret i1 [[XOR]]
+; CHECK-NEXT: [[AND3:%.*]] = and i1 [[TMP1]], [[ADD]]
+; CHECK-NEXT: ret i1 [[AND3]]
;
%not = xor i1 %c, -1
%and1 = and i1 %not, %a
%and2 = and i1 %c, %b
%or = or i1 %and1, %and2
%add = add i1 %and1, %and2
- %xor = xor i1 %or, %add
- ret i1 %xor
+ %and3 = and i1 %or, %add
+ ret i1 %and3
}
define <4 x i1> @vec_of_bools(<4 x i1> %a, <4 x i1> %b, <4 x i1> %c) {
More information about the llvm-commits
mailing list