summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/JumpThreading.cpp
diff options
context:
space:
mode:
authorXinliang David Li <davidxl@google.com>2017-11-06 21:57:51 +0000
committerXinliang David Li <davidxl@google.com>2017-11-06 21:57:51 +0000
commita531f189fcb98171b6fe292eb8d01695ed3471fb (patch)
tree201368eee20bf9e541cf7d0f8dde3cac4adf2ede /llvm/lib/Transforms/Scalar/JumpThreading.cpp
parenta42ed3e3615131064aae67d2acc592af67f8f56b (diff)
downloadbcm5719-llvm-a531f189fcb98171b6fe292eb8d01695ed3471fb.tar.gz
bcm5719-llvm-a531f189fcb98171b6fe292eb8d01695ed3471fb.zip
Fix comment /NFC
llvm-svn: 317514
Diffstat (limited to 'llvm/lib/Transforms/Scalar/JumpThreading.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/JumpThreading.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Scalar/JumpThreading.cpp b/llvm/lib/Transforms/Scalar/JumpThreading.cpp
index ade4fbbcb6f..e6cab3f34cf 100644
--- a/llvm/lib/Transforms/Scalar/JumpThreading.cpp
+++ b/llvm/lib/Transforms/Scalar/JumpThreading.cpp
@@ -192,11 +192,12 @@ JumpThreadingPass::JumpThreadingPass(int T) {
// 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)
OpenPOWER on IntegriCloud