llvm::isCriticalEdge

isCriticalEdge overloads

Synopses

Declared in <llvm/Analysis/CFG.h>

Return true if the specified edge is a critical edge.

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

Return true if the edge from TI to Succ is a critical edge.

bool
isCriticalEdge(
    Instruction const* TI,
    BasicBlock const* Succ,
    bool AllowIdenticalEdges = false);
» more...

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.
SuccSuccessor basic block that defines the edge destination.