SuccessChanges

Summary

  1. [X86] Allow combineTruncateWithSat to use pack instructions for i16->i8 (details)
Commit e07e593782b2d165ebfef3cac2999e74e42d20a6 by craig.topper
[X86] Allow combineTruncateWithSat to use pack instructions for i16->i8
without AVX512BW.
We need AVX512BW to be able to truncate an i16 vector. If we don't have
that we have to extend i16->i32, then trunc, i32->i8. But we won't be
able to remove the min/max if we do that. At least not without more
special handling.
llvm-svn: 368623
The file was modifiedllvm/lib/Target/X86/X86ISelLowering.cpp
The file was modifiedllvm/test/CodeGen/X86/vector-trunc-ssat.ll
The file was modifiedllvm/test/CodeGen/X86/masked_store_trunc_ssat.ll
The file was modifiedllvm/test/CodeGen/X86/avx512-trunc.ll
The file was modifiedllvm/test/CodeGen/X86/vector-trunc-packus.ll