jameysharp opened PR #8299 from jameysharp:x64-lower-consts
to bytecodealliance:main
:
Since #6850, we've been able to rely on
iconst
instructions having their immediate operands' high bits zeroed before lowering.So a couple of places in
x64/lower.rs
can 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
expect
where 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::inspect
yet 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: Nov 22 2024 at 16:03 UTC