[llvm] r179060 - Update the docs about the fact that the loop vectorizer is enabled by default for -O3.

Arnold Schwaighofer aschwaighofer at apple.com
Mon Apr 8 15:23:05 PDT 2013


Yes, see the following code in PassManagerBuilder:
 
 if (LoopVectorize && OptLevel > 2)
    MPM.add(createLoopVectorizePass());


On Apr 8, 2013, at 4:47 PM, Hal Finkel <hfinkel at anl.gov> wrote:

> ----- Original Message -----
>> Fro
>> -We plan to enable the Loop Vectorizer by default as part of the LLVM
>> 3.3 release.
>> +At this point the loop vectorizer is only enabled for -O3, and will
>> not work for -O2 or -Os.
> 
> This makes it sound like -O2 -fvectorize will not vectorize at all. Is that right?
> 
> -Hal



More information about the llvm-commits mailing list