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

[AArch64] Use isKnownNonZero to optimize eligible compares to cmn and ccmn #96349

Merged
merged 2 commits into from
Jul 22, 2024

Commits on Jul 21, 2024

  1. Pre-commit tests (NFC)

    AreaZR committed Jul 21, 2024
    Configuration menu
    Copy the full SHA
    73f2421 View commit details
    Browse the repository at this point in the history
  2. [AArch64] Use isKnownNonZero to optimize eligible compares to cmn and…

    … ccmn
    
    The problematic case for unsigned comparisons occurs only when the second argument is zero, and in signed cases when the second argument is the minimum possible signed integer. If we can prove the register value be those, it is safe to fold into CMN and CCMN.
    
    Source: https://devblogs.microsoft.com/oldnewthing/20210607-00/?p=105288
    AreaZR committed Jul 21, 2024
    Configuration menu
    Copy the full SHA
    8cab52f View commit details
    Browse the repository at this point in the history