Lines Matching refs:newedge
223 replaceEdge(const Edge &oldedge, const Edge &newedge) { in replaceEdge() argument
225 if ((w = getEdgeWeight(newedge)) == MissingValue) { in replaceEdge()
227 DEBUG(dbgs() << "Replacing " << oldedge << " with " << newedge << "\n"); in replaceEdge()
230 DEBUG(dbgs() << "Adding " << oldedge << " to " << newedge << "\n"); in replaceEdge()
232 setEdgeWeight(newedge,w); in replaceEdge()
282 divertFlow(const Edge &oldedge, const Edge &newedge) { in divertFlow() argument
283 DEBUG(dbgs() << "Diverting " << oldedge << " via " << newedge ); in divertFlow()
292 P[newedge.first] = 0; in divertFlow()
293 P[newedge.second] = newedge.first; in divertFlow()
294 const BasicBlock *BB = GetPath(newedge.second,oldedge.second,P,GetPathToExit | GetPathToDest); in divertFlow()
308 } while (BB != newedge.first); in divertFlow()
325 Edge e, newedge; in replaceAllUses() local
335 newedge = getEdge(DestBB, e.second); in replaceAllUses()
343 newedge = getEdge(e.first, DestBB); in replaceAllUses()
348 replaceEdge(e, newedge); in replaceAllUses()
352 Edge newedge = getEdge(DestBB, DestBB); in replaceAllUses() local
353 replaceEdge(e, newedge); in replaceAllUses()
431 Edge newedge = getEdge(New, EI->second); in splitBlock() local
432 replaceEdge(*EI, newedge); in splitBlock()
463 Edge newedge = getEdge(Pred, NewBB); in splitBlock() local
468 replaceEdge(oldedge,newedge); in splitBlock()
472 Edge newedge = getEdge(NewBB,BB); in splitBlock() local
473 setEdgeWeight(newedge, newweight); in splitBlock()