summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2018-11-11 07:24:36 +0000
committerCraig Topper <craig.topper@intel.com>2018-11-11 07:24:36 +0000
commit2eab39f77b7c7a51d2623176e602b5b8b9e05272 (patch)
tree5765f107fe5a4613874562b50d6357f40f183a0e
parent45eb84f34044c2e3c83f420c9bbdcdf028eb80c4 (diff)
downloadbcm5719-llvm-2eab39f77b7c7a51d2623176e602b5b8b9e05272.tar.gz
bcm5719-llvm-2eab39f77b7c7a51d2623176e602b5b8b9e05272.zip
[X86] Use DAG.getConstant instead of getZeroVector.
llvm-svn: 346605
-rw-r--r--llvm/lib/Target/X86/X86ISelLowering.cpp2
-rw-r--r--llvm/test/CodeGen/X86/pr34605.ll16
2 files changed, 9 insertions, 9 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index 4de8e3d7108..6275e68db36 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -17560,7 +17560,7 @@ static SDValue LowerZERO_EXTEND_Mask(SDValue Op,
}
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);
diff --git a/llvm/test/CodeGen/X86/pr34605.ll b/llvm/test/CodeGen/X86/pr34605.ll
index 95459ce960a..4c1a3d7781e 100644
--- a/llvm/test/CodeGen/X86/pr34605.ll
+++ b/llvm/test/CodeGen/X86/pr34605.ll
@@ -18,15 +18,15 @@ define void @pr34605(i8* nocapture %s, i32 %p) {
; 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:
OpenPOWER on IntegriCloud