[llvm-dev] No vectorization with -loop-vectorize and -slp-vectorizer
hameeza ahmed via llvm-dev
llvm-dev at lists.llvm.org
Mon Oct 14 02:21:41 PDT 2019
Hello,
I am trying to test individual optimizations of opt on unoptimized IR. But,
the IR is not getting vectorized by using following commands.
Documents/clang+llvm-9.0.0-x86_64-linux-gnu-ubuntu-18.04/bin/clang -O1
-Xclang -disable-llvm-passes -emit-llvm -S vecsum.c -o vecsum-noopt.ll
Documents/clang+llvm-9.0.0-x86_64-linux-gnu-ubuntu-18.04/bin/opt
-loop-vectorize -slp-vectorizer -S vecsum-noopt.ll -o vecto.ll
Though IR gets vectorized with O3 flag. Even I tried to replicate O3
behavior via individual flags with opt. But It is not showing same IR.
Where am I doing mistake?
Please help
Thank You
Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20191014/beec8bea/attachment.html>
More information about the llvm-dev
mailing list