Skip to content

Commit

Permalink
[RISCV][NFC] Use defined variable instead some code.
Browse files Browse the repository at this point in the history
Reviewed By: asb

Differential Revision: https://reviews.llvm.org/D130687
  • Loading branch information
wanglian authored and wanglian committed Aug 2, 2022
1 parent 3f25ad3 commit e208bab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Target/RISCV/RISCVISelLowering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8370,7 +8370,7 @@ static SDValue performSETCCCombine(SDNode *N, SelectionDAG &DAG,
if (!isIntEqualitySetCC(Cond))
return SDValue();

const APInt &C1 = cast<ConstantSDNode>(N1)->getAPIntValue();
const APInt &C1 = N1C->getAPIntValue();

SDLoc dl(N);
// If the constant is larger than 2^32 - 1 it is impossible for both sides
Expand Down

0 comments on commit e208bab

Please sign in to comment.