Better HN
topnewbestaskshowjobs
Log inSign up

chnoblouch

5 karma · joined Dec 4, 2025 (11mo ago) · 4 submissions

https://github.com/chnoblouch
Submissions

1.

KosmicKrisp Achieves Vulkan 1.4 Conformance on Apple Silicon(lunarg.com ↗)

2 points · by chnoblouch · 2mo ago · discuss

comment 4mo ago · link · parent

Looking at the optimization pipeline in Compiler Explorer (https://godbolt.org/z/rd3qber3b) after the code is converted to SSA (SROAPass), it seems that the fast version computes the pointer increment (`lwr++`) before storing `x` (`*lwr = x`), whereas the slow version does it the other way around. This happens because Clang chooses a different instruction order when generating a single statement compared to two statements.

The computation is the same, but apparently, this tiny change prevents SimplifyCFGPass from turning the code into the branchless version later on. I'm not sure why this happens, perhaps because it messes something up in the pattern recognition of the pass?

3.

Stop Making Threads(moonside.games ↗)

2 points · by chnoblouch · 4mo ago · discuss

4.

GCC WebAssembly Back End(gcc.gnu.org ↗)

32 points · by chnoblouch · 4mo ago · discuss