[llvm] e208bab - [RISCV][NFC] Use defined variable instead some code.
via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 2 01:26:55 PDT 2022
Author: wanglian
Date: 2022-08-02T16:26:33+08:00
New Revision: e208bab55fb11a69931a02dec8583a8ec5f94bbf
URL: https://github.com/llvm/llvm-project/commit/e208bab55fb11a69931a02dec8583a8ec5f94bbf
DIFF: https://github.com/llvm/llvm-project/commit/e208bab55fb11a69931a02dec8583a8ec5f94bbf.diff
LOG: [RISCV][NFC] Use defined variable instead some code.
Reviewed By: asb
Differential Revision: https://reviews.llvm.org/D130687
Added:
Modified:
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
index 518f2b16b67df..d89f6b9c6c908 100644
--- a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+++ b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
@@ -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
More information about the llvm-commits
mailing list