Returns loop size estimation for an unrolled loop with the given unroll count and the unrolling configuration specified by UP.

Synopsis

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

uint64_t
getUnrolledLoopSize(
    TargetTransformInfo::UnrollingPreferences const& UP,
    unsigned int Count) const;

Return Value

Estimated size of the loop after unrolling by Count.

Parameters

Name

Description

UP

Unrolling preferences supplying the back‐edge instruction count.

Count

Unroll factor used to scale the estimated body size.

Created with MrDocs