Lines Matching defs:CBRs
57 static bool SplitCriticalEdges(ArrayRef<CallBrInst *> CBRs, DominatorTree &DT);
58 static bool InsertIntrinsicCalls(ArrayRef<CallBrInst *> CBRs,
79 SmallVector<CallBrInst *, 2> CBRs = FindCallBrs(Fn);
81 if (CBRs.empty())
86 Changed |= SplitCriticalEdges(CBRs, DT);
87 Changed |= InsertIntrinsicCalls(CBRs, DT);
110 SmallVector<CallBrInst *, 2> CBRs;
114 CBRs.push_back(CBR);
115 return CBRs;
118 bool SplitCriticalEdges(ArrayRef<CallBrInst *> CBRs, DominatorTree &DT) {
131 for (CallBrInst *CBR : CBRs)
140 bool InsertIntrinsicCalls(ArrayRef<CallBrInst *> CBRs, DominatorTree &DT) {
143 IRBuilder<> Builder(CBRs[0]->getContext());
144 for (CallBrInst *CBR : CBRs) {
224 SmallVector<CallBrInst *, 2> CBRs = FindCallBrs(Fn);
226 if (CBRs.empty())
245 if (SplitCriticalEdges(CBRs, *DT))
248 if (InsertIntrinsicCalls(CBRs, *DT))