[LLVMdev] predefined pass for transforming a module to SSA?

Anton Korobeynikov asl at math.spbu.ru
Thu May 17 03:26:01 PDT 2007


Hello, Ying.

> But if a module is constructed by hand, how can I transform it into a
> SSA-based llvm?
LLVM IR is *always* in SSA form, even if you're constructing module by
hands (Verifier pass actually does the check and reject invalid code).
If you want to eliminate memory accesses and transform them to registers
& phi's you might want to run mem2reg pass also.

-- 
With best regards, Anton Korobeynikov.

Faculty of Mathematics & Mechanics, Saint Petersburg State University.





More information about the llvm-dev mailing list