jameysharp opened PR #8299 from jameysharp:x64-lower-consts to bytecodealliance:main:
Since #6850, we've been able to rely on
iconstinstructions having their immediate operands' high bits zeroed before lowering.So a couple of places in
x64/lower.rscan be expressed more simply now as a result.Out of an abundance of caution, I added a debug-assertion when constants are looked up during lowering, to check that earlier phases really did ensure the high bits are zero.
I also got rid of an
expectwhere a simple pattern-match will do.
jameysharp requested cfallin for a review on PR #8299.
jameysharp requested wasmtime-compiler-reviewers for a review on PR #8299.
jameysharp updated PR #8299.
jameysharp commented on PR #8299:
Turns out I can't use
Option::inspectyet because it was stabilized in 1.76 and our MSRV is currently 1.75, whoops.
cfallin submitted PR review:
LGTM, thanks!
jameysharp merged PR #8299.
Last updated: Dec 06 2025 at 06:05 UTC