MCPcopy Create free account
hub / github.com/Inori/GPCS4 / isBackedge

Method isBackedge

GPCS4/Graphics/Gcn/ControlFlowGraph/GcnStackifier.cpp:468–480  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

466 }
467
468 bool GcnTokenListBuilder::isBackedge(GcnCfgVertex from, GcnCfgVertex to)
469 {
470 bool isToHeader = m_loopInfo.isLoopHeader(to);
471 bool containFrom = false;
472
473 if (isToHeader)
474 {
475 auto loop = m_loopInfo.getLoop(to);
476 containFrom = loop->contains(from);
477 }
478
479 return isToHeader && containFrom;
480 }
481
482 uint32_t GcnTokenListBuilder::getNumForwardPreds(GcnCfgVertex vtx)
483 {

Callers

nothing calls this directly

Calls 3

isLoopHeaderMethod · 0.80
getLoopMethod · 0.80
containsMethod · 0.45

Tested by

no test coverage detected