File tree 1 file changed +2
-9
lines changed 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change 15
15
#include " llvm/IR/Verifier.h"
16
16
#include " llvm/InitializePasses.h"
17
17
#include " llvm/Pass.h"
18
- #include " llvm/Transforms/Yk/ControlPoint.h"
19
18
#include " llvm/Transforms/Yk/LivenessAnalysis.h"
19
+
20
20
#include < map>
21
21
22
22
#define DEBUG_TYPE " yk-stackmaps"
@@ -60,15 +60,8 @@ class YkStackmaps : public ModulePass {
60
60
// We don't need to insert stackmaps after intrinsics. But since we
61
61
// can't tell if an indirect call is an intrinsic at compile time,
62
62
// 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 ())
70
64
continue ;
71
-
72
65
SMCalls.insert ({&I, LA.getLiveVarsBefore (&I)});
73
66
} else if ((isa<BranchInst>(I) &&
74
67
cast<BranchInst>(I).isConditional ()) ||
You can’t perform that action at this time.
0 commit comments