[llvm] [RISCV][GISel] Instruction select for vector G_ADD, G_SUB (PR #74114)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 1 10:26:12 PST 2023
================
@@ -240,6 +254,10 @@ RISCVRegisterBankInfo::getInstrMapping(const MachineInstr &MI) const {
&RISCV::ValueMappings[GPRSize == 64 ? RISCV::GPRB64Idx
: RISCV::GPRB32Idx];
+ unsigned VRBSize = getMaximumSize(RISCV::VRBRegBankID);
+ const ValueMapping *VRBValueMapping =
+ &RISCV::ValueMappings[VRBSize == 64 ? RISCV::VRB64Idx : RISCV::VRB32Idx];
----------------
topperc wrote:
The size for VRB bank shouldn't change. We only have to do this for GPR because of RV32 vs RV64.
https://github.com/llvm/llvm-project/pull/74114
More information about the llvm-commits
mailing list