Skip to content

Commit 30bb5f1

Browse files
bors[bot]vext01
andauthored
77: ykllvm no longer needs to treat promote calls specially. r=ltratt a=vext01 Co-authored-by: Edd Barrett <[email protected]>
2 parents 91b2c9f + 7ae8d3b commit 30bb5f1

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

llvm/lib/Transforms/Yk/StackMaps.cpp

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ void initializeYkStackmapsPass(PassRegistry &);
2828
} // namespace llvm
2929

3030
namespace {
31-
const char *YkPromote = "__ykllvm_recognised_promote";
3231

3332
class YkStackmaps : public ModulePass {
3433
public:
@@ -63,15 +62,7 @@ class YkStackmaps : public ModulePass {
6362
// emit a stackmap in those cases too.
6463
if (!CI.isIndirectCall() && CI.getCalledFunction()->isIntrinsic())
6564
continue;
66-
std::vector<Value *> Lives = LA.getLiveVarsBefore(&I);
67-
// Value guards for variable promotions, require us to also
68-
// track the value generated by the call.
69-
if (CI.getCalledFunction() &&
70-
CI.getCalledFunction()->getName() == YkPromote) {
71-
Value *RV = cast<Value>(&CI);
72-
Lives.push_back(RV);
73-
}
74-
SMCalls.insert({&I, Lives});
65+
SMCalls.insert({&I, LA.getLiveVarsBefore(&I)});
7566
} else if ((isa<BranchInst>(I) &&
7667
cast<BranchInst>(I).isConditional()) ||
7768
isa<SwitchInst>(I)) {

0 commit comments

Comments
 (0)