From fcfdcbcfd4201ec6f2a0f96b75dc4d7474d934b4 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Fri, 28 Feb 2020 22:45:05 -0800 Subject: [PATCH] [X86] Tighten up the SDTypeProfile for X86ISD::CVTNE2PS2BF16. NFCI --- lib/Target/X86/X86InstrFragmentsSIMD.td | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Target/X86/X86InstrFragmentsSIMD.td b/lib/Target/X86/X86InstrFragmentsSIMD.td index 421ee160245..67092e57929 100644 --- a/lib/Target/X86/X86InstrFragmentsSIMD.td +++ b/lib/Target/X86/X86InstrFragmentsSIMD.td @@ -761,7 +761,9 @@ def X86vfproundRnd: SDNode<"X86ISD::VFPROUND_RND", // cvt fp to bfloat16 def X86cvtne2ps2bf16 : SDNode<"X86ISD::CVTNE2PS2BF16", - SDTypeProfile<1, 2, [SDTCisVec<0>, SDTCisVec<1>, + SDTypeProfile<1, 2, [SDTCVecEltisVT<0, i16>, + SDTCVecEltisVT<1, f32>, + SDTCisSameSizeAs<0,1>, SDTCisSameAs<1,2>]>>; def X86mcvtneps2bf16 : SDNode<"X86ISD::MCVTNEPS2BF16", SDTypeProfile<1, 3, [SDTCVecEltisVT<0, i16>,