<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Dangeti,<div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jun 23, 2016, at 8:20 AM, Dangeti Tharun kumar via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">Dear LLVM Community,</div><div class=""><br class=""></div><div class="">I am D Tharun Kumar, masters student at Indian Institute of Technology Hyderabad, working in a team to improve current vectorizer in LLVM. As an initial study, we are studying various benchmarks to analyze and compare vectorizing capabilities of LLVM, GCC and ICC. We found that vectorization remarks given by LLVM are vague and brief, comparatively GCC and ICC are giving detailed diagnostics. </div></div></div></blockquote><div><br class=""></div><div>Yes this is an area that needs further improvement.  We have some immediate plans to make these more useful.  See the recent llvm-dev threads [1], [2].</div><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><div class=""><ul class=""><li class="">I am interested to know why the LLVM diagnostics are brief and not intuitive (making them less helpful)?</li></ul></div></div></div></div></blockquote><div>I think it’s just lack of work or weakness in the analyses to provide more detailed information.  It would be good to file bugs for specific cases where we fall behind.</div><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><div class=""><ul class=""><li class="">In our analysis we never seen llvm trying to vectorize outer loops. Is this well known? Is outer loop vectorization implemented in LLVM as in GCC? (<a href="http://dl.acm.org/citation.cfm?id=1454119" class="">http://dl.acm.org/citation.cfm?id=1454119</a>) If not, is someone working on it?</li></ul></div></div></div></div></blockquote><div><br class=""></div><div>I heard various people mention this but I am not sure whether actual work is already taking place.</div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><div class=""><ul class=""><li class="">On the TSVC benchmark suite, out of a total of 151 loops, LLVM, GCC and ICC vectorized 70, 82 and 112 loops respectively. Is the cause for lag of LLVM the inability of LLVM’s vectorizer, or are there any (enabling) optimization passes running before GCC’s vectorizer that are helping GCC perform better?</li></ul></div></div></div></div></blockquote><div><br class=""></div><div>I don’t know about the GCC but I’ve seen ICC perform loop transformation more aggressively that can increase the coverage for loop vectorization.  ICC performs Loop Distribution/Fusion/Interchange, etc by default at their highest optimization level.  We have some of these passes (distribution, interchange) but not on by default yet.</div><div><br class=""></div><div>Arguably, there is also some difference between focus areas for these compilers.  I think that ICC has a more HPC focus than LLVM or GCC.  We have Polly which is geared toward more the HPC use cases.</div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><div class=""><ul class=""><li class="">Loop peeling to enhance vectorization is present in GCC and ICC, but, the LLVM remarks don’t say anything about alignment. Does LLVM has this functionality and the vectorizer doesn’t remark about it, or it doesn’t it have the functionality at all?</li></ul></div></div></div></div></blockquote><div>We don’t have it.</div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><div class="">Finally, we appreciate suggestions and directions for improving the vectorization framework of LLVM.</div></div></div></div></blockquote><div><br class=""></div><div>This is a pretty active area.  Probably reading up on recent llvm-dev discussion in this area would be helpful to you.</div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><div class="">I would also like to know if anyone worked or is working on improving vectorization remarks.</div></div></div></div></blockquote><div><br class=""></div><div>Yes we are.  If you’re interested working on this area it would be good to coordinate.</div><div><br class=""></div><div>Adam</div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><br class=""></div><div class="">Regards,</div><div class=""><br class=""></div><div class="">Dangeti Tharun kumar</div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class=""><div dir="ltr" class=""><div class="">M.TECH Computer Science</div><div class="">IIT Hyderabad</div></div></div></div>
</div>
_______________________________________________<br class="">LLVM Developers mailing list<br class=""><a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a><br class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev<br class=""></div></blockquote></div><br class=""></div><div class=""><br class=""></div><div class="">[1] <a href="http://thread.gmane.org/gmane.comp.compilers.llvm.devel/98334" class="">http://thread.gmane.org/gmane.comp.compilers.llvm.devel/98334</a></div><div class="">[2] <a href="http://thread.gmane.org/gmane.comp.compilers.llvm.devel/99126" class="">http://thread.gmane.org/gmane.comp.compilers.llvm.devel/99126</a></div></body></html>