[PATCH] D27811: [CostModel][X86] Add support for broadcast shuffle costs
Elena Demikhovsky via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 5 04:15:50 PST 2017
delena added inline comments.
================
Comment at: lib/Target/X86/X86TargetTransformInfo.cpp:683
+ { TTI::SK_Broadcast, MVT::v8i32, 2 }, // vperm2f128 + vpermilps
+ { TTI::SK_Broadcast, MVT::v16i16, 3 }, // vpshuflw + vpshufd + vinsertf128
+ { TTI::SK_Broadcast, MVT::v32i8, 2 }, // vpshufb + vinsertf128
----------------
theoretically, v16i16 should not be more expensive than v32i8, vpshufb should work for v8i16 as it works for v16i8. (I don't know how it is implemented).
Repository:
rL LLVM
https://reviews.llvm.org/D27811
More information about the llvm-commits
mailing list