[llvm-dev] On Multi-Exit Loop Vectorizer

raghesh via llvm-dev llvm-dev at lists.llvm.org
Wed Jun 16 06:09:40 PDT 2021


Hi All,

Any update on this query?

Regards,
------------------------------
Raghesh Aloor
AMD India Pvt. Ltd.
Bengaluru.
------------------------------


On Mon, Jun 14, 2021 at 8:19 AM raghesh <raghesh.a at gmail.com> wrote:

> Hi All,
>
> RFC in [1] proposed to perform loop vectorization in presence of multiple
> exits. I could find some patches [2, 3] essential for this that got
> upstreamed.
>
> Is the implementation ready to be used now? If not, will this be landed in
> the near future?
>
> When I tried with simple examples like the one below, vectorization was
> not happening.
>
> int foo(float *a, int n){
>   int i;
>   for (i=0;i<n;i++){
>     if (a[i] == 0){
>       break;
>     }
>   }
>   return i;
> }
>
> [1] https://lists.llvm.org/pipermail/llvm-dev/2019-September/134998.html
> [2] https://reviews.llvm.org/D66688
> [3] https://reviews.llvm.org/D93317
>
> Thanks and Regards,
> ------------------------------
> Raghesh Aloor
> AMD India Pvt. Ltd.
> Bengaluru.
> ------------------------------
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20210616/72ba1d69/attachment.html>


More information about the llvm-dev mailing list