[llvm] [RISCV] Add short forward branch support for `min`, `max`, `maxu` and `minu` (PR #164394)
    Craig Topper via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue Oct 21 11:15:28 PDT 2025
    
    
  
================
@@ -1698,6 +1698,18 @@ unsigned getPredicatedOpcode(unsigned Opcode) {
   case RISCV::AND:   return RISCV::PseudoCCAND;   break;
   case RISCV::OR:    return RISCV::PseudoCCOR;    break;
   case RISCV::XOR:   return RISCV::PseudoCCXOR;   break;
+  case RISCV::MAX:
----------------
topperc wrote:
We really shouldn't have an unreachable `break;`. I guess that's a mistake I made originally?
https://github.com/llvm/llvm-project/pull/164394
    
    
More information about the llvm-commits
mailing list