summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/Local.cpp
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2015-12-15 20:55:55 +0000
committerTom Stellard <thomas.stellard@amd.com>2015-12-15 20:55:55 +0000
commita6f24c6565e0a8134c32532a77cb72dbbdb6834d (patch)
tree8da1c9c44225f6d7cd2f690853b29316e1df33cc /llvm/lib/Transforms/Utils/Local.cpp
parent596e97924ae5bd884509d5a99bfd89850cb7a29e (diff)
downloadbcm5719-llvm-a6f24c6565e0a8134c32532a77cb72dbbdb6834d.tar.gz
bcm5719-llvm-a6f24c6565e0a8134c32532a77cb72dbbdb6834d.zip
AMDGPU/SI: Select constant loads with non-uniform addresses to MUBUF instructions
Summary: We were previously selecting all constant loads to SMRD instructions and legalizing the SMRDs with non-uniform addresses during the SIFixSGPRCopesPass. This new solution is more simple and also generates much better code, because the instruction selector is able to take advantage of all the MUBUF addressing modes that are legalization pass wasn't able to. We also no longer need to generate v_add_* instructions when we have a uniform pointer and a non-uniform offset, as this is now folded into the MUBUF instruction during instruction selection. Reviewers: arsenm Subscribers: arsenm, llvm-commits Differential Revision: http://reviews.llvm.org/D15425 llvm-svn: 255672
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud