ΒΆOptional<unsigned int> getLoopEstimatedTripCount(
llvm::Loop* L)
Optional<unsigned int> getLoopEstimatedTripCount(
llvm::Loop* L)
Description
Get a loop's estimated trip count based on branch weight metadata. Returns 0 when the count is estimated to be 0, or None when a meaningful estimate can not be made.
Declared at: llvm/include/llvm/Transforms/Utils/LoopUtils.h:267
Parameters
- llvm::Loop* L