Skip to content

Commit 7c2669e

Browse files
MaskRaymemfrob
authored andcommitted
[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.
1 parent 41710f4 commit 7c2669e

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8160,10 +8160,6 @@ void AArch64TargetLowering::LowerAsmOperandForConstraint(
81608160
dyn_cast<BlockAddressSDNode>(Op)) {
81618161
Result =
81628162
DAG.getTargetBlockAddress(BA->getBlockAddress(), BA->getValueType(0));
8163-
} else if (const ExternalSymbolSDNode *ES =
8164-
dyn_cast<ExternalSymbolSDNode>(Op)) {
8165-
Result =
8166-
DAG.getTargetExternalSymbol(ES->getSymbol(), ES->getValueType(0));
81678163
} else
81688164
return;
81698165
break;

0 commit comments

Comments
 (0)