This is an archive of the discontinued LLVM Phabricator instance.

[WIP][LoopUnroll] Enable unrolled loops to have scevable trip counts.
AbandonedPublic

Authored by samparker on Jun 17 2019, 9:24 AM.

Details

Reviewers
dmgreen
fhahn
anna
Summary

Loops with an 'unsigned' trip count appear to be a mystery to SCEV once it is unrolled, so try something different to make it understandable.

Diff Detail

Event Timeline

samparker created this revision.Jun 17 2019, 9:24 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 17 2019, 9:24 AM
samparker updated this revision to Diff 205351.Jun 18 2019, 7:58 AM
samparker retitled this revision from [LoopUnroll] Generate sub nuw for loop index to [WIP][LoopUnroll] Enable unrolled loops to have scevable trip counts..
samparker edited the summary of this revision. (Show Details)

Currently using a mask to calculate the unrolled body test value, this looks like it solves the problem but causes regressions! Next I will try counting up with adds instead of down...

samparker abandoned this revision.Jul 25 2019, 5:23 AM