jameysharp opened PR #5723 from opts-iconst-types
to main
:
I audited the egraph "algebraic" optimization rules for any which construct an
iconst
on the right-hand side of the rule. In these cases we need to constrain the type passed toiconst
to be bothfits_in_64
andty_int
, becauseiconst
is not defined on other types.If there's some reason why
icmp
is already constrained to <=64 bits, I'd prefer to add comments explaining why instead of adding constraints to the rules.
jameysharp requested fitzgen for a review on PR #5723.
jameysharp requested cfallin for a review on PR #5723.
cfallin submitted PR review.
jameysharp merged PR #5723.
Last updated: Dec 23 2024 at 12:05 UTC