Re: git: 9d87c1aac4a8 - main - libc: Add missing kill_dependency macro
Date: Sat, 20 Jun 2026 20:20:50 UTC
Hey, I see. I dug further into related proposals and the reasons why no compiler today has implemented true data dependency tracking and that they all basically map and promote consume to acquire. The kill_dependency is also basically a no-op, and both compilers optimise them identically. I did a few tests on my AArch64 box and that's how I'm convinced, so I believe keeping the current form could be ideal as it fully conforms to the standard and we're assured that at least any conforming compiler would support it just fine and there's no extension or non-standard tweak in it. On the other hand, although adding a separate branch with the GCC style is possible, I don't think that'd add any value but visual complications. Either way, whether dependency tracking changes drastically or this very approach becomes obsolete, keeping our header as-is seems safe for now. Again, I should admit that despite my enthusiasm for compilers and long-time personal studies of that field, I am by no means an expert and can be wrong, or at least miss some corner cases I'm not aware of, so please educate me if so. Yours, Faraz