diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2017-08-30 03:26:18 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2017-08-30 03:26:18 +0000 |
commit | 3cb61634ff3795ef65b1f618d3809053b6a0a515 (patch) | |
tree | 34e9788cbd49a6e0293926931d10d8ab9afb8b8f /clang/lib/Serialization/ModuleManager.cpp | |
parent | 06cab79e5000c2859f0deff758d7526b7f4aff68 (diff) | |
download | llvm-3cb61634ff3795ef65b1f618d3809053b6a0a515.zip llvm-3cb61634ff3795ef65b1f618d3809053b6a0a515.tar.gz llvm-3cb61634ff3795ef65b1f618d3809053b6a0a515.tar.bz2 |
AMDGPU: Don't look for DS merge candidates with one use address
The merge is only possible if the base address register is the
same for the two instructions. If there is only the one use,
there's no point in doing an expensive forward scan checking
for memory interference looking for a merge candidate.
This gives a signficant improvement in one extreme testcase.
The code to do the scan is still algorithmically terrible,
so this is still the slowest pass in that example.
llvm-svn: 312096
Diffstat (limited to 'clang/lib/Serialization/ModuleManager.cpp')
0 files changed, 0 insertions, 0 deletions