Skip to content

Commit f827ee6

Browse files
[Scalar][NFC] Minor cleanups in CallSiteSplitting.cpp
1 parent 68cd47e commit f827ee6

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

llvm/lib/Transforms/Scalar/CallSiteSplitting.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ static bool isCondRelevantToAnyCallArgument(ICmpInst *Cmp, CallBase &CB) {
123123
return false;
124124
}
125125

126-
typedef std::pair<ICmpInst *, unsigned> ConditionTy;
127-
typedef SmallVector<ConditionTy, 2> ConditionsTy;
126+
using ConditionTy = std::pair<ICmpInst *, unsigned>;
127+
using ConditionsTy = SmallVector<ConditionTy, 2>;
128128

129129
/// If From has a conditional jump to To, add the condition to Conditions,
130130
/// if it is relevant to any argument at CB.
@@ -301,10 +301,9 @@ static void copyMustTailReturn(BasicBlock *SplitBB, Instruction *CI,
301301
/// Note that in case any arguments at the call-site are constrained by its
302302
/// predecessors, new call-sites with more constrained arguments will be
303303
/// created in createCallSitesOnPredicatedArgument().
304-
static void splitCallSite(
305-
CallBase &CB,
306-
const SmallVectorImpl<std::pair<BasicBlock *, ConditionsTy>> &Preds,
307-
DomTreeUpdater &DTU) {
304+
static void splitCallSite(CallBase &CB,
305+
ArrayRef<std::pair<BasicBlock *, ConditionsTy>> Preds,
306+
DomTreeUpdater &DTU) {
308307
BasicBlock *TailBB = CB.getParent();
309308
bool IsMustTailCall = CB.isMustTailCall();
310309

0 commit comments

Comments
 (0)