Deutsch   English   Français   Italiano  
<jwvo74vl457.fsf-monnier+comp.arch@gnu.org>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!2.eu.feeder.erje.net!3.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Stefan Monnier <monnier@iro.umontreal.ca>
Newsgroups: comp.arch
Subject: Re: Computer architects leaving Intel...
Date: Tue, 10 Sep 2024 15:09:41 -0400
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <jwvo74vl457.fsf-monnier+comp.arch@gnu.org>
References: <vasruo$id3b$1@dont-email.me> <vb8587$3gq7e$1@dont-email.me>
	<vb91e7$3o797$1@dont-email.me> <vb9eeh$3q993$1@dont-email.me>
	<vb9l7k$3r2c6$2@dont-email.me> <vba26l$3te44$1@dont-email.me>
	<vbag2s$3vhih$1@dont-email.me> <vbbnf9$8j04$1@dont-email.me>
	<vbbsl4$9hdg$1@dont-email.me> <vbcbob$bd22$3@dont-email.me>
	<vbcob9$dvp4$1@dont-email.me> <vbd174$eulp$1@dont-email.me>
	<vbm67e$2apse$1@dont-email.me> <vbmkln$2cmfo$1@dont-email.me>
	<vbni3u$2h7pp$1@dont-email.me> <vbp849$2trde$1@dont-email.me>
	<2024Sep10.191607@mips.complang.tuwien.ac.at>
	<vbq452$33h0n$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Tue, 10 Sep 2024 21:09:42 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="ac4d9eb9270acb92e6d319034819a10b";
	logging-data="3268991"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX197xd3xFA+fHaRN3QsTk8DhEAZDU/Wx+Vk="
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:8DlKw7naVo21xTPQ9V/W7zuCY90=
	sha1:psUN+m2X5IgMmxgJCIRFDTkoYOY=
Bytes: 2161

> 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