[PATCH] D40183: [AMDGPU] Waitcnt pass. Add S_WAITCNT 0 if incomplete predecessor info

Mark Searles via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 17 09:47:35 PST 2017


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

When merging waitcnt info from preds, add a S_WAITCNT 0 at the top of a block if a pred has not yet been visited (so incomplete info re: preds) and we're sure that we will not revisit the block.


https://reviews.llvm.org/D40183

Files:
  lib/Target/AMDGPU/SIInsertWaitcnts.cpp
  test/CodeGen/AMDGPU/waitcnt-no-preds.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40183.123366.patch
Type: text/x-patch
Size: 8082 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171117/3a9a03e0/attachment.bin>


More information about the llvm-commits mailing list