Skip to content

Commit

Permalink
Merge pull request rust-lang#121 from nmdis1999/main
Browse files Browse the repository at this point in the history
Revert Stackmap change from PR#119
  • Loading branch information
ltratt authored Mar 14, 2024
2 parents b13bfe1 + 6293419 commit c15739a
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 c15739a

Please sign in to comment.