forked from OSchip/llvm-project
[Scalar][NFC] Minor cleanups in CallSiteSplitting.cpp
This commit is contained in:
parent
68cd47e0ca
commit
f827ee671f
|
@ -123,8 +123,8 @@ static bool isCondRelevantToAnyCallArgument(ICmpInst *Cmp, CallBase &CB) {
|
|||
return false;
|
||||
}
|
||||
|
||||
typedef std::pair<ICmpInst *, unsigned> ConditionTy;
|
||||
typedef SmallVector<ConditionTy, 2> ConditionsTy;
|
||||
using ConditionTy = std::pair<ICmpInst *, unsigned>;
|
||||
using ConditionsTy = SmallVector<ConditionTy, 2>;
|
||||
|
||||
/// If From has a conditional jump to To, add the condition to Conditions,
|
||||
/// if it is relevant to any argument at CB.
|
||||
|
@ -301,10 +301,9 @@ static void copyMustTailReturn(BasicBlock *SplitBB, Instruction *CI,
|
|||
/// Note that in case any arguments at the call-site are constrained by its
|
||||
/// predecessors, new call-sites with more constrained arguments will be
|
||||
/// created in createCallSitesOnPredicatedArgument().
|
||||
static void splitCallSite(
|
||||
CallBase &CB,
|
||||
const SmallVectorImpl<std::pair<BasicBlock *, ConditionsTy>> &Preds,
|
||||
DomTreeUpdater &DTU) {
|
||||
static void splitCallSite(CallBase &CB,
|
||||
ArrayRef<std::pair<BasicBlock *, ConditionsTy>> Preds,
|
||||
DomTreeUpdater &DTU) {
|
||||
BasicBlock *TailBB = CB.getParent();
|
||||
bool IsMustTailCall = CB.isMustTailCall();
|
||||
|
||||
|
|
Loading…
Reference in New Issue