Skip to content

Commit a0fb8db

Browse files
committed
fixup! getScalarSizeInBits.
1 parent a6f5080 commit a0fb8db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ RISCVInstructionSelector::selectZExtBits(MachineOperand &Root,
261261
return {{[=](MachineInstrBuilder &MIB) { MIB.addReg(RegX); }}};
262262
}
263263

264-
unsigned Size = MRI->getType(RootReg).getSizeInBits();
264+
unsigned Size = MRI->getType(RootReg).getScalarSizeInBits();
265265
if (KB->maskedValueIsZero(RootReg, APInt::getBitsSetFrom(Size, Bits)))
266266
return {{[=](MachineInstrBuilder &MIB) { MIB.add(Root); }}};
267267

0 commit comments

Comments
 (0)