[llvm] [RISCV] Add short forward branch support for `min`, `max`, `maxu` and `minu` (PR #164394)

via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 28 22:55:52 PDT 2025


================
@@ -1739,14 +1739,21 @@ unsigned getPredicatedOpcode(unsigned Opcode) {
 /// return the defining instruction.
 static MachineInstr *canFoldAsPredicatedOp(Register Reg,
                                            const MachineRegisterInfo &MRI,
-                                           const TargetInstrInfo *TII) {
+                                           const TargetInstrInfo *TII,
+                                           bool minmax) {
----------------
hchandel wrote:

Done

https://github.com/llvm/llvm-project/pull/164394


More information about the llvm-commits mailing list