[X86] LowerTRUNCATE - use LowerTruncateVecPackWithSignBits for prefer-256 bit AVX512...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 20 Jul 2023 12:48:56 +0000 (13:48 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 20 Jul 2023 12:55:28 +0000 (13:55 +0100)
commitcc77da50204b993dd68b717cfb1fb6c3d10045c5
treeaefdf20385264589d32ef1b9a381037e01ee0ade
parent4f578e9407ea95d474db3b7ddbffb95d5bfd336c
[X86] LowerTRUNCATE - use LowerTruncateVecPackWithSignBits for prefer-256 bit AVX512 cases during type legalization

If the AVX512 target will split the 512-bit vector truncation then try to use PACKSS/PACKUS first.
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/min-legal-vector-width.ll