On Aug 19, 2013, at 18:47 , Eugene Toder <eltoder at gmail.com> wrote:> Have you tried running SLP vectorizer pass (-vectorize-slp)?Yes. That was the first thing i tried, and it didn't do anything. I was looking the vectorizer, but then I saw some things that made me wonder if it was even supposed to do this
Can you send the IR of the function ? On Aug 20, 2013, at 8:36 AM, Matt Arsenault <arsenm2 at gmail.com> wrote:> > On Aug 19, 2013, at 18:47 , Eugene Toder <eltoder at gmail.com> wrote: > >> Have you tried running SLP vectorizer pass (-vectorize-slp)? > Yes. That was the first thing i tried, and it didn't do anything. I was looking the vectorizer, but then I saw some things that made me wonder if it was even supposed to do this > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
I suspect that in the IR you will see a sequence of inserts. At the moment the SLP-vectorizer does not look at “insert” sequences. But it should be really easy (and beneficial) to. On Aug 20, 2013, at 10:22 AM, Nadav Rotem <nrotem at apple.com> wrote:> Can you send the IR of the function ? > > On Aug 20, 2013, at 8:36 AM, Matt Arsenault <arsenm2 at gmail.com> wrote: > >> >> On Aug 19, 2013, at 18:47 , Eugene Toder <eltoder at gmail.com> wrote: >> >>> Have you tried running SLP vectorizer pass (-vectorize-slp)? >> Yes. That was the first thing i tried, and it didn't do anything. I was looking the vectorizer, but then I saw some things that made me wonder if it was even supposed to do this >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >
On Aug 20, 2013, at 10:22 , Nadav Rotem <nrotem at apple.com> wrote:> Can you send the IR of the function ?Attached is the -O0 and -O3 IR -------------- next part -------------- A non-text attachment was scrubbed... Name: vselect_optimized.ll Type: application/octet-stream Size: 1545 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130820/94befc0a/attachment.obj> -------------- next part -------------- A non-text attachment was scrubbed... Name: vselect_unoptimized.ll Type: application/octet-stream Size: 4423 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130820/94befc0a/attachment-0001.obj>