Mmastodon TechnologySoftware first seen 20 h ago, last 20 h ago, peak #12
LLVM turns branch-free code back into branches on RISC-V
Original: Branches in branch-free code https://00f.net/2026/10/09/llvm-compiles-branch-free-code-into-branches-on-risc-v/ # Progra
A new technical write-up examines cases where LLVM compiles branch-free code but the generated RISC-V assembly contains branches after all. The article walks through the compiler's optimization decisions and what they mean for performance on RISC-V hardware. Developers discussing it are weighing how much this matters for branchless programming techniques and codegen quality on the platform.
Why now: Compiler enthusiasts are interested in a surprising gap between LLVM's branchless optimizations and its actual RISC-V output
Evidence
- Branches in branch-free code https://00f.net/2026/10/09/llvm-compiles-branch-free-code-into-branches-on-risc-v/ # Programming # Compilers # RISCV · lobsters@robot.villas · 3
API: https://socialmediatrends-api.osmike.com/v1/trends/1670770