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 branch peephole opt #90451

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Commits on Apr 29, 2024

  1. Configuration menu
    Copy the full SHA
    6f50e0f View commit details
    Browse the repository at this point in the history

Commits on Jun 4, 2024

  1. [RISC-V] Add RISC-V machine instruction peephole pass

    After block-placement and machine-cp, the following situations
    may require optimization.
    
    ```
    bne a0, a0, %bb.2  ->  remove it
    blt a0, a0, %bb.2  ->  remove it
    bltu a0, a0, %bb.2 ->  remove it
    
    beq a0, a0, %bb.2  ->  br, %bb.2
    bge a0, a0, %bb.2  ->  br, %bb.2
    bgeu a0, a0, %bb.2 ->  br, %bb.2
    
    ```
    zengdage committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    0c58437 View commit details
    Browse the repository at this point in the history