[LLVMdev] Function code size estimation

Gregory Petrosyan gregory.petrosyan at gmail.com
Fri Jun 4 02:46:34 PDT 2010


Hello,

I am working on a pass that finds identical basic blocks and abstracts
them into functions, in order to reduce code size.

To decide, whether particular basic block group is worth factoring
out, I want to estimate code size of some function that uses one of
basic blocks in question 'as is', and after factoring the basic block
into a new function.

Can you please suggest a proper way to do this?

                Gregory



More information about the llvm-dev mailing list