Sujet : Re: Computer architects leaving Intel...
De : monnier (at) *nospam* iro.umontreal.ca (Stefan Monnier)
Groupes : comp.archDate : 10. Sep 2024, 20:09:41
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <jwvo74vl457.fsf-monnier+comp.arch@gnu.org>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
User-Agent : Gnus/5.13 (Gnus v5.13)
Again - sometimes a compiler will recognise a particular hand-optimised
pattern, turn it back to something logically simpler, then optimise from
there. But you cannot /expect/ that.
You might even consider those as performance bugs, since the
hand-optimized code is sometimes chosen specifically to try and impose
a particular kind of code. Compiler's "optimizations" are usually just
heuristics so compilers are often better off not being "too clever" so
as to allow manual-optimization to override the heuristics: if
programmers want to use the heuristics, they should write
simple&clear code.
Stefan