[llvm] r187595 - Only enable SLP-vectorization on O3 builds.

Chandler Carruth chandlerc at google.com
Thu Aug 1 13:10:36 PDT 2013


On Thu, Aug 1, 2013 at 11:28 AM, Nadav Rotem <nrotem at apple.com> wrote:

> Author: nadav
> Date: Thu Aug  1 13:28:15 2013
> New Revision: 187595
>
> URL: http://llvm.org/viewvc/llvm-project?rev=187595&view=rev
> Log:
> Only enable SLP-vectorization on O3 builds.
>
> Modified:
>     llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp
>
> Modified: llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp
> URL:
> http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp?rev=187595&r1=187594&r2=187595&view=diff
>
> ==============================================================================
> --- llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp (original)
> +++ llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp Thu Aug  1
> 13:28:15 2013
> @@ -217,7 +217,7 @@ void PassManagerBuilder::populateModuleP
>    addExtensionsToPM(EP_ScalarOptimizerLate, MPM);
>
>    if (!LateVectorize) {
> -    if (SLPVectorize)
> +    if (SLPVectorize && OptLevel > 2)
>

Please handle this in Clang. Now I can't continue testing the SLP
vectorizer when I happen to be using other optimization modes.


>        MPM.add(createSLPVectorizerPass());   // Vectorize parallel scalar
> chains.
>
>      if (BBVectorize) {
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130801/92d033f8/attachment.html>


More information about the llvm-commits mailing list