[llvm-commits] [llvm] r169950 - in /llvm/trunk: include/llvm/LinkAllPasses.h include/llvm/Transforms/Vectorize.h lib/Transforms/IPO/PassManagerBuilder.cpp lib/Transforms/Vectorize/LoopVectorize.cpp lib/Transforms/Vectorize/LoopVectorize.h lib/Transforms/Vectorize/Vectorize.cpp

Chris Lattner clattner at apple.com
Wed Dec 12 10:42:35 PST 2012


On Dec 11, 2012, at 11:32 PM, Tobias Grosser <tobias at grosser.es> wrote:

> On 12/12/2012 02:11 AM, Nadav Rotem wrote:
>> Author: nadav
>> Date: Tue Dec 11 19:11:46 2012
>> New Revision: 169950
>> 
>> URL: http://llvm.org/viewvc/llvm-project?rev=169950&view=rev
>> Log:
>> LoopVectorizer: When -Os is used, vectorize only loops that dont require a tail loop. There is no testcase because I dont know of a way to initialize the loop vectorizer pass without adding an additional hidden flag.
> 
> You can have a look at how the BBVectorizer is initialized. Something similar may work for you here.

Wouldn't it make more sense to look at the optsize attribute on functions?  In an LTO context, different functions can be optimized different ways… this also allows you to write multiple testcases within one .ll file.

-Chris



More information about the llvm-commits mailing list