[PATCH] D43876: [LoopUnroll] Peel off iterations if it makes conditions true/false.
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 1 09:00:53 PST 2018
fhahn updated this revision to Diff 136540.
fhahn added a comment.
Update to use SCEV. It now uses a rather simple approach: evaluate AddRec at the DesiredPeelCount and then try to add the recurrence step until the predicate is not known any longer. We could probably compute the number of iterations directly, but I could not find any existing function in SCEV that would handle all predicates. But we only loop for MaxPeelCount iterations at max, and MaxPeelCount should be low.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 25209 bytes
Desc: not available
More information about the llvm-commits