[llvm-commits] [PATCH] LoopVectorizer

Nadav Rotem nrotem at apple.com
Tue Oct 16 11:05:31 PDT 2012


Hi,

I attached a patch for a loop vectorizer.  The loop vectorizer currently supports single basic block loops, with a very simple and strict set of legality rules. It only supports trip counts which are multiple of the vectorization factor. It does not have a cost model at all. We are now able to vectorize a good number of workloads from the gcc vectorizer example page [1].  We are also able to vectorize a small number of loop from the test-stuite.  Here are some benchmark results of the vectorizeable loops from the gcc test suite. 

Name   		Boost
Example1  	2.98X
Example8   	0.99X
Example10a 1.78X
Example10b 1.58X
Example11  	0.47X
Example12  	0.91X 
Example24  	1.67X
Example25  	6.61X

Thanks,
Nadav

[1] - http://gcc.gnu.org/projects/tree-ssa/vectorization.html 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: vectorizer_review.diff
Type: application/octet-stream
Size: 58700 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121016/a932314c/attachment.obj>


More information about the llvm-commits mailing list