[LLVMdev] LLVM SSA

Eric Christopher echristo at apple.com
Mon Sep 28 11:16:42 PDT 2009


On Sep 26, 2009, at 1:32 PM, ivtm wrote:

> I tried using the mem2reg pass with  opt,
>
> e.g. opt -reg2mem x.bc

No, don't use mem2reg, and...

>
> where x.bc was produced with:
>
> llvm-gcc -O2 -emit-llvm -c x.c -o x.bc
>
> I use -O2 because it produces the least # of instructions and hence  
> the
> least # of new SSA virtual registers.
>

Don't do this either because it's going to run mem2reg. You want to  
emit unoptimized llvm ir and don't run mem2reg.

But you still haven't said why you'd want to do a thing so I imagine  
you're going to see less and less people responding to you.

-eric




More information about the llvm-dev mailing list