[llvm-dev] On Multi-Exit Loop Vectorizer
raghesh via llvm-dev
llvm-dev at lists.llvm.org
Sun Jun 13 19:49:04 PDT 2021
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/20210614/9540a62b/attachment.html>
More information about the llvm-dev
mailing list