OSDN Git Service

[AMDGPU] Allow narrowing muti-dword loads
authorStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Tue, 21 Jan 2020 20:49:25 +0000 (12:49 -0800)
committerStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Fri, 24 Jan 2020 19:03:41 +0000 (11:03 -0800)
commit44b865fa7fea8243126c489df6604ae7ecee072a
treecb479f1f64bc2ae6eba5daa7731efcfceeb1bf61
parent7a94d4f4ee435386ff47f7f3ecad4e56608578b6
[AMDGPU] Allow narrowing muti-dword loads

Currently BE allows only a little load narrowing because
of the fear it will produce sub-dword ext loads. However,
we can always allow narrowing if we are shrinking one
multi-dword load to another multi-dword load.

In particular we were unable to reduce s_load_dwordx8 into
s_load_dwordx4 if identity shuffle was used to extract
low 4 dwords.

Differential Revision: https://reviews.llvm.org/D73133
llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
llvm/test/CodeGen/AMDGPU/vector_shuffle.packed.ll