This is an archive of the discontinued LLVM Phabricator instance.

[PlaceSafepoints] Make the width of a counted loop settable.
ClosedPublic

Authored by sanjoy on Sep 10 2015, 6:19 PM.

Details

Summary

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).

Diff Detail

Repository
rL LLVM

Event Timeline

sanjoy updated this revision to Diff 34519.Sep 10 2015, 6:19 PM
sanjoy retitled this revision from to [PlaceSafepoints] Make the width of a counted loop settable..
sanjoy updated this object.
sanjoy added a reviewer: reames.
sanjoy added a subscriber: llvm-commits.
reames accepted this revision.Sep 11 2015, 3:32 PM
reames edited edge metadata.

LGTM

This revision is now accepted and ready to land.Sep 11 2015, 3:32 PM
This revision was automatically updated to reflect the committed changes.