[PATCH] D86074: [ARM][MVE] Tail-predication: check get.active.lane.mask's BTC value

Sjoerd Meijer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 17 06:53:05 PDT 2020


SjoerdMeijer created this revision.
SjoerdMeijer added reviewers: efriedma, samparker, dmgreen.
Herald added subscribers: danielkiss, hiraditya, kristof.beyls.
Herald added a project: LLVM.
SjoerdMeijer requested review of this revision.

This adds additional checks to see whether it is safe to lower intrinsic get.active.lane.mask to ARM's VCTP which will enable tail-predication. I.e., similarly to several checks already performed on the IV (the first argument of get.active.lane), this adds missing checks that the backedge-taken count (the second argument) is of the form that we expect.


https://reviews.llvm.org/D86074

Files:
  llvm/lib/Target/ARM/MVETailPredication.cpp
  llvm/test/CodeGen/Thumb2/LowOverheadLoops/basic-tail-pred.ll
  llvm/test/CodeGen/Thumb2/LowOverheadLoops/clear-maskedinsts.ll
  llvm/test/CodeGen/Thumb2/LowOverheadLoops/nested.ll
  llvm/test/CodeGen/Thumb2/LowOverheadLoops/tail-pred-const.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86074.286007.patch
Type: text/x-patch
Size: 28836 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200817/6808ffd4/attachment.bin>


More information about the llvm-commits mailing list