[X86] Use DAG.getConstant instead of getZeroVector.

llvm-svn: 346605
This commit is contained in:
Craig Topper 2018-11-11 07:24:36 +00:00
parent 45eb84f340
commit 2eab39f77b
2 changed files with 9 additions and 9 deletions

View File

@ -17560,7 +17560,7 @@ static SDValue LowerZERO_EXTEND_Mask(SDValue Op,
} }
SDValue One = DAG.getConstant(1, DL, WideVT); 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); SDValue SelectedVal = DAG.getSelect(DL, WideVT, In, One, Zero);

View File

@ -18,15 +18,15 @@ define void @pr34605(i8* nocapture %s, i32 %p) {
; CHECK-NEXT: kmovd %k1, %k1 ; CHECK-NEXT: kmovd %k1, %k1
; CHECK-NEXT: kandq %k1, %k0, %k1 ; CHECK-NEXT: kandq %k1, %k0, %k1
; CHECK-NEXT: vmovdqu8 {{\.LCPI.*}}, %zmm0 {%k1} {z} ; CHECK-NEXT: vmovdqu8 {{\.LCPI.*}}, %zmm0 {%k1} {z}
; CHECK-NEXT: vxorps %xmm1, %xmm1, %xmm1
; CHECK-NEXT: vmovdqu64 %zmm0, (%eax) ; CHECK-NEXT: vmovdqu64 %zmm0, (%eax)
; CHECK-NEXT: vmovups %zmm1, 64(%eax) ; CHECK-NEXT: vpxor %xmm0, %xmm0, %xmm0
; CHECK-NEXT: vmovups %zmm1, 128(%eax) ; CHECK-NEXT: vmovdqu64 %zmm0, 64(%eax)
; CHECK-NEXT: vmovups %zmm1, 192(%eax) ; CHECK-NEXT: vmovdqu64 %zmm0, 128(%eax)
; CHECK-NEXT: vmovups %zmm1, 256(%eax) ; CHECK-NEXT: vmovdqu64 %zmm0, 192(%eax)
; CHECK-NEXT: vmovups %zmm1, 320(%eax) ; CHECK-NEXT: vmovdqu64 %zmm0, 256(%eax)
; CHECK-NEXT: vmovups %zmm1, 384(%eax) ; CHECK-NEXT: vmovdqu64 %zmm0, 320(%eax)
; CHECK-NEXT: vmovups %zmm1, 448(%eax) ; CHECK-NEXT: vmovdqu64 %zmm0, 384(%eax)
; CHECK-NEXT: vmovdqu64 %zmm0, 448(%eax)
; CHECK-NEXT: vzeroupper ; CHECK-NEXT: vzeroupper
; CHECK-NEXT: retl ; CHECK-NEXT: retl
entry: entry: