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

[RISCV] Support (truncate (smin (smax X, C1), C2)) for vnclipu in combineTruncToVnclip. #93756

Merged
merged 3 commits into from
May 30, 2024

Commits on May 30, 2024

  1. [RISCV] Support (truncate (smin (smax X, C1), C2)) for vnclipu in com…

    …bineTruncToVnclip.
    
    If the smax removed all negative numbers, then we can treat the
    smin like a umin.
    
    If the smin and smax are in the other order we can swap them and
    use a vnclipu as long as the smax constant is smaller than the
    smin constant.
    
    This is based on similar code from X86's detectUSatPattern.
    topperc committed May 30, 2024
    Configuration menu
    Copy the full SHA
    951974e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7a01062 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3deb4b7 View commit details
    Browse the repository at this point in the history