From ea8d55c90a7304f04c1c313d80173b7dd282d267 Mon Sep 17 00:00:00 2001 From: Edd Barrett Date: Fri, 20 Sep 2024 17:05:54 +0100 Subject: [PATCH] statepoint fix. --- llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index dcaf76773236f2d..17de43361a881c4 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -1987,14 +1987,13 @@ void AsmPrinter::emitFunctionBody() { // statically into the blockmap at AOT compile time. // // Some things that look like calls in IR don't actually emit a - // call into the binary. Namely stackmap and statepoint intrinsics. + // call into the binary. Namely a stackmap intrinsic. // - // Note that a patchpoint intrinsic, although similar to stackmap and - // statepoint intrinsics, does actually emit a call in the binary, - // so we DO need to include those callsites. + // Note that patchpoint and statepoint intrinsics, although similar to + // the stackmap intrinsic, do actually emit a call in the binary, so we + // DO need to include those callsites. if (YkExtendedLLVMBBAddrMapSection && MI.isCall() && - (MI.getOpcode() != TargetOpcode::STACKMAP) && - (MI.getOpcode() != TargetOpcode::STATEPOINT)) { + (MI.getOpcode() != TargetOpcode::STACKMAP)) { // Record the address of the call instruction itself. MCSymbol *YkPreCallSym = MF->getContext().createTempSymbol("yk_precall", true);