[llvm] r220652 - Add an option to the LTO code generator to disable vectorization during LTO

Arnold Schwaighofer aschwaighofer at apple.com
Mon Oct 27 07:46:25 PDT 2014


Before, r220345 we had 

  PM.add(createLoopVectorizePass(true, true);

loop unrolling was disable in the LTO vectorizer pass.

I did not want to add yet another flag to the LTO pipeline.


> On Oct 26, 2014, at 10:35 PM, Chandler Carruth <chandlerc at google.com> wrote:
> 
> 
> On Sun, Oct 26, 2014 at 7:05 PM, Rafael EspĂ­ndola <rafael.espindola at gmail.com <mailto:rafael.espindola at gmail.com>> wrote:
> > --- llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp (original)
> > +++ llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp Sun Oct 26 16:50:58 2014
> > @@ -444,7 +444,7 @@ void PassManagerBuilder::addLTOOptimizat
> >    // More loops are countable; try to optimize them.
> >    PM.add(createIndVarSimplifyPass());
> >    PM.add(createLoopDeletionPass());
> > -  PM.add(createLoopVectorizePass(DisableUnrollLoops, LoopVectorize));
> > +  PM.add(createLoopVectorizePass(true, LoopVectorize));
> >
> 
> Was it intentional to always disable loop unrolling?
> 
> I would suggest it was an accident. =]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141027/33175e88/attachment.html>


More information about the llvm-commits mailing list