<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Progress has been slow. At the moment, I'm still working on
getting support for loops with multiple exits where all exits are
analyzeable. (The example below includes a data dependent exit,
that's a harder sub-problem.)</p>
<p>Currently, the progress on analyzeable exits is blocked on
<a class="moz-txt-link-freetext" href="https://reviews.llvm.org/D103700">https://reviews.llvm.org/D103700</a>.<br>
</p>
<p>Philip<br>
</p>
<div class="moz-cite-prefix">On 6/13/21 7:49 PM, raghesh via
llvm-dev wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAG17FstpiRHEeh1vcFL4WEh+T-CxEx3og8nqWFKJLE_QM9W_+Q@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div>Hi All,</div>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>Is the implementation ready to be used now? If not, will
this be landed in the near future? </div>
<div><br>
</div>
<div>When I tried with simple examples like the one below,
vectorization was not happening.</div>
<div><br>
</div>
<div>int foo(float *a, int n){<br>
int i;<br>
for (i=0;i<n;i++){<br>
if (a[i] == 0){<br>
break;<br>
}<br>
}<br>
return i;<br>
}<br>
</div>
<div><br>
</div>
[1] <a
href="https://lists.llvm.org/pipermail/llvm-dev/2019-September/134998.html"
target="_blank" moz-do-not-send="true">https://lists.llvm.org/pipermail/llvm-dev/2019-September/134998.html</a>
<div>[2] <a href="https://reviews.llvm.org/D66688"
target="_blank" moz-do-not-send="true">https://reviews.llvm.org/D66688</a></div>
<div>[3] <a href="https://reviews.llvm.org/D93317"
target="_blank" moz-do-not-send="true">https://reviews.llvm.org/D93317</a><br>
<div><br>
</div>
<div>Thanks and Regards,</div>
</div>
<div>
<div dir="ltr" class="gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div>------------------------------</div>
<div>Raghesh Aloor</div>
<div>AMD India Pvt. Ltd.</div>
<div>Bengaluru.</div>
<div>------------------------------</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>
<a class="moz-txt-link-freetext" href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a>
</pre>
</blockquote>
</body>
</html>