[llvm] [RISCV][GISEL] Legalization, register bank selection, and instruction selection for scalable G_SELECT (PR #85540)
Michael Maitland via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 19 12:06:40 PDT 2024
================
@@ -401,6 +402,16 @@ RISCVRegisterBankInfo::getInstrMapping(const MachineInstr &MI) const {
case TargetOpcode::G_SELECT: {
LLT Ty = MRI.getType(MI.getOperand(0).getReg());
+ if (Ty.isVector()) {
+ GSelect *Sel = cast<GSelect>(&MI);
+ LLT TestTy = MRI.getType(Sel->getCondReg());
----------------
michaelmaitland wrote:
Updated
https://github.com/llvm/llvm-project/pull/85540
More information about the llvm-commits
mailing list