]> granicus.if.org Git - llvm/commit
[X86] Lower the cost of v2i32->v2f64 sint_to_fp under vector widening legalization.
authorCraig Topper <craig.topper@intel.com>
Thu, 22 Aug 2019 08:18:45 +0000 (08:18 +0000)
committerCraig Topper <craig.topper@intel.com>
Thu, 22 Aug 2019 08:18:45 +0000 (08:18 +0000)
commit3d187fdcb77ee4b345871a01fdb59cfb7419d76c
tree5b49fecac73ed0a883594dc89d673c47421c47e2
parent3ffae1923a53a2532f7564a0be44e41193e7bed2
[X86] Lower the cost of v2i32->v2f64 sint_to_fp under vector widening legalization.

I don't really understand the costs we're using for fp_to_sint,
but prior to widening legalization we used 20 as the cost for this
via the v2i64->v2f64 entry. That number seems better than the 40
we got with widening legalization. So now we need either a
v2i32->v2f64 entry or a v4i32->v2f64 entry depending on whether
AVX is enabled or not since we skip the first SSE2 table look up
under AVX.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369628 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86TargetTransformInfo.cpp
test/Analysis/CostModel/X86/cast.ll
test/Analysis/CostModel/X86/sitofp.ll