[LLVMdev] Transition C->bitcode->assembly->object looses frame pointers

Duncan Sands baldrick at free.fr
Tue Apr 5 06:08:06 PDT 2011


Hi Alexander,

> We're doing some compile-time instrumentation according to the following scheme:
>
>    llvm-gcc -O1 -g $in -emit-llvm -S -o $name.ll
>    opt  -O2 -load Instr.so $INSTR_FLAGS $name.ll -S -o $name-inst.ll
>    llc  $name-inst.ll -o $name.S

llc eliminates frame pointers by default, see the -disable-fp-elim and
-disable-non-leaf-fp-elim options.

Ciao, Duncan.



More information about the llvm-dev mailing list