This is an archive of the discontinued LLVM Phabricator instance.

[NFC] Make the maximal loop depth an absolut value.
AbandonedPublic

Authored by jdoerfert on Oct 31 2014, 6:23 PM.

Details

Summary
Before MaxLoopDepth was implicitly a relative value to the "base loop
depth" of the SCoP, thus a SCoP at loop depth 2 containing one loop
had a MaxLoopDepth of 1. Now the MinLoopDepth and MaxLoopDepth allow
to reason about the absolute loop depth and in combination also about
the relative loop depth.

Diff Detail

Event Timeline

jdoerfert updated this revision to Diff 15665.Oct 31 2014, 6:23 PM
jdoerfert retitled this revision from to [NFC] Make the maximal loop depth an absolut value..
jdoerfert updated this object.
jdoerfert added subscribers: Restricted Project, Unknown Object (MLST).
grosser edited edge metadata.Jan 24 2015, 9:57 AM

Hi Johannes,

the patch looks generally reasonable, even though it does not explain why the additional information is necessary. As the patch is rather simple, it should be OK to commit it in case you have a use case for it.

include/polly/ScopInfo.h
763

Why do we need to add one only in case MinLoopDepth > 0? This may be worth a comment.

Any plans to commit this?

jdoerfert planned changes to this revision.May 20 2015, 6:19 AM

Abandoned as I do not remember for which bigger change this was for.

jdoerfert abandoned this revision.May 20 2015, 6:19 AM