[LLVMdev] Enabling vectorization with LLVM 3.3 for a DSL emitting LLVM IR

Stéphane Letz
2013-07-04T20:39:34Z

Hi,

Our DSL can generate C or directly generate LLVM IR. With LLVM 3.3, we can
vectorize the C produced code using clang with -O3, or clang with -O1 then opt
-O3 -vectorize-loops. But the same program generating LLVM IR version cannot be
vectorized with opt -O3 -vectorize-loops. So our guess is that our generated
LLVM IR lacks some informations that are needed by the vectorization passes to
correctly work.

Any idea of what could be lacking?

Thanks