Skip to content

Commit a6e61ce

Browse files
authored
[RISCV] Remove duplicate check in SelectAddrRegImmLsb00000. NFC (llvm#133372)
1 parent 7eccafc commit a6e61ce

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2809,8 +2809,7 @@ bool RISCVDAGToDAGISel::SelectAddrRegImmLsb00000(SDValue Addr, SDValue &Base,
28092809
// Handle ADD with large immediates.
28102810
if (Addr.getOpcode() == ISD::ADD && isa<ConstantSDNode>(Addr.getOperand(1))) {
28112811
int64_t CVal = cast<ConstantSDNode>(Addr.getOperand(1))->getSExtValue();
2812-
assert(!(isInt<12>(CVal) && isInt<12>(CVal)) &&
2813-
"simm12 not already handled?");
2812+
assert(!isInt<12>(CVal) && "simm12 not already handled?");
28142813

28152814
// Handle immediates in the range [-4096,-2049] or [2017, 4065]. We can save
28162815
// one instruction by folding adjustment (-2048 or 2016) into the address.

0 commit comments

Comments
 (0)