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

WangLian via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 2 01:27:07 PDT 2022


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGe208bab55fb1: [RISCV][NFC] Use defined variable instead some code. (authored by Jimerlife).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D130687/new/

https://reviews.llvm.org/D130687

Files:
  llvm/lib/Target/RISCV/RISCVISelLowering.cpp


Index: llvm/lib/Target/RISCV/RISCVISelLowering.cpp
===================================================================
--- llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+++ llvm/lib/Target/RISCV/RISCVISelLowering.cpp
@@ -8370,7 +8370,7 @@
   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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130687.449215.patch
Type: text/x-patch
Size: 499 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220802/53a3635f/attachment.bin>


More information about the llvm-commits mailing list