Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More precise value analysis for "known integer or Vundef" results #520

Merged
merged 2 commits into from
Aug 22, 2024

Commits on Aug 21, 2024

  1. Value analysis: add IU ("known integer or Vundef") static value

    This improves analysis precision for comparisons and selections.
    xavierleroy committed Aug 21, 2024
    Configuration menu
    Copy the full SHA
    57a630c View commit details
    Browse the repository at this point in the history
  2. Constant propagation: optimize "known integer or Vundef" results

    Results that analyze to `IU n` are turned into
    `load-integer-immediate(n)` operations.
    
    This is semantically safe, and enables compile-time evaluation of some
    pointer comparisons (e.g. `&x == &x` where `x` is a global variable or
    a stack-allocated variable).
    xavierleroy committed Aug 21, 2024
    Configuration menu
    Copy the full SHA
    f3f1dc2 View commit details
    Browse the repository at this point in the history