[PATCH] D109821: [ScalarEvolution] Infer loop max trip count from array accesses
Dávid Bolvanský via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 18 02:35:45 PDT 2021
xbolva00 added a comment.
This can be useful also for loopunrollruntime, right?
For example:
int data[6];
int foo(void) {
int p = 0;
int i = 0;
while (data[i++] != -1) // currently LLVM does not unroll this loop 6x like GCC does
p += data[i];
return p;
}
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D109821/new/
https://reviews.llvm.org/D109821
More information about the llvm-commits
mailing list