Article View: comp.arch
Article #1003Re: reassociation and undefined behaviour
From: Thomas Koenig
Date: Tue, 01 Dec 2026 17:15
Date: Tue, 01 Dec 2026 17:15
24 lines
2217 bytes
2217 bytes
David Brown <david.brown@hesbynett.no> schrieb: > Note that I have no idea how any of this plays out in real timing on big > modern processors - register renaming, OOO, super-scaler, etc., all make > these things complicated. But I can see it is definitely suboptimal for > the kind of processors I do know about, such as embedded microcontrollers. Even with OoO, latency is king; reducing it is always good because if it ends up on the critical path, it will matter. Just about the only exception where rearranging a+b+c+d into (a+b)+(c+d) is not profitable are single-issue processors where the result is available on the next cacle. > I've made an additional comment in the bug report, and hope that will be > of some use. Thanks for that. I think I will split that off from the Fortran case because it concerns the general case. -- This USENET posting was made without artificial intelligence, artificial impertinence, artificial arrogance, artificial stupidity, artificial flavorings or artificial colorants.
Technical Details
Message-ID:
<11emvbp$1sc68$3@dont-email.me>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<11cpqih$acf5$1@dont-email.me> <86o6b6kaqf.fsf@linuxsc.com> <11ejr5e$nk8$1@reader2.panix.com> <11ejtoe$eoj7$1@dont-email.me> <11el2c1$q43$1@reader2.panix.com> <11emcgn$1k681$1@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Thomas Koenig <tkoenig@netcologne.de> Newsgroups: comp.arch Subject: Re: reassociation and undefined behaviour Date: Tue, 1 Dec 2026 17:15:37 -0000 (UTC) Organization: A noiseless patient Spider Lines: 24 Message-ID: <11emvbp$1sc68$3@dont-email.me> References: <11cpqih$acf5$1@dont-email.me> <86o6b6kaqf.fsf@linuxsc.com> <11ejr5e$nk8$1@reader2.panix.com> <11ejtoe$eoj7$1@dont-email.me> <11el2c1$q43$1@reader2.panix.com> <11emcgn$1k681$1@dont-email.me> Injection-Date: Tue, 01 Dec 2026 17:15:38 +0000 (UTC) Injection-Info: dont-email.me; logging-data="1978568"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/qM9p3BunmbRr0T8QTHYw4m6NaPvXjKB4="; posting-host="345657c61811d8aee782a66def4bdd28" User-Agent: slrn/1.0.3 (Linux) Cancel-Lock: sha1:sK3FbYXLiNjKsFr1Ji3RBQwKJdI= sha256:Ydi3IlKi65bYrbiXUKKM4a/ngtg4fEtSt5ZjzQTt/VA= sha1:reBUuwHGtC9IICM5DRxJCuzTwIU= sha256:TNksHelTn3oi9ThoVtZ6i720ayFm74aOa5/gLbkoEq4=