Skip to content

Enhance Range Assertions for GT_CNS_INT #121400

Closed

Description

@adamperlin

#120980 adds a more specific range for GT_CNS_INT nodes in assertion propagation by checking if the constant is non-negative. We could make the top end of this range even more precise though by checking the value further using a binary-search or a lookup table, see the comment here.

Activity

  1. self-assigned this
    on Nov 6, 2025
  2. added
    area-CodeGen-coreclr
    on Nov 6, 2025
  3. added
    untriaged
    on Nov 6, 2025
  4. dotnet-policy-service commented on Nov 6, 2025

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
    See info in area-owners.md if you want to be subscribed.

  5. removed
    untriaged
    on Nov 12, 2025
  6. added this to the 11.0.0 milestone on Nov 12, 2025
  7. adamperlin commented on Jul 13, 2026

    @adamperlin
    ContributorAuthor

    This produced 0 bytes of diff in MihuBot, and only small diffs in SPMI test collections. Overall, this doesn't seem to be worth the maintenance cost, and it sounds like we are moving more towards VN/SSA based GetRange.

  8. locked and limited conversation to collaborators on Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-CodeGen-coreclr

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions