Displaying 1 result from an estimated 1 matches for "d43876".
Did you mean:
d23876
2018 Mar 09
1
Loop distribute / versioning to remove control flow
Hi,
Florian has been working on loop peeling to remove control flow from loop bodies in https://reviews.llvm.org/D43876. For larger constants or other loop invariant bounds, such like:
for (unsigned i = 0; i; i < 1000; ++i) {
if (i < M)
... something
else
... something else
}
The loop could be split into two, like so:
Min = min(1000, M);
unsigned i;
for (i = 0; i; i < Min; ++i) {
... somethi...