[llvm] r346605 - [X86] Use DAG.getConstant instead of getZeroVector.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sat Nov 10 23:24:36 PST 2018
Author: ctopper
Date: Sat Nov 10 23:24:36 2018
New Revision: 346605
URL: http://llvm.org/viewvc/llvm-project?rev=346605&view=rev
Log:
[X86] Use DAG.getConstant instead of getZeroVector.
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
llvm/trunk/test/CodeGen/X86/pr34605.ll
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=346605&r1=346604&r2=346605&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Sat Nov 10 23:24:36 2018
@@ -17560,7 +17560,7 @@ static SDValue LowerZERO_EXTEND_Mask(SD
}
SDValue One = DAG.getConstant(1, DL, WideVT);
- SDValue Zero = getZeroVector(WideVT, Subtarget, DAG, DL);
+ SDValue Zero = DAG.getConstant(0, DL, WideVT);
SDValue SelectedVal = DAG.getSelect(DL, WideVT, In, One, Zero);
Modified: llvm/trunk/test/CodeGen/X86/pr34605.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/pr34605.ll?rev=346605&r1=346604&r2=346605&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/pr34605.ll (original)
+++ llvm/trunk/test/CodeGen/X86/pr34605.ll Sat Nov 10 23:24:36 2018
@@ -18,15 +18,15 @@ define void @pr34605(i8* nocapture %s, i
; CHECK-NEXT: kmovd %k1, %k1
; CHECK-NEXT: kandq %k1, %k0, %k1
; CHECK-NEXT: vmovdqu8 {{\.LCPI.*}}, %zmm0 {%k1} {z}
-; CHECK-NEXT: vxorps %xmm1, %xmm1, %xmm1
; CHECK-NEXT: vmovdqu64 %zmm0, (%eax)
-; CHECK-NEXT: vmovups %zmm1, 64(%eax)
-; CHECK-NEXT: vmovups %zmm1, 128(%eax)
-; CHECK-NEXT: vmovups %zmm1, 192(%eax)
-; CHECK-NEXT: vmovups %zmm1, 256(%eax)
-; CHECK-NEXT: vmovups %zmm1, 320(%eax)
-; CHECK-NEXT: vmovups %zmm1, 384(%eax)
-; CHECK-NEXT: vmovups %zmm1, 448(%eax)
+; CHECK-NEXT: vpxor %xmm0, %xmm0, %xmm0
+; CHECK-NEXT: vmovdqu64 %zmm0, 64(%eax)
+; CHECK-NEXT: vmovdqu64 %zmm0, 128(%eax)
+; CHECK-NEXT: vmovdqu64 %zmm0, 192(%eax)
+; CHECK-NEXT: vmovdqu64 %zmm0, 256(%eax)
+; CHECK-NEXT: vmovdqu64 %zmm0, 320(%eax)
+; CHECK-NEXT: vmovdqu64 %zmm0, 384(%eax)
+; CHECK-NEXT: vmovdqu64 %zmm0, 448(%eax)
; CHECK-NEXT: vzeroupper
; CHECK-NEXT: retl
entry:
More information about the llvm-commits
mailing list