Skip to content

Commit 2dba752

Browse files
committed
[RISCV] Use template version isInt<N> instead. NFC.
1 parent fcdb91e commit 2dba752

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Target/RISCV/RISCVInstrInfo.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1631,12 +1631,12 @@ bool RISCVInstrInfo::isBranchOffsetInRange(unsigned BranchOp,
16311631
case RISCV::QC_E_BLTI:
16321632
case RISCV::QC_E_BLTUI:
16331633
case RISCV::QC_E_BGEUI:
1634-
return isIntN(13, BrOffset);
1634+
return isInt<13>(BrOffset);
16351635
case RISCV::JAL:
16361636
case RISCV::PseudoBR:
1637-
return isIntN(21, BrOffset);
1637+
return isInt<21>(BrOffset);
16381638
case RISCV::PseudoJump:
1639-
return isIntN(32, SignExtend64(BrOffset + 0x800, XLen));
1639+
return isInt<32>(SignExtend64(BrOffset + 0x800, XLen));
16401640
}
16411641
}
16421642

0 commit comments

Comments
 (0)