[PATCH] D41715: AMDGPU: Process amdgpu.uniform on loads

Marek Olšák via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 3 13:39:03 PST 2018


mareko created this revision.
mareko added reviewers: arsenm, nhaehnle.
Herald added subscribers: t-tye, tpr, dstuttard, yaxunl, wdng, kzhuravl.

Optimizations passes can remove GEP with offset=0 and amdgpu.uniform,
but they are less likely to drop amdgpu.uniform from a load.

This is the only way to have uniform loads without GEP or when GEP is
eliminated.


https://reviews.llvm.org/D41715

Files:
  lib/Target/AMDGPU/AMDGPUAnnotateUniformValues.cpp
  test/CodeGen/AMDGPU/amdgpu.uniform.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41715.128559.patch
Type: text/x-patch
Size: 4236 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180103/0cdbdf63/attachment.bin>


More information about the llvm-commits mailing list