🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #1039

Re: reassociation and undefined behaviour

#1039
From: Anton Ertl
Date: Thu, 03 Dec 2026 07:15
19 lines
2323 bytes
Thomas Koenig <tkoenig@netcologne.de> writes:
>Anton Ertl <anton@mips.complang.tuwien.ac.at> schrieb:
>> The register allocation does not have the latency information.
>> I am not aware that any compiler does have this information as is relevant
>> for an OoO machine.
>
>You might want to learn the TARGET_MEMORY_MOVE_COST hook
>in gcc, which is used in register allocation.  You would
>probably learn something.

I looked it up <https://gcc.gnu.org/onlinedocs/gccint/Costs.html>, and
found that it has nothing to do with reassociation, but instead
something to do with copying between registers.  So, I have learned
something; what is unclear to me is why you use a red herring here.

- anton
-- 
'Anyone trying for "industrial quality" ISA should avoid undefined behavior.'
  Mitch Alsup, <c17fcd89-f024-40e7-a594-88a85ac10d20o@googlegroups.com>
Technical Details
Message-ID: <2026Dec3.081514@mips.complang.tuwien.ac.at>
Path: mbox-mo1.pugleaf.net!srl.newsdeef.eu.MISMATCH!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
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> <11emvbp$1sc68$3@dont-email.me> <2026Dec2.084013@mips.complang.tuwien.ac.at> <11epogc$3cl08$1@dont-email.me> <2026Dec2.201455@mips.complang.tuwien.ac.at> <11eptrk$3fi26$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srl.newsdeef.eu.MISMATCH!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: anton@mips.complang.tuwien.ac.at (Anton Ertl)
Newsgroups: comp.arch
Subject: Re: reassociation and undefined behaviour
Date: Thu, 03 Dec 2026 07:15:14 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 19
Message-ID: <2026Dec3.081514@mips.complang.tuwien.ac.at>
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> <11emvbp$1sc68$3@dont-email.me> <2026Dec2.084013@mips.complang.tuwien.ac.at> <11epogc$3cl08$1@dont-email.me> <2026Dec2.201455@mips.complang.tuwien.ac.at> <11eptrk$3fi26$1@dont-email.me>
Injection-Date: Thu, 03 Dec 2026 07:19:30 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="39414"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18A4Nld2xvQMKFN6nS205jW"; posting-host="b318e488349409aaa87abf1f338dcb0c"
Cancel-Lock: sha1:f+eH9Zte96nYBVawRhFcEju1zNw= sha256:TzEQCfrpBi6wKDvaYul6eu4WNEYE4D72KFA5PO6viS0=
	sha1:NZWxZSodwhAwBsW0LrzvoacGEwk= sha256:8ZnhYBhTEgpGN+kl+gpsb8GzxjEZxsrFfdEIgm4z14g=
X-newsreader: xrn 10.11