Return the outermost cycle made divergent by branch outside it.
Declared in <llvm/ADT/GenericUniformityImpl.h>
template<
typename CycleInfoT,
typename BlockT>
CycleRef
getExtDivCycle(
CycleInfoT const& CI,
CycleRef Cycle,
BlockT const* DivTermBlock,
BlockT const* JoinBlock);
If two paths that diverged outside an irreducible cycle join inside that cycle, then that whole cycle is assumed to be divergent. This does not apply if the cycle is reducible.
Outermost irreducible cycle made divergent by an external branch, or null if none.
| Name | Description |
|---|---|
| CI | Cycle information for the function. |
| Cycle | Cycle containing JoinBlock to expand from. |
| DivTermBlock | Block of the divergent terminator outside the cycle. |
| JoinBlock | Block where diverged paths join inside the cycle. |