38 points · by nnethercote · 7y ago · 1 comment
Can't PGO make inlining decisions like this? Otherwise, propeller/LTO might work well.
> But there’s a trade-off. Sometimes a simpler, smaller function is slower.
Without a doubt! Imagine the naive/simple/portable memcpy versus a target-aware one that capitalizes on wider or aligned loads and stores.