[PATCH] D63336: [CodeGen] Add RequiresLatch to HardwareLoopInfo

Sam Parker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 14 08:37:54 PDT 2019


samparker created this revision.
samparker added reviewers: hfinkel, markus, lebedev.ri, JonChesterfield, dmgreen, SjoerdMeijer.
Herald added a subscriber: javed.absar.
Herald added a project: LLVM.

The HardwareLoops pass finds exit blocks with a scevable exit count. These exit blocks are usually loop latches, but not always. Add an option to the pass, and a member to HardwareLoopInfo, which allows the user and backend to specify whether the counter decrement should be placed in a latch.


Repository:
  rL LLVM

https://reviews.llvm.org/D63336

Files:
  include/llvm/Analysis/TargetTransformInfo.h
  lib/CodeGen/HardwareLoops.cpp
  lib/Target/ARM/ARMTargetTransformInfo.cpp
  test/Transforms/HardwareLoops/ARM/structure.ll
  test/Transforms/HardwareLoops/unconditional-latch.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63336.204773.patch
Type: text/x-patch
Size: 6830 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190614/2f1dbff5/attachment.bin>


More information about the llvm-commits mailing list