[PATCH] D102269: [ARM] Expand predecessor search to multiple blocks when reverting WhileLoopStarts

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 11 12:03:36 PDT 2021


dmgreen created this revision.
dmgreen added reviewers: SjoerdMeijer, malharJ, samtebbs, ostannard, simon_tatham.
Herald added subscribers: danielkiss, hiraditya, kristof.beyls.
dmgreen requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

We were previously only searching a single preheader for call instructions when reverting WhileLoopStarts to DoLoopStarts. This extends that to multiple blocks that can come up when, for example a loop is expanded from a memcpy. It also expends the instructions from just Call's to also include other LoopStarts, to catch other low overhead loops in the preheader.


https://reviews.llvm.org/D102269

Files:
  llvm/lib/Target/ARM/MVETPAndVPTOptimisationsPass.cpp
  llvm/test/CodeGen/Thumb2/LowOverheadLoops/memcall.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102269.344525.patch
Type: text/x-patch
Size: 6831 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210511/edcf2a53/attachment.bin>


More information about the llvm-commits mailing list