ΒΆbool setLoopEstimatedTripCount(
llvm::Loop* L,
unsigned int EstimatedTripCount,
unsigned int EstimatedLoopInvocationWeight)
bool setLoopEstimatedTripCount(
llvm::Loop* L,
unsigned int EstimatedTripCount,
unsigned int EstimatedLoopInvocationWeight)
Description
Set a loop's branch weight metadata to reflect that loop has \p EstimatedTripCount iterations and \p EstimatedLoopInvocationWeight exits through latch. Returns true if metadata is successfully updated, false otherwise. Note that loop must have a latch block which controls loop exit in order to succeed.
Declared at: llvm/include/llvm/Transforms/Utils/LoopUtils.h:323
Parameters
- llvm::Loop* L
- unsigned int EstimatedTripCount
- unsigned int EstimatedLoopInvocationWeight