]> granicus.if.org Git - llvm/commitdiff
Remove stale comment. NFC.
authorMichael Kuperstein <mkuper@google.com>
Sat, 3 Dec 2016 01:59:13 +0000 (01:59 +0000)
committerMichael Kuperstein <mkuper@google.com>
Sat, 3 Dec 2016 01:59:13 +0000 (01:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288572 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Utils/LoopUtils.cpp

index fd35cd05c625966d26087e1b6a4fc789df408193..09e9f1ddc7fec80bb5fc54f8d950a2b1bdaf8eee 100644 (file)
@@ -1086,9 +1086,6 @@ Optional<unsigned> llvm::getLoopEstimatedTripCount(Loop *L) {
   // To estimate the number of times the loop body was executed, we want to
   // know the number of times the backedge was taken, vs. the number of times
   // we exited the loop.
-  // The branch weights give us almost what we want, since they were adjusted
-  // from the raw counts to provide a better probability estimate. Remove
-  // the adjustment by subtracting 1 from both weights.
   uint64_t TrueVal, FalseVal;
   if (!LatchBR->extractProfMetadata(TrueVal, FalseVal))
     return None;