[llvm] [RISCV][GISel] Add really basic support for FP regbank selection for G_LOAD/G_STORE. (PR #70896)
Michael Maitland via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 13 06:51:42 PST 2023
================
@@ -158,11 +208,51 @@ RISCVRegisterBankInfo::getInstrMapping(const MachineInstr &MI) const {
case TargetOpcode::G_ANYEXT:
case TargetOpcode::G_SEXT:
case TargetOpcode::G_ZEXT:
- case TargetOpcode::G_LOAD:
case TargetOpcode::G_SEXTLOAD:
case TargetOpcode::G_ZEXTLOAD:
- case TargetOpcode::G_STORE:
break;
+ case TargetOpcode::G_LOAD: {
+ LLT Ty = MRI.getType(MI.getOperand(0).getReg());
----------------
michaelmaitland wrote:
`getType` can return `LLT{}`. Should we fail if `!isValid()`?
https://github.com/llvm/llvm-project/pull/70896
More information about the llvm-commits
mailing list