[llvm-commits] [llvm] r53712 - /llvm/trunk/lib/Transforms/Utils/InlineCost.cpp

Gabor Greif gabor at mac.com
Wed Jul 16 19:17:40 PDT 2008


> Hi Evan,
>
> > +        // Calls often compile into many machine instructions.   
> Bump up their
> > +        // cost to reflect this.
> > +        if (!isa<IntrinsicInst>(II))
> > +          NumInsts += 5;
>
> I suppose you could also add in the number of operands in order
> to vaguely reflect the cost of inlining a call with many parameters.

Or even better, the number of operands that are actually *used*.

Cheers,

	Gabor

>
> Ciao,
>
> Duncan.



More information about the llvm-commits mailing list