AMDGPU: Preserve metadata when widening loads
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 5 Jun 2018 19:52:56 +0000 (19:52 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 5 Jun 2018 19:52:56 +0000 (19:52 +0000)
commit57e541e87eef1c1e49aad638f9b90484e6f8b7aa
tree5655e767d3323e67631fecd574898e317850d2d2
parent9224c00d2bbc1c6d009e0acc7c0a3454cb0eeec9
AMDGPU: Preserve metadata when widening loads

Preserves the low bound of the !range. I don't think
it's legal to do anything with the top half since it's
theoretically reading garbage.

llvm-svn: 334045
llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
llvm/test/CodeGen/AMDGPU/widen_extending_scalar_loads.ll