[llvm] [RISCV][GISEL] Legalization, register bank selection, and instruction selection for scalable G_SELECT (PR #85540)

Thorsten Schütt via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 18 08:46:57 PDT 2024


================
@@ -401,6 +401,15 @@ RISCVRegisterBankInfo::getInstrMapping(const MachineInstr &MI) const {
   case TargetOpcode::G_SELECT: {
     LLT Ty = MRI.getType(MI.getOperand(0).getReg());
 
+    if (Ty.isVector()) {
----------------
tschuett wrote:

You could try
```
 GSelect *Sel = cast<GSelect>(&MI);
```
, but ...

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


More information about the llvm-commits mailing list