Kmeakin opened PR #6130 from Kmeakin:icmp-loose-inequalities-to-strict-inequalities
to bytecodealliance:main
:
Rewrites loose inequalities against constants to equivalent strict inequalities. By itself not more efficient, but should expose more CSE opportunities (eg
ule x, 2 && ult x, 1
)
Kmeakin requested cfallin for a review on PR #6130.
Kmeakin requested wasmtime-compiler-reviewers for a review on PR #6130.
Kmeakin edited PR #6130:
Rewrites loose inequalities against constants to equivalent strict inequalities, and strict inequalities to equalities when possible. By itself not more efficient, but should expose more CSE opportunities (eg
ule x, 2 && ult x, 1
)
Kmeakin edited PR #6130:
Rewrites loose inequalities against constants to equivalent strict inequalities, and strict inequalities to equalities when possible. By itself not more efficient, but should expose more CSE opportunities (eg
ule x, 2 && ult x, 1
)
Kmeakin updated PR #6130.
cfallin submitted PR review.
cfallin submitted PR review.
cfallin created PR review comment:
It might be nice to have "checked-add" and "checked-sub" constructors (we may already?) so that one could write
(if-let c_plus_1 (u64_checked_add_ty cty c 1))
what do you think?
Kmeakin created PR review comment:
I think I prefer the current version
Kmeakin submitted PR review.
Kmeakin updated PR #6130.
Kmeakin updated PR #6130.
Kmeakin updated PR #6130.
Kmeakin requested cfallin for a review on PR #6130.
cfallin submitted PR review.
cfallin merged PR #6130.
Last updated: Dec 23 2024 at 12:05 UTC