afonso360 requested elliottt for a review on PR #8673.
afonso360 requested wasmtime-compiler-reviewers for a review on PR #8673.
afonso360 opened PR #8673 from afonso360:x64-improve-cls-clz to bytecodealliance:main:
:wave: Hey,
This PR slightly improves the lowerings for
clzandctzfor small types (i8/i16) by emitting the native{l,t}zcountinstructions for these. Previously we would never emit them even if available.The first commit just expands our compile tests for these new cases, and the second commit contains the actual lowering changes.
Additionally I've also added the
use_sse42flag to thepopcntruntests since it is required to emit the popcnt instruction.
afonso360 edited PR #8673:
:wave: Hey,
This PR slightly improves the lowerings for
clzandctzfor some types (i8/i16/i128) by emitting the native{l,t}zcountinstructions for these. Previously we would never emit them even if available.The first commit just expands our compile tests for these new cases, and the second commit contains the actual lowering changes.
Additionally I've also added the
use_sse42flag to thepopcntruntests since it is required to emit the popcnt instruction.
fitzgen submitted PR review:
Nice!
fitzgen has enabled auto merge for PR #8673.
fitzgen has disabled auto merge for PR #8673.
afonso360 updated PR #8673.
fitzgen submitted PR review.
fitzgen merged PR #8673.
Last updated: Dec 13 2025 at 21:03 UTC