bongjunj opened PR #11998 from bongjunj:select_min_gt_eqv_false to bytecodealliance:main:
<!--
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
-->
bongjunj requested cfallin for a review on PR #11998.
bongjunj requested wasmtime-compiler-reviewers for a review on PR #11998.
bongjunj updated PR #11998.
github-actions[bot] commented on PR #11998:
Subscribe to Label Action
cc @cfallin, @fitzgen
<details>
This issue or pull request has been labeled: "cranelift", "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>
cfallin submitted PR review:
LGTM, thanks!
Would you mind generalizing with a few more cases?
- Unsigned min and unsigned comparisons should work too, right?
- Could we do the commutative cases (slt/ult and min second) as well?
bongjunj updated PR #11998.
bongjunj commented on PR #11998:
thanks for the comment. I have included the commutative cases as well as the flipped comparison cases.
cfallin commented on PR #11998:
Thanks! I think there are twice as many rules as needed now though, if I'm not mistaken: e.g.,
(rule (simplify (sgt ty (smin _ x y) x)) (iconst_u ty 0))(line 105)is isomorphic to
(rule (simplify (sgt ty (smin _ y x) y)) (iconst_u ty 0))(line 109)up to variable renaming, right?
bongjunj commented on PR #11998:
Oh that's true. Will fix it shortly. Thanks!
bongjunj updated PR #11998.
cfallin submitted PR review.
cfallin merged PR #11998.
Last updated: Dec 06 2025 at 06:05 UTC