News for hackers. Stuff that matters.
Re:Illuminating the processor core with LLVM-mca by alain94040 on Sunday December 14, 2025 @12:15PM (#46264721)
This is interesting if quite incomplete (as noted in the end conclusion). CPU re-order buffers turn what you think as mostly sequential execution into a massively parallel engine. Data memory access, perfecting, speculative execution, etc. But if you are running a micro-bencmark with a tight loop of millions of iterations, then understanding the pipeline dependencies and dispatching can provide good insights.
Re:Illuminating the processor core with LLVM-mca by drob518 on Sunday December 14, 2025 @05:49PM (#46267965)
Yep. Cache is always the wildcard.
Re:Illuminating the processor core with LLVM-mca by KeplerBoy on Sunday December 14, 2025 @12:04PM (#46264586)
Also nicely demonstrated in godbolt's currently ongoing Advent of compiler optimizations series.
Re:Illuminating the processor core with LLVM-mca by esbranson on Sunday December 14, 2025 @02:16PM (#46265881)
Too bad they don't support LC-3 or DLX. More my level lol. So begins another deep dive side quest with the chatbot into a tool I didn't even know existed.
Re:Illuminating the processor core with LLVM-mca by fweimer on Sunday December 14, 2025 @04:26PM (#46267105)
Wouldn't LLVM adjust the models if it is beneficial to its code generation, even if the result less accurately reflects the processor? (I think GCC does that.)