[PATCH] D62907: [WIP][ARM] Implement TTI::isHardwareLoopProfitable

Sam Parker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 5 07:48:11 PDT 2019


samparker created this revision.
Herald added subscribers: kristof.beyls, javed.absar.

Implement the target hook to drive the HardwareLoop pass. It's relatively basic as it doesn't have to ensure that a low-overhead loop is possible as we'll be able to fix it up later. It's also too pessimistic currently, deciding that any call would reset the loop counting status register.


https://reviews.llvm.org/D62907

Files:
  lib/Target/ARM/ARMTargetTransformInfo.cpp
  lib/Target/ARM/ARMTargetTransformInfo.h
  test/Transforms/HardwareLoops/ARM/calls.ll
  test/Transforms/HardwareLoops/ARM/counter.ll
  test/Transforms/HardwareLoops/ARM/do-rem.ll
  test/Transforms/HardwareLoops/ARM/fp-emulation.ll
  test/Transforms/HardwareLoops/ARM/simple-do.ll
  test/Transforms/HardwareLoops/ARM/structure.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62907.203155.patch
Type: text/x-patch
Size: 33131 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190605/aad0a8a9/attachment.bin>


More information about the llvm-commits mailing list