[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 09:15:11 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:
Exactly. Then you don't have to remember the operand indices and the code becomes more readable.
https://github.com/llvm/llvm-project/pull/85540
More information about the llvm-commits
mailing list