llvm::ScheduleDAGTopologicalSort::WillCreateCycle

Returns true if addPred(TargetSU, SU) creates a cycle.

Synopsis

Declared in <llvm/CodeGen/ScheduleDAG.h>

bool
WillCreateCycle(
    SUnit* TargetSU,
    SUnit* SU);

Return Value

True if adding the edge would create a cycle.

Parameters

NameDescription
TargetSUProposed successor of SU.
SUProposed predecessor of TargetSU.