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