[llvm-dev] questionabout loop rotation

Aditya K via llvm-dev llvm-dev at lists.llvm.org
Wed Mar 25 11:30:18 PDT 2020

>  Aditya, I took a look but I was hoping for a simpler example. And something that is more "usual". As Florian mentioned, these branches are on undefs.

The branches are like that because I reduced the test cases using bug-point.

> cc: Florian
> Have you considered using the existing LoopPeeling infrastructure (part of loop unrolling) to do the peeling? It already peels off iterations from the start up to a threshold, if it makes a condition in the loop body invariant.
After looking a little bit into the code of loop peeling, it only seems to work on loops with single exits.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200325/35f29774/attachment.html>

More information about the llvm-dev mailing list