[LLVMdev] llvm-gcc : why no optimization?

Matthijs Kooijman matthijs at stdin.nl
Mon Sep 29 02:49:51 PDT 2008


Hi Vishal,

you might want to post the C code you were using. I suspect you wrote a
function which is dead, but forgot to declare it static? If a function is not
static, it is externally visible, so it's alive even when it's not referenced
internally. You might want to look at the "internalize" pass as well, to make
this process automatic for programs with a main function defined.

Gr.

Matthijs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080929/8272c983/attachment.sig>


More information about the llvm-dev mailing list