[PATCH] D22199: AMDGPU: Leave WQM earlier before VMEM loads

Nicolai Hähnle via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 10 07:36:27 PDT 2016


nhaehnle created this revision.
nhaehnle added reviewers: arsenm, tstellarAMD, mareko.
nhaehnle added a subscriber: llvm-commits.
Herald added subscribers: kzhuravl, arsenm.

When the initial propagation determines that a VMEM load does not have to run
in WQM, make it run in Exact mode instead if the remainder of the shader
doesn't care. This can reduce the bandwidth required for loads.

This typically introduces two additional SALU instructions and uses two
additional SGPRs in pixel shaders for the livemask.

http://reviews.llvm.org/D22199

Files:
  lib/Target/AMDGPU/SIWholeQuadMode.cpp
  test/CodeGen/AMDGPU/wqm.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22199.63427.patch
Type: text/x-patch
Size: 3908 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160710/aebae063/attachment.bin>


More information about the llvm-commits mailing list