[llvm] r349164 - [SystemZ] make test immune to scalarization improvements; NFC
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 14 09:28:52 PST 2018
Author: spatel
Date: Fri Dec 14 09:28:52 2018
New Revision: 349164
URL: http://llvm.org/viewvc/llvm-project?rev=349164&view=rev
Log:
[SystemZ] make test immune to scalarization improvements; NFC
The undef operands mean this test is probably still too fragile
to accomplish what the comments suggest.
Modified:
llvm/trunk/test/CodeGen/SystemZ/dag-combine-03.ll
Modified: llvm/trunk/test/CodeGen/SystemZ/dag-combine-03.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/SystemZ/dag-combine-03.ll?rev=349164&r1=349163&r2=349164&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/SystemZ/dag-combine-03.ll (original)
+++ llvm/trunk/test/CodeGen/SystemZ/dag-combine-03.ll Fri Dec 14 09:28:52 2018
@@ -10,9 +10,12 @@ entry:
lab0:
%phi = phi i64 [ %sel, %lab0 ], [ 0, %entry ]
%add = add nuw nsw i64 %phi, 1
+ %add2 = add nuw nsw i64 %phi, 2
%cmp = icmp eq i64 %add, undef
+ %cmp2 = icmp eq i64 %add2, undef
%ins = insertelement <2 x i1> undef, i1 %cmp, i32 0
- %xor = xor <2 x i1> %ins, <i1 true, i1 true>
+ %ins2 = insertelement <2 x i1> undef, i1 %cmp2, i32 0
+ %xor = xor <2 x i1> %ins, %ins2
%extr = extractelement <2 x i1> %xor, i32 0
; The EXTRACT_VECTOR_ELT is done first into an i32, and then AND:ed with
; 1. The AND is not actually necessary since the element contains a CC (i1)
More information about the llvm-commits
mailing list