This commit is contained in:
ed committed 2026-08-29 11:29:21 -04:00
1 parent f4e98e8260
commit 8d12a945c9
29 files changed
+1257

No files matched your search

@@ -0,0 +1,37 @@
---
title: "@fiigii In our case, it's also often just blocked by the memory model requirements."
type: archive
source: twitter
source_url: "https://x.com/EgorBo/status/2092617152461173205"
author: "EgorBo"
handle: EgorBo
post_id: "2092617152461173205"
date: 2026-08-26
archived: 2026-08-29
draft: false
tags:
- archive
- twitter
- fiigii
description: "@fiigii In our case, it's also often just blocked by the memory model requirements."
in_reply_to: ""
parent_post_id: "2092398653797490972"
---
## Source
- URL: https://x.com/EgorBo/status/2092617152461173205
- Author: EgorBo (@EgorBo)
- Posted: 2026-08-26 14:16:22
## Branch
**1/** **@EgorBo** ^2092617152461173205
**@fiigii**
In our case, it's also often just blocked by the memory model requirements. Why can't you perform these two stores via SLP? Well, because the alignment is unknown in this case and the memory model requires atomic assignments.
## Related
- Spine: [[archive/threads/fiigii/2026-08-25-if-youve-done-serious-compiler-optimization-work]]
@@ -0,0 +1,43 @@
---
title: "@fiigii E-graphs seem to be one way to address this, allowing the compiler to explore different optimisation choices and then distilling the best outcome out of them."
type: archive
source: twitter
source_url: "https://x.com/FUZxxl/status/2092546936691695734"
author: "Robert Clausecker"
handle: FUZxxl
post_id: "2092546936691695734"
date: 2026-08-26
archived: 2026-08-29
draft: false
tags:
- archive
- twitter
- fiigii
description: "@fiigii E-graphs seem to be one way to address this, allowing the compiler to explore different optimisation choices and then distilling the best outcome out of them."
in_reply_to: ""
parent_post_id: "2092398653797490972"
---
## Source
- URL: https://x.com/FUZxxl/status/2092546936691695734
- Author: Robert Clausecker (@FUZxxl)
- Posted: 2026-08-26 09:37:22
## Branch
**1/** **@FUZxxl** ^2092546936691695734
**@fiigii**
E-graphs seem to be one way to address this, allowing the compiler to explore different optimisation choices and then distilling the best outcome out of them. I suspect compile times will suffer though.
**2/** **@fiigii** ^2092621030913425662
**@FUZxxl**
No, it is not about optimization algorithms
## Related
- Spine: [[archive/threads/fiigii/2026-08-25-if-youve-done-serious-compiler-optimization-work]]
@@ -0,0 +1,37 @@
---
title: "@fiigii more language-tier facilities to drive it? stuff like [[likely]] and etc."
type: archive
source: twitter
source_url: "https://x.com/__dwr__/status/2092576255568753057"
author: "David Rogers"
handle: __dwr__
post_id: "2092576255568753057"
date: 2026-08-26
archived: 2026-08-29
draft: false
tags:
- archive
- twitter
- fiigii
description: "@fiigii more language-tier facilities to drive it? stuff like [[likely]] and etc."
in_reply_to: ""
parent_post_id: "2092398653797490972"
---
## Source
- URL: https://x.com/__dwr__/status/2092576255568753057
- Author: David Rogers (@__dwr__)
- Posted: 2026-08-26 11:33:52
## Branch
**1/** **@__dwr__** ^2092576255568753057
**@fiigii**
more language-tier facilities to drive it? stuff like [[likely]] and etc.
## Related
- Spine: [[archive/threads/fiigii/2026-08-25-if-youve-done-serious-compiler-optimization-work]]
@@ -0,0 +1,43 @@
---
title: "@fiigii Don't worry it exists, they call it PGO, we had it in Visual C++ 2005."
type: archive
source: twitter
source_url: "https://x.com/amoswap/status/2092620897521725881"
author: "amoswap"
handle: amoswap
post_id: "2092620897521725881"
date: 2026-08-26
archived: 2026-08-29
draft: false
tags:
- archive
- twitter
- fiigii
description: "@fiigii Don't worry it exists, they call it PGO, we had it in Visual C++ 2005."
in_reply_to: ""
parent_post_id: "2092398653797490972"
---
## Source
- URL: https://x.com/amoswap/status/2092620897521725881
- Author: amoswap (@amoswap)
- Posted: 2026-08-26 14:31:15
## Branch
**1/** **@amoswap** ^2092620897521725881
**@fiigii**
Don't worry it exists, they call it PGO, we had it in Visual C++ 2005. Waiting on you GPU guys to stop playing around with OpenGL lightning modes and reinvent that one.
**2/** **@fiigii** ^2092674576492990967
**@amoswap**
PGO is just another set of heuristic inputs.
## Related
- Spine: [[archive/threads/fiigii/2026-08-25-if-youve-done-serious-compiler-optimization-work]]
@@ -0,0 +1,37 @@
---
title: "@fiigii llvm is flexible, you can have custom passess, and it has, I don't know, 2000 knobs, what you can tweak the \"heuristics\" with as you wish, good luck"
type: archive
source: twitter
source_url: "https://x.com/btopoweroftwo/status/2092531536868364654"
author: "Bálint Bertalan"
handle: btopoweroftwo
post_id: "2092531536868364654"
date: 2026-08-26
archived: 2026-08-29
draft: false
tags:
- archive
- twitter
- fiigii
description: "@fiigii llvm is flexible, you can have custom passess, and it has, I don't know, 2000 knobs, what you can tweak the \"heuristics\" with as you wish, good luck"
in_reply_to: ""
parent_post_id: "2092398653797490972"
---
## Source
- URL: https://x.com/btopoweroftwo/status/2092531536868364654
- Author: Bálint Bertalan (@btopoweroftwo)
- Posted: 2026-08-26 08:36:10
## Branch
**1/** **@btopoweroftwo** ^2092531536868364654
**@fiigii**
llvm is flexible, you can have custom passess, and it has, I don't know, 2000 knobs, what you can tweak the "heuristics" with as you wish, good luck
## Related
- Spine: [[archive/threads/fiigii/2026-08-25-if-youve-done-serious-compiler-optimization-work]]
@@ -0,0 +1,37 @@
---
title: "@fiigii very true!"
type: archive
source: twitter
source_url: "https://x.com/keshen754041/status/2092692666354123123"
author: "keshen"
handle: keshen754041
post_id: "2092692666354123123"
date: 2026-08-26
archived: 2026-08-29
draft: false
tags:
- archive
- twitter
- fiigii
description: "@fiigii very true!"
in_reply_to: ""
parent_post_id: "2092398653797490972"
---
## Source
- URL: https://x.com/keshen754041/status/2092692666354123123
- Author: keshen (@keshen754041)
- Posted: 2026-08-26 19:16:26
## Branch
**1/** **@keshen754041** ^2092692666354123123
**@fiigii**
very true!
## Related
- Spine: [[archive/threads/fiigii/2026-08-25-if-youve-done-serious-compiler-optimization-work]]
@@ -0,0 +1,43 @@
---
title: "@fiigii > This needs to change."
type: archive
source: twitter
source_url: "https://x.com/pelavarre/status/2092558865133105655"
author: "Pat LaVarre at Twítter"
handle: pelavarre
post_id: "2092558865133105655"
date: 2026-08-26
archived: 2026-08-29
draft: false
tags:
- archive
- twitter
- fiigii
description: "@fiigii > This needs to change."
in_reply_to: ""
parent_post_id: "2092398653797490972"
---
## Source
- URL: https://x.com/pelavarre/status/2092558865133105655
- Author: Pat LaVarre at Twítter (@pelavarre)
- Posted: 2026-08-26 10:24:45
## Branch
**1/** **@pelavarre** ^2092558865133105655
**@fiigii**
> This needs to change.
We must lift the rule that says the compiler starts from scratch as often as you edit the source.
We must make a space to show what the machine code has become where I can say I need the other.
We’d solve Thompson’s Trusting Trust, too.
## Related
- Spine: [[archive/threads/fiigii/2026-08-25-if-youve-done-serious-compiler-optimization-work]]
@@ -0,0 +1,35 @@
---
title: "\"Why should I care about the performance of everyone else’s programs?\" Because then they will be forced to do likewise."
type: archive
source: twitter
source_url: "https://x.com/theblazehen/status/2092581236707324181"
author: "theblazehen"
handle: theblazehen
post_id: "2092581236707324181"
date: 2026-08-26
archived: 2026-08-29
draft: false
tags:
- archive
- twitter
- fiigii
description: "\"Why should I care about the performance of everyone else’s programs?\" Because then they will be forced to do likewise."
in_reply_to: ""
parent_post_id: "2092398653797490972"
---
## Source
- URL: https://x.com/theblazehen/status/2092581236707324181
- Author: theblazehen (@theblazehen)
- Posted: 2026-08-26 11:53:39
## Branch
**1/** **@theblazehen** ^2092581236707324181
"Why should I care about the performance of everyone else’s programs?" Because then they will be forced to do likewise. All the gains you get from the compiler not being optimized generally rather to specific usecases in all other areas of your program will make up for the losses in one specific area where it's slower. You can always fork the compiler if it's important enough
## Related
- Spine: [[archive/threads/fiigii/2026-08-25-if-youve-done-serious-compiler-optimization-work]]
@@ -0,0 +1,37 @@
---
title: "@fiigii I think inline assembly should be the right answer, but compilers don’t have a really great support of it, apart from Odin right now"
type: archive
source: twitter
source_url: "https://x.com/thedevbirb/status/2092628678190494173"
author: "thedevbirb"
handle: thedevbirb
post_id: "2092628678190494173"
date: 2026-08-26
archived: 2026-08-29
draft: false
tags:
- archive
- twitter
- fiigii
description: "@fiigii I think inline assembly should be the right answer, but compilers don’t have a really great support of it, apart from Odin right now"
in_reply_to: ""
parent_post_id: "2092398653797490972"
---
## Source
- URL: https://x.com/thedevbirb/status/2092628678190494173
- Author: thedevbirb (@thedevbirb)
- Posted: 2026-08-26 15:02:10
## Branch
**1/** **@thedevbirb** ^2092628678190494173
**@fiigii**
I think inline assembly should be the right answer, but compilers don’t have a really great support of it, apart from Odin right now
## Related
- Spine: [[archive/threads/fiigii/2026-08-25-if-youve-done-serious-compiler-optimization-work]]
@@ -0,0 +1,46 @@
---
title: "If you’ve done serious compiler optimization work on a product with a sufficiently large user base, you’ve almost certainly seen bug reports like this:"
type: archive
source: twitter
source_url: "https://x.com/fiigii/status/2092398653797490972"
author: "Fei Peng"
handle: fiigii
post_id: "2092398653797490972"
date: 2026-08-25
archived: 2026-08-29
draft: false
tags:
- archive
- twitter
- fiigii
description: "If you’ve done serious compiler optimization work on a product with a sufficiently large user base, you’ve almost certainly seen bug reports like this:"
in_reply_to: ""
---
## Source
- URL: https://x.com/fiigii/status/2092398653797490972
- Author: Fei Peng (@fiigii)
- Posted: 2026-08-25 23:48:08
## Thread
**1/** **@fiigii** ^2092398653797490972
If you’ve done serious compiler optimization work on a product with a sufficiently large user base, you’ve almost certainly seen bug reports like this:
“Why does this code compile into this assembly? There’s an obvious optimization opportunity here. Loop unrolling, LICM, etc. Why didn’t the compiler do it? If it did, my program would be faster. Please change the compiler so my program runs faster.”
Very often, the answer is:
“This isn’t really a compiler bug. It’s a heuristic. The transformation you’re asking for may indeed improve your program, but it could hurt performance in other cases or for other users. A compiler may have thousands or millions of users, and it has to preserve performance across an enormous variety of workloads. We can’t change an optimization policy just to make one program faster."
This answer is 200% correct. I’ve lost count of how many times I’ve given some version of it myself.
And yet, every time I say it, it’s one of the moments when I hate my job the most.
As a user, why should I care about the compiler’s internal heuristics? Why should I care about the performance of everyone else’s programs? Why should I have to pay for something I don’t need?
This needs to change.
Branches: [[archive/threads/fiigii/2026-08-25-if-youve-done-serious-compiler-optimization-work/2026-08-26-btopoweroftwo-llvm-is-flexible-you-can-have-custom-passess-and]], [[archive/threads/fiigii/2026-08-25-if-youve-done-serious-compiler-optimization-work/2026-08-26-FUZxxl-e-graphs-seem-to-be-one-way-to-address-this]], [[archive/threads/fiigii/2026-08-25-if-youve-done-serious-compiler-optimization-work/2026-08-26-pelavarre-this-needs-to-change-we-must-lift-the-rule-that]], [[archive/threads/fiigii/2026-08-25-if-youve-done-serious-compiler-optimization-work/2026-08-26-__dwr__-more-language-tier-facilities-to-drive-it-stuff]], [[archive/threads/fiigii/2026-08-25-if-youve-done-serious-compiler-optimization-work/2026-08-26-theblazehen-why-should-i-care-about-the-performance-of]], [[archive/threads/fiigii/2026-08-25-if-youve-done-serious-compiler-optimization-work/2026-08-26-EgorBo-in-our-case-its-also-often-just-blocked-by-the]], [[archive/threads/fiigii/2026-08-25-if-youve-done-serious-compiler-optimization-work/2026-08-26-amoswap-dont-worry-it-exists-they-call-it-pgo-we-had-it]], [[archive/threads/fiigii/2026-08-25-if-youve-done-serious-compiler-optimization-work/2026-08-26-thedevbirb-i-think-inline-assembly-should-be-the-right]], [[archive/threads/fiigii/2026-08-25-if-youve-done-serious-compiler-optimization-work/2026-08-26-keshen754041-very-true]]
+12
View File
@@ -0,0 +1,12 @@
---
title: fiigii
type: note
draft: false
description: Archived threads by fiigii.
tags:
- archive
- twitter
- fiigii
---
- [[archive/threads/fiigii/2026-08-25-if-youve-done-serious-compiler-optimization-work]]