[PATCH] D67801: [ARM][LowOverheadLoops] Use subs during revert.

Sam Parker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 20 00:04:09 PDT 2019


samparker created this revision.
samparker added reviewers: dmgreen, SjoerdMeijer.
Herald added a subscriber: kristof.beyls.

Check whether there are any uses or defs between the LoopDec and LoopEnd. If there's not, then we can use a subs to set the cpsr and skip generating a cmp.


https://reviews.llvm.org/D67801

Files:
  lib/Target/ARM/ARMLowOverheadLoops.cpp
  test/CodeGen/Thumb2/LowOverheadLoops/branch-targets.ll
  test/CodeGen/Thumb2/LowOverheadLoops/end-positive-offset.mir
  test/CodeGen/Thumb2/LowOverheadLoops/revert-non-header.mir
  test/CodeGen/Thumb2/LowOverheadLoops/revert-while.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67801.220957.patch
Type: text/x-patch
Size: 6097 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190920/1180adce/attachment-0001.bin>


More information about the llvm-commits mailing list