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;

Return Value

True if Inst is guaranteed to execute at least once.

Parameters

NameDescription
InstInstruction to check.
DTDominator tree for the function containing CurLoop.
CurLoopLoop assumed to be entered.