Skip to content

Commit

Permalink
Revert "stackmap change."
Browse files Browse the repository at this point in the history
This reverts commit 94988e2.
  • Loading branch information
nmdis1999 committed Mar 28, 2024
1 parent ce98856 commit eb92407
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 eb92407

Please sign in to comment.