[llvm] adee6c8 - [LoongArch] Inline one-time-used variable and format codes. NFC.

via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 2 00:41:29 PDT 2022


Author: gonglingqin
Date: 2022-11-02T15:40:57+08:00
New Revision: adee6c880c2f853ec6cb4aadfcd66d68c25f5198

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

LOG: [LoongArch] Inline one-time-used variable and format codes. NFC.

Added: 
    

Modified: 
    llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp b/llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
index 94f02861b584a..6f477413636a9 100644
--- a/llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
+++ b/llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
@@ -489,11 +489,10 @@ LoongArchTargetLowering::lowerGlobalTLSAddress(SDValue Op,
   return Addr;
 }
 
-SDValue LoongArchTargetLowering::lowerINTRINSIC_WO_CHAIN(SDValue Op,
-                                                         SelectionDAG &DAG) const {
-  unsigned IntNo = Op.getConstantOperandVal(0);
-
-  switch (IntNo) {
+SDValue
+LoongArchTargetLowering::lowerINTRINSIC_WO_CHAIN(SDValue Op,
+                                                 SelectionDAG &DAG) const {
+  switch (Op.getConstantOperandVal(0)) {
   default:
     return SDValue(); // Don't custom lower most intrinsics.
   case Intrinsic::thread_pointer: {


        


More information about the llvm-commits mailing list