[llvm-commits] patch: teach deadargelim to work on externally visible functions!

Rafael Espindola espindola at google.com
Sun Jan 10 20:38:26 PST 2010


> It would also require disabling inlining. :)

Correct . It is a very expensive feature :-(

Consider

void f(void) { }
void g(void) {
 f();
}

If given -fPIC -O3 gcc produces

g:
.LFB1:
        .cfi_startproc
        jmp     f at PLT
        .cfi_endproc

if given just -O3 it will inline f in g.

if f is marked with __attribute__((visibility ("hidden"))) gcc will
inline it with -fPIC.

> -Chris

Cheers,
-- 
Rafael Ávila de Espíndola




More information about the llvm-commits mailing list