Skip to content

Commit c15739a

Browse files
authored
Merge pull request rust-lang#121 from nmdis1999/main
Revert Stackmap change from PR#119
2 parents b13bfe1 + 6293419 commit c15739a

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

llvm/lib/Transforms/Yk/StackMaps.cpp

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
#include "llvm/IR/Verifier.h"
1616
#include "llvm/InitializePasses.h"
1717
#include "llvm/Pass.h"
18-
#include "llvm/Transforms/Yk/ControlPoint.h"
1918
#include "llvm/Transforms/Yk/LivenessAnalysis.h"
19+
2020
#include <map>
2121

2222
#define DEBUG_TYPE "yk-stackmaps"
@@ -60,15 +60,8 @@ class YkStackmaps : public ModulePass {
6060
// We don't need to insert stackmaps after intrinsics. But since we
6161
// can't tell if an indirect call is an intrinsic at compile time,
6262
// emit a stackmap in those cases too.
63-
64-
if (!CI.isIndirectCall() &&
65-
(CI.getCalledFunction()->isIntrinsic() ||
66-
(CI.getCalledFunction()->isDeclaration() &&
67-
(!CI.getCalledFunction()->getName().startswith(
68-
"__yk_promote") &&
69-
CI.getCalledFunction()->getName() != YK_NEW_CONTROL_POINT))))
63+
if (!CI.isIndirectCall() && CI.getCalledFunction()->isIntrinsic())
7064
continue;
71-
7265
SMCalls.insert({&I, LA.getLiveVarsBefore(&I)});
7366
} else if ((isa<BranchInst>(I) &&
7467
cast<BranchInst>(I).isConditional()) ||

0 commit comments

Comments
 (0)