In http://llvm.org/docs/Vectorizers.html, it says "LLVM’s Loop
Vectorizer is now enabled by default for -O3". But I use the following
command: opt -O3 -debug-pass=Arguments test.ll -o /dev/null I can't see
the "loop-vectorize" option in the result. Any advice ?
My opt version is:
====================================$ opt --version
LLVM (http://llvm.org/):
LLVM version 3.4svn
DEBUG build with assertions.
Built May 20 2013 (18:51:00).
Default target: x86_64-unknown-linux-gnu
Host CPU: corei7-avx
==================================== Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20130603/70a65c82/attachment.html>
Duncan Sands
2013-Jun-03 15:59 UTC
[LLVMdev] LLVM Loop Vectorizer is enabled by default???
Hi xtxwy jim, On 03/06/13 17:37, xtxwy jim wrote:> In http://llvm.org/docs/Vectorizers.html, it says "LLVM’s Loop Vectorizer > is now enabled by default for -O3". But I use the following command: opt -O3 > -debug-pass=Arguments test.ll -o /dev/null I can't see the "loop-vectorize" > option in the result. Any advice ?you also have to pass -vectorize-loops. As clang passes this, indeed in clang it is enabled by default at -O3. In my opinion this option should default to on. Ciao, Duncan. PS: I'm not sure why clang doesn't just set LoopVectorize to true in the PassManagerBuilder, rather than passing this command line flag.> My opt version is: > ====================================> $ opt --version > LLVM (http://llvm.org/): > LLVM version 3.4svn > DEBUG build with assertions. > Built May 20 2013 (18:51:00). > Default target: x86_64-unknown-linux-gnu > Host CPU: corei7-avx > ====================================> Thanks. > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >