llvm-project
78ac964c - [RISCV][NFC] Prepare for Short Forward Branch of branches with immediates (#182456)

Commit
16 hours ago
[RISCV][NFC] Prepare for Short Forward Branch of branches with immediates (#182456) This NFC patch introduces two key updates: - It replaces the `gpr` operand type with `sfb_rhs` for the `rhs` operand in the short forward branch optimization pseudos. The `sfb_rhs` type supports both register and immediate operands. - It updates the pseudos to use branch opcodes instead of condition codes, which were used prior to this change. Together, these changes prepare the existing codebase to support short forward branches that compare a register with an immediate value. Currently, short forward branch support is limited to register-to-register comparisons
Author
Parents
Loading