[LLVMdev] LLVM SSA

Reid Kleckner rnk at mit.edu
Sat Sep 26 13:06:38 PDT 2009


LLVM IR is always in SSA form.  If you *really* don't want it to be,
use allocas for everything and then don't run the mem2reg optimization
pass.  This will represent all of your variables as stack locations
instead of registers, and it will not be SSA.

Reid

On Sat, Sep 26, 2009 at 3:55 PM, ivtm <martinaide1 at yahoo.com> wrote:
>
> I tried the -O0 option and I am still getting output in SSA form:
>
> I do:
> llvm-gcc -O0 -emit-llvm -c x.c -o x.bc,
>
> and then:
>
> llvm-dis x.bc
>
>
>
>
> Anton Korobeynikov-2 wrote:
>>
>>> At any rate, is there an option to the llvm-gcc --emit-llvm to tell it to
>>> produce .bc files that are at least space optimized (or even better, not
>>> in
>>> SSA form) ?
>> Yes, -O0
>>
>> --
>> With best regards, Anton Korobeynikov
>> Faculty of Mathematics and Mechanics, Saint Petersburg State University
>> _______________________________________________
>> LLVM Developers mailing list
>> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>>
>>
>
> --
> View this message in context: http://www.nabble.com/LLVM-SSA-tp25621668p25628356.html
> Sent from the LLVM - Dev mailing list archive at Nabble.com.
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>




More information about the llvm-dev mailing list