aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopUtils.cpp
diff options
context:
space:
mode:
authorEvgeniy Brevnov <evgueni.brevnov@gmail.com>2020-01-20 17:04:12 +0700
committerEvgeniy Brevnov <evgueni.brevnov@gmail.com>2020-01-20 17:10:10 +0700
commitcfe97681cdbf8c8c23caad80adeb6551911ccd6e (patch)
treec8506b5b4e485d36683fd1cfa8c3e725a48552a4 /llvm/lib/Transforms/Utils/LoopUtils.cpp
parent952a540b21993e44088ff2c345df884caabbb8c0 (diff)
downloadllvm-cfe97681cdbf8c8c23caad80adeb6551911ccd6e.zip
llvm-cfe97681cdbf8c8c23caad80adeb6551911ccd6e.tar.gz
llvm-cfe97681cdbf8c8c23caad80adeb6551911ccd6e.tar.bz2
[NFC][LoopUtils] Minor change in comment according to review D71990.
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/LoopUtils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopUtils.cpp b/llvm/lib/Transforms/Utils/LoopUtils.cpp
index 98e4ca5..c9de434 100644
--- a/llvm/lib/Transforms/Utils/LoopUtils.cpp
+++ b/llvm/lib/Transforms/Utils/LoopUtils.cpp
@@ -727,7 +727,7 @@ Optional<unsigned> llvm::getLoopEstimatedTripCount(Loop *L) {
return None;
// Estimated backedge taken count is a ratio of the backedge taken weight by
- // the the edge exiting weight, rounded to nearest.
+ // the weight of the edge exiting the loop, rounded to nearest.
uint64_t BackedgeTakenCount =
llvm::divideNearest(BackedgeTakenWeight, LatchExitWeight);
// Estimated trip count is one plus estimated backedge taken count.