Skip to content

Commit 63251f4

Browse files
committed
[RISCV][GISel] Add regbank select for G_INVOKE_REGION_START.
It doesn't have any operands so the mapping is empty.
1 parent 0e7b30f commit 63251f4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/lib/Target/RISCV/GISel/RISCVRegisterBankInfo.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ RISCVRegisterBankInfo::getInstrMapping(const MachineInstr &MI) const {
133133
const ValueMapping *OperandsMapping = GPRValueMapping;
134134

135135
switch (Opc) {
136+
case TargetOpcode::G_INVOKE_REGION_START:
137+
OperandsMapping = getOperandsMapping({});
138+
break;
136139
case TargetOpcode::G_ADD:
137140
case TargetOpcode::G_SUB:
138141
case TargetOpcode::G_SHL:

0 commit comments

Comments
 (0)