[llvm] [RISCV][GISEL] Regbank select and instruction select for scalable vector G_ICMP (PR #87362)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 2 09:52:35 PDT 2024


================
@@ -487,6 +487,19 @@ RISCVRegisterBankInfo::getInstrMapping(const MachineInstr &MI) const {
     OpdsMapping[1] = GPRValueMapping;
     break;
   }
+  case TargetOpcode::G_ICMP: {
+    if (MRI.getType(MI.getOperand(0).getReg()).isVector()) {
----------------
topperc wrote:

Can you just add vector support to the default case?

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


More information about the llvm-commits mailing list