[PATCH] D95503: [AMDGPU] WQM/WWM: Fix marking of partial definitions

Carl Ritson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 26 20:54:00 PST 2021


critson created this revision.
critson added reviewers: piotr, foad, rampitec.
Herald added subscribers: kerbowa, hiraditya, t-tye, tpr, dstuttard, yaxunl, nhaehnle, jvesely, kzhuravl, arsenm.
critson requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

Track lanes when processing definitions for marking WQM/WWM.
If all lanes have been defined then marking can stop.
This prevents marking unnecessary instructions as WQM/WWM.

In particular this fixes a bug where values passing through
V_SET_INACTIVE would me marked as requiring WWM.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D95503

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95503.319457.patch
Type: text/x-patch
Size: 10092 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210127/8669ffbd/attachment-0001.bin>


More information about the llvm-commits mailing list