News for hackers. Stuff that matters.
Re:Reducing code size with LLVM Machine Outliner on 32-bit A... by pfdietz on Wednesday April 14, 2021 @10:01AM (#26807189)
What does it do to speed?
Re:Reducing code size with LLVM Machine Outliner on 32-bit A... by rurban on Wednesday April 14, 2021 @01:32PM (#26810313)
If the outlined code is cold, the Icache benefits from this part bring skipped (because it's behind a new function call), so that more hot code is being cached. Which could benefit a few percent speedwise, in my case more than 3%.

If it's hot, it's a bit slower, because you have the added fn call overhead. So better do that manually.

Re:Reducing code size with LLVM Machine Outliner on 32-bit A... by yroux on Thursday April 15, 2021 @03:54AM (#26817401)
Yes I agree, that's why function outlining is used for hot/cold splitting and partial inlining, in our case Machine Outlining is really dedicated to code size reduction.
Re:Reducing code size with LLVM Machine Outliner on 32-bit A... by yroux on Wednesday April 14, 2021 @10:28AM (#26807545)
The focus is code size, but in terms of performance I don't have numbers to report but on average you can expect a regression around 2%, but it will depend of call latency of core and is also impacted by cache effects, so in some cases you can have a performance improvement