Lines Matching defs:To
295 // Return true if an edge from the From loop to the To loop is leaving a loop.
296 // Either of To and From can be null.
297 static bool isExitingLoop(const MachineLoop *From, const MachineLoop *To) {
298 return From && !From->contains(To);
411 // Traces are built by two CFG traversals. To avoid recomputing too much, use a
437 bool insertEdge(const MachineBasicBlock *From, const MachineBasicBlock *To) {
438 // Skip already visited To blocks.
439 MachineTraceMetrics::TraceBlockInfo &TBI = LB.Blocks[To->getNumber()];
442 // From is null once when To is the trace center block.
446 if ((LB.Downward ? To : From) == FromLoop->getHeader())
449 if (isExitingLoop(FromLoop, LB.Loops->getLoopFor(To)))
453 // To is a new block. Mark the block as visited in case the CFG has cycles
455 return LB.Visited.insert(To);