[llvm] r356138 - [SystemZ] Remove icmp undef
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 14 04:56:41 PDT 2019
Author: rksimon
Date: Thu Mar 14 04:56:41 2019
New Revision: 356138
URL: http://llvm.org/viewvc/llvm-project?rev=356138&view=rev
Log:
[SystemZ] Remove icmp undef
Prep-work for PR40800 (Add UNDEF handling to SelectionDAG::FoldSetCC)
Modified:
llvm/trunk/test/CodeGen/SystemZ/knownbits.ll
Modified: llvm/trunk/test/CodeGen/SystemZ/knownbits.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/SystemZ/knownbits.ll?rev=356138&r1=356137&r2=356138&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/SystemZ/knownbits.ll (original)
+++ llvm/trunk/test/CodeGen/SystemZ/knownbits.ll Thu Mar 14 04:56:41 2019
@@ -4,17 +4,17 @@
; Test that DAGCombiner gets helped by computeKnownBitsForTargetNode().
; SystemZISD::REPLICATE
-define i32 @f0() {
+define i32 @f0(<4 x i32> %a0) {
; CHECK-LABEL: f0:
; CHECK: # %bb.0:
; CHECK-NEXT: vgbm %v0, 0
-; CHECK-NEXT: vceqf %v0, %v0, %v0
+; CHECK-NEXT: vceqf %v0, %v24, %v0
; CHECK-NEXT: vrepif %v1, 1
; CHECK-NEXT: vnc %v0, %v1, %v0
; CHECK-NEXT: vlgvf %r2, %v0, 3
; CHECK-NEXT: # kill: def $r2l killed $r2l killed $r2d
; CHECK-NEXT: br %r14
- %cmp0 = icmp ne <4 x i32> undef, zeroinitializer
+ %cmp0 = icmp ne <4 x i32> %a0, zeroinitializer
%zxt0 = zext <4 x i1> %cmp0 to <4 x i32>
%ext0 = extractelement <4 x i32> %zxt0, i32 3
br label %exit
More information about the llvm-commits
mailing list