llvm::ScheduleDAGInstrs::canAddEdge

True if an edge can be added from PredSU to SuccSU without creating a cycle.

Synopsis

Declared in <llvm/CodeGen/ScheduleDAGInstrs.h>

bool
canAddEdge(
    SUnit* SuccSU,
    SUnit* PredSU);

Return Value

True if the edge can be added without creating a cycle.

Parameters

NameDescription
SuccSUCandidate successor scheduling unit.
PredSUCandidate predecessor scheduling unit.