llvm::simplifyLoopIVs

Simplify users of induction variables within this loop.

Synopsis

Declared in <llvm/Transforms/Utils/SimplifyIndVar.h>

bool
simplifyLoopIVs(
    Loop* L,
    ScalarEvolution* SE,
    DominatorTree* DT,
    LoopInfo* LI,
    TargetTransformInfo const* TTI,
    SmallVectorImpl<WeakTrackingVH>& Dead);

Description

This does not actually change or add IVs.

Return Value

True if any induction-variable users were simplified.

Parameters

NameDescription
LLoop whose induction-variable users may be simplified.
SEScalarEvolution used to analyze IV recurrences.
DTDominator tree used by simplification.
LILoop info for the function containing L.
TTITarget transform info used for profitability checks.
DeadReceives instructions that become dead and may be deleted.