[PATCH] D109821: [ScalarEvolution] Infer loop max trip count from array accesses
    Liren.Peng via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Sep 23 18:03:25 PDT 2021
    
    
  
Peakulorain added a comment.
In D109821#3007802 <https://reviews.llvm.org/D109821#3007802>, @xbolva00 wrote:
> 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;
>   }
Yes, this will be helpful for loop unroll.
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D109821/new/
https://reviews.llvm.org/D109821
    
    
More information about the llvm-commits
mailing list