alexcrichton requested cfallin for a review on PR #10229.
alexcrichton requested wasmtime-compiler-reviewers for a review on PR #10229.
alexcrichton requested dicej for a review on PR #10229.
alexcrichton requested wasmtime-core-reviewers for a review on PR #10229.
alexcrichton opened PR #10229 from alexcrichton:a64-extr
to bytecodealliance:main
:
This is pattern-matched from
bor
patterns of a specific shape. I found this when doing some benchmarking of Wasmtime on aarch64 and I saw LLVM generating this pattern but Wasmtime didn't. I didn't perform any benchmarking between wasmtime/native though, so I'm just relying on this reducing the number of instructions to probably be a wee bit faster.<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
cfallin submitted PR review:
Good find, thanks!
cfallin created PR review comment:
Is it possible to build this out of the add/eq/... primitives we have? Nothing against custom ctors when needed, just curious if we can reduce our FFI surface somewhat though.
cfallin created PR review comment:
Can we write the formula in the comment too?
;; (x << xs) | (y >> ys) if (xs + ys == widthof(ty)) => extr(x, y, ys)
cfallin created PR review comment:
It looks like (at least by my reading)
rotr
is an alias for / special case ofextr
, not the other way around, so perhaps we could rename theALUOp
?
github-actions[bot] commented on PR #10229:
Subscribe to Label Action
cc @cfallin, @fitzgen
<details>
This issue or pull request has been labeled: "cranelift", "cranelift:area:aarch64", "isle"Thus the following users have been cc'd because of the following labels:
- cfallin: isle
- fitzgen: isle
To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.
Learn more.
</details>
alexcrichton submitted PR review.
alexcrichton created PR review comment:
Good point, I also prefer fewer ISLE FFI functions!
alexcrichton updated PR #10229.
alexcrichton updated PR #10229.
alexcrichton has enabled auto merge for PR #10229.
alexcrichton merged PR #10229.
Last updated: Feb 28 2025 at 01:30 UTC