From eb92407bd3d2d54387eca2d7e49c4d89be3e000a Mon Sep 17 00:00:00 2001 From: Iti Shree Date: Thu, 28 Mar 2024 20:50:25 +0000 Subject: [PATCH] Revert "stackmap change." This reverts commit 94988e2b89a37d0c6b1d7ca7d02985492d6618fc. --- llvm/lib/Transforms/Yk/StackMaps.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/llvm/lib/Transforms/Yk/StackMaps.cpp b/llvm/lib/Transforms/Yk/StackMaps.cpp index 7c2b85604dc80c..58048c867dcb88 100644 --- a/llvm/lib/Transforms/Yk/StackMaps.cpp +++ b/llvm/lib/Transforms/Yk/StackMaps.cpp @@ -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 #define DEBUG_TYPE "yk-stackmaps" @@ -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(I) && cast(I).isConditional()) ||