mirror of
https://github.com/RPCSX/llvm.git
synced 2025-03-07 12:28:19 +00:00
[SelectionDAG] Remove visitStatepoint; NFC
This way we have a single entry point into StatepointLowering. The method was a direct dispatch to LowerStatepoint anyway. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@263682 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3fc5a0caea
commit
d8f413be52
@ -5364,7 +5364,7 @@ SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I, unsigned Intrinsic) {
|
||||
return nullptr;
|
||||
}
|
||||
case Intrinsic::experimental_gc_statepoint: {
|
||||
visitStatepoint(I);
|
||||
LowerStatepoint(ImmutableStatepoint(&I));
|
||||
return nullptr;
|
||||
}
|
||||
case Intrinsic::experimental_gc_result: {
|
||||
|
@ -902,8 +902,7 @@ private:
|
||||
void visitPatchpoint(ImmutableCallSite CS,
|
||||
const BasicBlock *EHPadBB = nullptr);
|
||||
|
||||
// These three are implemented in StatepointLowering.cpp
|
||||
void visitStatepoint(const CallInst &I);
|
||||
// These two are implemented in StatepointLowering.cpp
|
||||
void visitGCRelocate(const GCRelocateInst &I);
|
||||
void visitGCResult(const CallInst &I);
|
||||
|
||||
|
@ -550,14 +550,6 @@ lowerStatepointMetaArgs(SmallVectorImpl<SDValue> &Ops,
|
||||
}
|
||||
}
|
||||
|
||||
void SelectionDAGBuilder::visitStatepoint(const CallInst &CI) {
|
||||
// Check some preconditions for sanity
|
||||
assert(isStatepoint(&CI) &&
|
||||
"Function called must be the statepoint function");
|
||||
|
||||
LowerStatepoint(ImmutableStatepoint(&CI));
|
||||
}
|
||||
|
||||
SDValue SelectionDAGBuilder::LowerAsStatepoint(
|
||||
SelectionDAGBuilder::StatepointLoweringInfo &SI) {
|
||||
// The basic scheme here is that information about both the original call and
|
||||
|
Loading…
x
Reference in New Issue
Block a user