[PATCH] D28460: getLoopEstimatedTripCount should really be called getLoopEstimatedBackedgeTakeCount.
Hal Finkel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 9 10:18:36 PST 2017
hfinkel added a comment.
How do we represent a trip-count-zero estimate?
================
Comment at: include/llvm/Transforms/Utils/LoopUtils.h:464
-/// \brief 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.
-Optional<unsigned> getLoopEstimatedTripCount(Loop *L);
+/// \brief Get a loop's estimated BE taken count based on branch weight
+/// metadata. Returns 0 when the count is estimated to be 0, or None when a
----------------
BE taken count -> backedge-taken count
https://reviews.llvm.org/D28460
More information about the llvm-commits
mailing list