[PATCH] D80998: AMDGPU: Don't run mode switches with exec 0

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 2 06:36:36 PDT 2020


arsenm created this revision.
arsenm added reviewers: cdevadas, kerbowa, rampitec, nhaehnle.
Herald added subscribers: hiraditya, t-tye, tpr, dstuttard, yaxunl, wdng, jvesely, kzhuravl.
Herald added a project: LLVM.

These are scalar instructions that change vector instructions, so they
should not be executed without any active lanes.

      

The implementation of -amdgpu-skip-threshold also seem to be backwards
from expected, since decreasing it prevents removal.


https://reviews.llvm.org/D80998

Files:
  llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
  llvm/lib/Target/AMDGPU/SIInstrInfo.h
  llvm/test/CodeGen/AMDGPU/remove-short-exec-branches.mir
  llvm/test/CodeGen/AMDGPU/skip-if-dead.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80998.267860.patch
Type: text/x-patch
Size: 6469 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200602/d15654fb/attachment.bin>


More information about the llvm-commits mailing list