[PATCH] D98413: [ARM] Revert WhileLoopStartLR to DoLoopStart

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 11 04:30:14 PST 2021


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

If a WhileLoopStartLR is reverted due to calls in the preheader, we may still be able to instead create a DoLoopStart, preserving the low overhead loop. This adds code for that, only reverting the WhileLoopStartR to a Br/Cmp, leaving the rest of the low overhead loop in place.


https://reviews.llvm.org/D98413

Files:
  llvm/lib/Target/ARM/MVETPAndVPTOptimisationsPass.cpp
  llvm/lib/Target/ARM/MVETailPredUtils.h
  llvm/test/CodeGen/Thumb2/LowOverheadLoops/while-loops.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98413.329920.patch
Type: text/x-patch
Size: 5059 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210311/bc3904cb/attachment.bin>


More information about the llvm-commits mailing list