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

Name

Description

TI

Terminator instruction that defines the edge source.

SuccNum

Zero‐based successor index of the edge.

AllowIdenticalEdges

If true, identical edges are not critical.

Created with MrDocs