llvm::isCriticalEdge

Return true if the specified edge is a critical edge.

Synopsis

Declared in <llvm/Analysis/CFG.h>

bool
isCriticalEdge(
    Instruction const* TI,
    unsigned int SuccNum,
    bool AllowIdenticalEdges = false);

Description

Critical edges are edges from a block with multiple successors to a block with multiple predecessors.

Return Value

True if the edge is critical.

Parameters

NameDescription
TITerminator instruction that defines the edge source.
SuccNumZero-based successor index of the edge.
AllowIdenticalEdgesIf true, identical edges are not critical.