Compute a profitable peel count for loop L and store it in PP.

Synopsis

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

void
computePeelCount(
    Loop* L,
    unsigned int LoopSize,
    TargetTransformInfo::PeelingPreferences& PP,
    unsigned int TripCount,
    DominatorTree& DT,
    ScalarEvolution& SE,
    TargetTransformInfo const& TTI,
    AssumptionCache* AC = nullptr,
    unsigned int Threshold = UINT_MAX);

Parameters

Name

Description

L

Loop for which to compute a peel count.

LoopSize

Estimated size of the loop body.

PP

Peeling preferences updated with the chosen peel count and flags.

TripCount

Known trip count of L, or 0 if unknown.

DT

Dominator tree used by profitability analysis.

SE

ScalarEvolution used by profitability analysis.

TTI

Target transform info used for cost checks.

AC

Optional assumption cache used by simplifications.

Threshold

Maximum allowed size for the peeled loop.

Created with MrDocs