diff options
author | Craig Topper <craig.topper@intel.com> | 2019-06-23 23:51:21 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2019-06-23 23:51:21 +0000 |
commit | e8da65c698edf099208fa041d956490cf25e70a3 (patch) | |
tree | 8c328924481e598dc26f938438f6b1af0a8836ad /llvm/lib/Support/DataExtractor.cpp | |
parent | c6094f0495bfb874e908b4ef3ff8a6adde92be34 (diff) | |
download | bcm5719-llvm-e8da65c698edf099208fa041d956490cf25e70a3.tar.gz bcm5719-llvm-e8da65c698edf099208fa041d956490cf25e70a3.zip |
[X86] Turn v16i16->v16i8 truncate+store into a any_extend+truncstore if we avx512f, but not avx512bw.
Ideally we'd be able to represent this truncate as a any_extend to
v16i32 and a truncate, but SelectionDAG doens't know how to not
fold those together.
We have isel patterns to use a vpmovzxwd+vpdmovdb for the truncate,
but we aren't able to simultaneously fold the load and the store
from the isel pattern. By pulling the truncate into the store we
can successfully hide it from the DAG combiner. Then we can isel
pattern match the truncstore and load+any_extend separately.
llvm-svn: 364163
Diffstat (limited to 'llvm/lib/Support/DataExtractor.cpp')
0 files changed, 0 insertions, 0 deletions