This is an archive of the discontinued LLVM Phabricator instance.

[Polly][WIP] Add polly profitable source annotation
Needs ReviewPublic

Authored by jdoerfert on Nov 5 2015, 9:50 PM.

Details

Reviewers
Meinersbur
Summary
Profitable annotations can be placend in the source via:
  __builtin_assume(__polly_profitable == X)
where X has to be the constant 0 (=unprofitable) or 1 (=profitable) and
__polly_profitable a global variable.

If multiple annotations dominate a region, the number of
"profitable"/"unprofitable" annotations is used to decide what to do.

-- Missing unit tests

Diff Detail

Event Timeline

jdoerfert updated this revision to Diff 39476.Nov 5 2015, 9:50 PM
jdoerfert retitled this revision from to [Polly][WIP] Add polly profitable source annotation.
jdoerfert updated this object.
jdoerfert added reviewers: grosser, Meinersbur.
jdoerfert added a subscriber: Restricted Project.
jdoerfert updated this revision to Diff 40003.Nov 11 2015, 7:36 PM

Added test case

grosser resigned from this revision.Sep 30 2016, 12:15 PM
grosser removed a reviewer: grosser.

I never wrote this down, but I believe adding writes to global constants just to annotate the source code is not the right approach. As this patch is old I suggest to open a new review in case this becomes interesting again. I resign from this review to empy my queue.