Skip to content

Commit e37707b

Browse files
committed
[RISCV] Use unsigned instead of uint16_t for the Opcode argument to getVectorLowDemandedScalarBits. NFC
All the callers pass an unsigned and uint16_t arguments are unusual.
1 parent bd319d9 commit e37707b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/lib/Target/RISCV/RISCVInstrInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4581,7 +4581,7 @@ bool RISCV::hasEqualFRM(const MachineInstr &MI1, const MachineInstr &MI2) {
45814581
}
45824582

45834583
std::optional<unsigned>
4584-
RISCV::getVectorLowDemandedScalarBits(uint16_t Opcode, unsigned Log2SEW) {
4584+
RISCV::getVectorLowDemandedScalarBits(unsigned Opcode, unsigned Log2SEW) {
45854585
switch (Opcode) {
45864586
default:
45874587
return std::nullopt;

llvm/lib/Target/RISCV/RISCVInstrInfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ bool hasEqualFRM(const MachineInstr &MI1, const MachineInstr &MI2);
364364
// If \p Opcode is a .vx vector instruction, returns the lower number of bits
365365
// that are used from the scalar .x operand for a given \p Log2SEW. Otherwise
366366
// returns null.
367-
std::optional<unsigned> getVectorLowDemandedScalarBits(uint16_t Opcode,
367+
std::optional<unsigned> getVectorLowDemandedScalarBits(unsigned Opcode,
368368
unsigned Log2SEW);
369369

370370
// Returns the MC opcode of RVV pseudo instruction.

0 commit comments

Comments
 (0)