[CostModel][X86] Adjust sitofp/uitofp SSE/AVX legalized costs based on llvm-mca reports.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 6 Jul 2021 18:49:01 +0000 (19:49 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 7 Jul 2021 11:03:45 +0000 (12:03 +0100)
commita7da0296a663094e661c54a5ba2c4ce0239c312b
tree60f2b63d386cdf639b01b4cb895fb569e6803f89
parent645e599e9361afc85c77ec76f724e6ffd1822ca8
[CostModel][X86] Adjust sitofp/uitofp SSE/AVX legalized costs based on llvm-mca reports.

Update (mainly) vXi8/vXi16 -> vXf32/vXf64 sitofp/uitofp costs based on the worst case costs from the script in D103695.

Move to using legalized types wherever possible, which allows us to prune the cost tables.
llvm/lib/Target/X86/X86TargetTransformInfo.cpp
llvm/test/Analysis/CostModel/X86/cast.ll
llvm/test/Analysis/CostModel/X86/sitofp.ll
llvm/test/Analysis/CostModel/X86/uitofp.ll
llvm/test/Transforms/SLPVectorizer/X86/sitofp-inseltpoison.ll
llvm/test/Transforms/SLPVectorizer/X86/sitofp.ll
llvm/test/Transforms/SLPVectorizer/X86/uitofp.ll