| 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 | { |
nothing calls this directly
no test coverage detected