Lines Matching refs:oldedge
223 replaceEdge(const Edge &oldedge, const Edge &newedge) { in replaceEdge() argument
226 w = getEdgeWeight(oldedge); in replaceEdge()
227 DEBUG(dbgs() << "Replacing " << oldedge << " with " << newedge << "\n"); in replaceEdge()
229 w += getEdgeWeight(oldedge); in replaceEdge()
230 DEBUG(dbgs() << "Adding " << oldedge << " to " << newedge << "\n"); in replaceEdge()
233 removeEdge(oldedge); in replaceEdge()
282 divertFlow(const Edge &oldedge, const Edge &newedge) { in divertFlow() argument
283 DEBUG(dbgs() << "Diverting " << oldedge << " via " << newedge ); in divertFlow()
286 if (getEdgeWeight(oldedge) == 0) { in divertFlow()
287 removeEdge(oldedge); in divertFlow()
294 const BasicBlock *BB = GetPath(newedge.second,oldedge.second,P,GetPathToExit | GetPathToDest); in divertFlow()
296 double w = getEdgeWeight (oldedge); in divertFlow()
304 if (Parent != oldedge.first) { in divertFlow()
309 removeEdge(oldedge); in divertFlow()
462 Edge oldedge = getEdge(Pred, BB); in splitBlock() local
466 newweight += getEdgeWeight(oldedge); in splitBlock()
468 replaceEdge(oldedge,newedge); in splitBlock()