[PATCH] D12789: [PlaceSafepoints] Make the width of a counted loop settable.

Sanjoy Das via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 10 18:19:36 PDT 2015


sanjoy created this revision.
sanjoy added a reviewer: reames.
sanjoy added a subscriber: llvm-commits.
Herald added a subscriber: sanjoy.

This change lets a `PlaceSafepoints` client change how wide the trip
count of a loop has to be for the loop to be considerd "counted", via
`CountedLoopTripWidth`.  It also removes the boolean `SkipCounted` flag
and the `upperTripBound` constant -- we can get the old behavior of
`SkipCounted` == `false` by setting `CountedLoopTripWidth` to `13` (2 ^
13 == 8192).

http://reviews.llvm.org/D12789

Files:
  lib/Transforms/Scalar/PlaceSafepoints.cpp
  test/Transforms/PlaceSafepoints/finite-loops.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12789.34519.patch
Type: text/x-patch
Size: 4608 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150911/3984ed17/attachment.bin>


More information about the llvm-commits mailing list