
NVIDIA engineers have been working on improvements to the GNU Compiler Collection for optimize the code layout for locality between callees and callers to minimize the branch distance between frequently called functions. For large applications NVIDIA is finding their proposed patch can be of significant benefit but no actual performance benchmark numbers were provided.
Back in November was the patch proposal for adding the -flto-partition=locality option to GCC. There it's stated:
"With this optimization we are seeing good performance gains on some large internal workloads that stress the parts of the processor that is sensitive to code locality, but we'd appreciate wider performance evaluation."
It's gone without action for some weeks but recently GCC developer Jan Hubicka has taken to reviewing the patch. Here's to hoping the worked up version of -flto-partition=locality will be revised soon and the performance numbers will pan out for a variety of larger workloads. Stay tuned for if/when the -flto-partition=locality patch is upstreamed and any performance benchmark numbers that may get posted.