[LLVMdev] function inlining threshold ?
Long Fei
lfei at ecn.purdue.edu
Mon Jul 4 13:32:39 PDT 2005
I am using llvm for source-to-source inlining. So I did:
% llvm-gcc file_a.c file_b.c ... file_n.c -o file
% opt -inline -inline-threshold=1000 < file.bc | llc -march=c > outfile.c
Can anyone tell me how llvm determines if a function should be inlined,
and what roll does "inline-threshold" play ? (Does the example mean that
if the function body has fewer than 1000 instructions, then it should be
inlined ?)
thanks,
--Long
More information about the llvm-dev
mailing list