[llvm] 17858da - [AArch64] Remove unneeded ExternalSymbolSDNode code for machine constraint "S". NFC

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 30 17:53:02 PDT 2021


Author: Fangrui Song
Date: 2021-06-30T17:52:56-07:00
New Revision: 17858da0229520dacd52a4675cdc7d3e84e45111

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

LOG: [AArch64] Remove unneeded ExternalSymbolSDNode code for machine constraint "S". NFC

ExternalSymbolSDNode is implicitly generated libcalls but with an address taking
operation we cannot reference an ExternalSymbolSDNode.

Added: 
    

Modified: 
    llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
index 5b0e7d743b08..d65c8ad6ff2a 100644
--- a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+++ b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
@@ -8160,10 +8160,6 @@ void AArch64TargetLowering::LowerAsmOperandForConstraint(
                    dyn_cast<BlockAddressSDNode>(Op)) {
       Result =
           DAG.getTargetBlockAddress(BA->getBlockAddress(), BA->getValueType(0));
-    } else if (const ExternalSymbolSDNode *ES =
-                   dyn_cast<ExternalSymbolSDNode>(Op)) {
-      Result =
-          DAG.getTargetExternalSymbol(ES->getSymbol(), ES->getValueType(0));
     } else
       return;
     break;


        


More information about the llvm-commits mailing list