Skip to content

Commit

Permalink
statepoint fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
vext01 committed Sep 20, 2024
1 parent 2ab9891 commit ea8d55c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ea8d55c

Please sign in to comment.