[llvm-commits] [llvm] r53712 - /llvm/trunk/lib/Transforms/Utils/InlineCost.cpp
Duncan Sands
baldrick at free.fr
Wed Jul 16 18:46:17 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.
Ciao,
Duncan.
More information about the llvm-commits
mailing list