[X86] LowerTRUNCATE - attempt to use PACKSS/PACKUS on AVX512 targets if the truncatio...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 29 Jun 2023 14:27:28 +0000 (15:27 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 29 Jun 2023 14:27:41 +0000 (15:27 +0100)
commit34961c600d477386050828de4261d3c3a7cb809c
tree7278ccb4d24ffd0a0907e2dbb776bba378f3f50a
parent0501c1603f5dbbd81627ee1c25cff470b867a13f
[X86] LowerTRUNCATE - attempt to use PACKSS/PACKUS on AVX512 targets if the truncation source is concatenating from smaller subvectors

Don't just use AVX512 truncation ops if PACKSS/PACKUS can do this more cheaply
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/avx512-ext.ll
llvm/test/CodeGen/X86/concat-cast.ll
llvm/test/CodeGen/X86/masked_store_trunc_usat.ll
llvm/test/CodeGen/X86/vector-compare-results.ll
llvm/test/CodeGen/X86/vector-pack-256.ll
llvm/test/CodeGen/X86/vector-pack-512.ll
llvm/test/CodeGen/X86/vector-sext.ll
llvm/test/CodeGen/X86/vector-trunc-usat.ll