Skip to content

Commit 27cea0e

Browse files
author
Jake Hughes
committed
Fold stack-map call into switch instruction
1 parent 14e7d73 commit 27cea0e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

llvm/lib/YkIR/YkIRWriter.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,9 @@ class YkIRWriter {
684684
for (auto &Case : I->cases()) {
685685
serialiseBlockLabel(Case.getCaseSuccessor());
686686
}
687-
687+
// safepoint:
688+
CallInst *SMI = dyn_cast<CallInst>(I->getPrevNonDebugInstruction());
689+
serialiseStackmapCall(SMI, VLMap);
688690
InstIdx++;
689691
}
690692

0 commit comments

Comments
 (0)