3 ms·
> Shouldn't one expect that the higher optimization level would push more performance? But we don't always understand how optimisations and code generation tec
by chrisseaton 9y ago
> Shouldn't one expect that the higher optimization level would push more performance?
But we don't always understand how optimisations and code generation techniques will perform in practice, without running it. Ideally we'd have a more formal understanding of the performance of real processors, but we don't.
Your optimisation could generate fewer instructions, but change some cache behaviour, for example. Or use instructions that are faster, but use different registers that changes register pressure and slows things down elsewhere.