[LLVMdev] Selectively Disable Inlining for Functions
Chris Lattner
sabre at nondot.org
Mon Mar 6 14:05:39 PST 2006
On Mon, 6 Mar 2006, John Criswell wrote:
> I was wondering if there is a standard way of specifying a list of functions
> that *should not* be inlined by the -inline pass.
Nope, but you could hack something into gccas/gccld if you want. Of
course, you can disable inlining completely with the -disable-inlining
flag.
> I'm currently working with an experimental analysis pass that checks for
> calls to memory allocation functions; inlining and dead code elimination
> might make the pass more stable, but we don't want to inline the calls to the
> memory allocation functions until after our analysis pass is finished.
The simplest way is to change the heuristic to consider those functions
as expensive to inline.
-Chris
--
http://nondot.org/sabre/
http://llvm.org/
More information about the llvm-dev
mailing list