Login
You're viewing the techdon.dev public feed.
  • Jan 6, 2026, 3:47 PM

    The adler32 checksum algorithm introduces a (seemingly useless) multiplication by 1 so that it can use a VPMADDWD widening multiply + add instruction.

    After a recent change to stdarch, the multiplication got optimized out before that instruction could be selected, leading to much worse performance.

    So I added some logic that adds the multiplication if that is the only thing stopping the more optimal instruction from being selected.

    github.com/llvm/llvm-project/p

    (the stdarch change was reverted for now, but with LLVM 22 we can re-land it without regressing performance)

    #llvm #rustlang

    💬 0🔄 2⭐ 2