[llvm] r317514 - Fix comment /NFC

Xinliang David Li via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 6 13:57:51 PST 2017


Author: davidxl
Date: Mon Nov  6 13:57:51 2017
New Revision: 317514

URL: http://llvm.org/viewvc/llvm-project?rev=317514&view=rev
Log:
Fix comment /NFC

Modified:
    llvm/trunk/lib/Transforms/Scalar/JumpThreading.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/JumpThreading.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/JumpThreading.cpp?rev=317514&r1=317513&r2=317514&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/JumpThreading.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/JumpThreading.cpp Mon Nov  6 13:57:51 2017
@@ -192,11 +192,12 @@ JumpThreadingPass::JumpThreadingPass(int
 //     P(cond == true ) = P(A) + P(cond == true | B) * P(B)
 //
 //  which gives us:
-//     P(A) <= P(c == true), i.e.
+//     P(A) is less than P(cond == true), i.e.
 //     P(t == true) <= P(cond == true)
 //
-//  In other words, if we know P(cond == true), we know that P(t == true)
-//  can not be greater than 1%.
+//  In other words, if we know P(cond == true) is unlikely, we know 
+//  that P(t == true) is also unlikely.
+//
 static void updatePredecessorProfileMetadata(PHINode *PN, BasicBlock *BB) {
   BranchInst *CondBr = dyn_cast<BranchInst>(BB->getTerminator());
   if (!CondBr)




More information about the llvm-commits mailing list