[PATCH] D43876: [LoopUnroll] Peel off iterations if it makes conditions true/false.
Sam Parker via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 8 01:09:00 PST 2018
samparker added a comment.
Just FYI, I am also currently working on a pass to handle slightly more generic cases within the loop body, such like:
for (unsigned i = 0; i; i < 1000; ++i) {
if (i < M)
... something
else
... something else
}
My transformation operates on the unrolled version and also attempts to remove selects if the loop body has been simplified into one block. Hopefully I will be able to get an initial version up for review and discussion next week.
https://reviews.llvm.org/D43876
More information about the llvm-commits
mailing list