diff options
author | Jay Foad <jay.foad@amd.com> | 2022-02-03 15:27:12 +0000 |
---|---|---|
committer | Jay Foad <jay.foad@amd.com> | 2022-02-03 16:27:48 +0000 |
commit | b9cf52bc3d29fc5a28015ee642d2b63354391c41 (patch) | |
tree | a534ab423209851e0596575cbdf478e1ab1d462c /clang-tools-extra/unittests/clang-tidy/LLVMModuleTest.cpp | |
parent | 93c81f44cce802be7f2b723a96ed8e10db6101fb (diff) | |
download | llvm-b9cf52bc3d29fc5a28015ee642d2b63354391c41.zip llvm-b9cf52bc3d29fc5a28015ee642d2b63354391c41.tar.gz llvm-b9cf52bc3d29fc5a28015ee642d2b63354391c41.tar.bz2 |
[AMDGPU] Simplify AMDGPUAnnotateUniformValues::visitLoadInst
Always set uniform metadata on the pointer if it is an instruction, but
otherwise do not bother to create a trivial getelementptr instruction,
because AMDGPUInstrInfo::isUniformMMO can already detect that various
non-instruction pointers are uniform.
Most of the test case churn is from tests that used undef as a pointer,
which AMDGPUInstrInfo::isUniformMMO treats as uniform.
Differential Revision: https://reviews.llvm.org/D118909
Diffstat (limited to 'clang-tools-extra/unittests/clang-tidy/LLVMModuleTest.cpp')
0 files changed, 0 insertions, 0 deletions