llvm::LoopSafetyInfo::isGuaranteedToExecute

Returns true if the instruction in a loop is guaranteed to execute at least once (under the assumption that the loop is entered).

Synopsis

Declared in <llvm/Analysis/MustExecute.h>

virtual
bool
isGuaranteedToExecute(
    Instruction const& Inst,
    DominatorTree const* DT,
    Loop const* CurLoop) const = 0;

Parameters

NameDescription
DTConcrete subclass of DominatorTreeBase that is used to compute a normal dominator tree.
CurLoopRepresents a single loop in the control flow graph. Note that not all SCCs in the CFG are necessarily loops.