[llvm] r288572 - Remove stale comment. NFC.
Michael Kuperstein via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 2 17:59:13 PST 2016
Author: mkuper
Date: Fri Dec 2 19:59:13 2016
New Revision: 288572
URL: http://llvm.org/viewvc/llvm-project?rev=288572&view=rev
Log:
Remove stale comment. NFC.
Modified:
llvm/trunk/lib/Transforms/Utils/LoopUtils.cpp
Modified: llvm/trunk/lib/Transforms/Utils/LoopUtils.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/LoopUtils.cpp?rev=288572&r1=288571&r2=288572&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/LoopUtils.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/LoopUtils.cpp Fri Dec 2 19:59:13 2016
@@ -1086,9 +1086,6 @@ Optional<unsigned> llvm::getLoopEstimate
// 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;
More information about the llvm-commits
mailing list