Author: wanglian
Date: 2022-08-05T01:12:26-07:00
New Revision: 98411113094fe93e3124f2db9d7a99cf03b8bdb3

URL: 
https://github.com/llvm/llvm-project/commit/98411113094fe93e3124f2db9d7a99cf03b8bdb3
DIFF: 
https://github.com/llvm/llvm-project/commit/98411113094fe93e3124f2db9d7a99cf03b8bdb3.diff

LOG: [RISCV][NFC] Use defined variable instead some code.

Reviewed By: asb

Differential Revision: https://reviews.llvm.org/D130687

(cherry picked from commit e208bab55fb11a69931a02dec8583a8ec5f94bbf)

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 baa19e81e4365..8fe49a90994f3 100644
--- a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+++ b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
@@ -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


        
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to