llvm::BlockFrequencyInfoImplBase::analyzeIrreducible

Analyze irreducible SCCs.

Synopsis

Declared in <llvm/Analysis/BlockFrequencyInfoImpl.h>

iterator_range<std::list<LoopData>::iterator>
analyzeIrreducible(
    bfi_detail::IrreducibleGraph const& G,
    LoopData* OuterLoop,
    std::list<LoopData>::iterator Insert);

Description

Separate irreducible SCCs from G, which is an explicit graph of OuterLoop (or the top-level function, if OuterLoop is nullptr). Insert them into Loops before Insert.

Return Value

the LoopData nodes representing the irreducible SCCs.

Parameters

NameDescription
GExplicit irreducible control-flow graph to analyze.
OuterLoopEnclosing loop, or null for the top-level function.
InsertInsertion point in Loops for new SCC packages.