jameysharp opened PR #5723 from opts-iconst-types to main:
I audited the egraph "algebraic" optimization rules for any which construct an
iconston the right-hand side of the rule. In these cases we need to constrain the type passed toiconstto be bothfits_in_64andty_int, becauseiconstis not defined on other types.If there's some reason why
icmpis 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 06 2025 at 06:05 UTC