Skip to content

Commit 5ff99f2

Browse files
committed
[RISCV] Remove duplicate check in an if statement. NFC
1 parent a87b839 commit 5ff99f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2864,7 +2864,7 @@ bool RISCVDAGToDAGISel::SelectAddrRegImm(SDValue Addr, SDValue &Base,
28642864

28652865
if (CurDAG->isBaseWithConstantOffset(Addr)) {
28662866
int64_t CVal = cast<ConstantSDNode>(Addr.getOperand(1))->getSExtValue();
2867-
if (isInt<12>(CVal) && isInt<12>(CVal)) {
2867+
if (isInt<12>(CVal)) {
28682868
Base = Addr.getOperand(0);
28692869
if (Base.getOpcode() == RISCVISD::ADD_LO) {
28702870
SDValue LoOperand = Base.getOperand(1);

0 commit comments

Comments
 (0)