[LLVMdev] inlining hint

Nick Lewycky nicholas at mxc.ca
Thu Aug 27 12:20:29 PDT 2009


David Vandevoorde wrote:
> FWIW, I've been involved in a couple of attempts by commercial  
> compilers to relegate "inline" to the same status as "register" -- an  
> obsolete hint ignored by the compiler -- and so far that always proved  
> to be unpractical because some critical calls that were previously  
> inlined were no longer being inlined after the change.  (That's just  
> annecdotal, of course: LLVM may have gotten good enough to make it  
> practical.  If that's the case, I still think it's too early to write C 
> ++ code with that assumption.)

If it's critical that a function be inlined, what's wrong with applying 
the always-inline attribute?

Nick



More information about the llvm-dev mailing list