File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
llvm/lib/Target/RISCV/GISel Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -317,8 +317,11 @@ RISCVRegisterBankInfo::getInstrMapping(const MachineInstr &MI) const {
317
317
OpdsMapping[0 ] = GPRValueMapping;
318
318
319
319
OpdsMapping[1 ] = GPRValueMapping;
320
+
321
+ if (Ty.isVector ())
322
+ break ;
320
323
// Use FPR64 for s64 loads on rv32.
321
- if (!Ty. isVector () && GPRSize == 32 && Size.getFixedValue () == 64 ) {
324
+ if (GPRSize == 32 && Size.getFixedValue () == 64 ) {
322
325
assert (MF.getSubtarget <RISCVSubtarget>().hasStdExtD ());
323
326
OpdsMapping[0 ] = getFPValueMapping (Ty.getSizeInBits ());
324
327
break ;
@@ -345,8 +348,12 @@ RISCVRegisterBankInfo::getInstrMapping(const MachineInstr &MI) const {
345
348
OpdsMapping[0 ] = GPRValueMapping;
346
349
347
350
OpdsMapping[1 ] = GPRValueMapping;
351
+
352
+ if (Ty.isVector ())
353
+ break ;
354
+
348
355
// Use FPR64 for s64 stores on rv32.
349
- if (!Ty. isVector () && GPRSize == 32 && Size.getFixedValue () == 64 ) {
356
+ if (GPRSize == 32 && Size.getFixedValue () == 64 ) {
350
357
assert (MF.getSubtarget <RISCVSubtarget>().hasStdExtD ());
351
358
OpdsMapping[0 ] = getFPValueMapping (Ty.getSizeInBits ());
352
359
break ;
You can’t perform that action at this time.
0 commit comments