Skip to content

Commit

Permalink
Revert "Merge pull request ykjit#119 from nmdis1999/main"
Browse files Browse the repository at this point in the history
This reverts commit b13bfe1, reversing
changes made to d68ef90.
  • Loading branch information
nmdis1999 committed Mar 14, 2024
1 parent b13bfe1 commit 6293419
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions llvm/lib/Transforms/Yk/StackMaps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
#include "llvm/IR/Verifier.h"
#include "llvm/InitializePasses.h"
#include "llvm/Pass.h"
#include "llvm/Transforms/Yk/ControlPoint.h"
#include "llvm/Transforms/Yk/LivenessAnalysis.h"

#include <map>

#define DEBUG_TYPE "yk-stackmaps"
Expand Down Expand Up @@ -60,15 +60,8 @@ class YkStackmaps : public ModulePass {
// We don't need to insert stackmaps after intrinsics. But since we
// can't tell if an indirect call is an intrinsic at compile time,
// emit a stackmap in those cases too.

if (!CI.isIndirectCall() &&
(CI.getCalledFunction()->isIntrinsic() ||
(CI.getCalledFunction()->isDeclaration() &&
(!CI.getCalledFunction()->getName().startswith(
"__yk_promote") &&
CI.getCalledFunction()->getName() != YK_NEW_CONTROL_POINT))))
if (!CI.isIndirectCall() && CI.getCalledFunction()->isIntrinsic())
continue;

SMCalls.insert({&I, LA.getLiveVarsBefore(&I)});
} else if ((isa<BranchInst>(I) &&
cast<BranchInst>(I).isConditional()) ||
Expand Down

0 comments on commit 6293419

Please sign in to comment.