[LLVMdev] Does loop vectorizer inquire about target's SIMD capabilities?

Renato Golin renato.golin at linaro.org
Thu Jan 3 14:05:35 PST 2013

On 3 January 2013 21:53, Nadav Rotem <nrotem at apple.com> wrote:

> > I am asking this because I would like to have loop vectorization
> disabled for targets that don't support SIMD instructions (for example,
> standard mips32).
> > Loop vectorization bloats the code size and prolongs compilation time
> without any improvement to performance for such targets.
> >
> Yes. Also, notice that the loop vectorizer tries to be more conservative
> when the 'optforsize' attribute is used.

Isn't the vectorizer disabled by default? Or are you requesting that if the
user chooses -vectorize the compiler prints a warning (unused param since
no SIMD)?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130103/d2254921/attachment.html>

More information about the llvm-dev mailing list