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

Synopsis

Declared in <llvm/Analysis/CFG.h>

bool
isCriticalEdge(
    Instruction const* TI,
    BasicBlock const* Succ,
    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.

Succ

Successor basic block that defines the edge destination.

AllowIdenticalEdges

If true, identical edges are not critical.

Created with MrDocs