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

(cherry picked from commit e208bab)
  • Loading branch information
wanglian authored and tstellar committed Aug 5, 2022
1 parent b8f8e45 commit 9841111
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 @@ -8199,7 +8199,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 9841111

Please sign in to comment.