Mill Computing, Inc. Forums The Mill Tools Compilers Inlining functions vs. call/return Reply To: Inlining functions vs. call/return

Ivan Godard
Post count: 689

Addendum to Will’s comment:

By far the greatest value to inlining on the Mill is that it exposes opportunities for hoisting loads. As you point out, it is common that the first thing a method does is to load a data member. If the function is inlined then the load’s retire point can be left at the inline position, but the load itself can be turned into a deferred load, hoisted enough to hide cache latency, with the deferred retire preserving proper retire ordering. Without the inline, the very first thing that the dunction will do is to stall for a cache miss.