From 7f1cce55b5da7ef53269426e3c64586177384dca Mon Sep 17 00:00:00 2001 From: Jakub Staszak Date: Thu, 28 Jul 2011 21:46:58 +0000 Subject: [PATCH] If run with -debug give more information about Cyclic Probability. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136403 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Analysis/BlockFrequencyImpl.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/llvm/Analysis/BlockFrequencyImpl.h b/include/llvm/Analysis/BlockFrequencyImpl.h index 9634ede1445..c0bc1015999 100644 --- a/include/llvm/Analysis/BlockFrequencyImpl.h +++ b/include/llvm/Analysis/BlockFrequencyImpl.h @@ -248,6 +248,8 @@ class BlockFrequencyImpl { assert(Res <= UINT32_MAX); CycleProb[Head] += (uint32_t) Res; + DEBUG(dbgs() << " CycleProb[" << getBlockName(Head) << "] += " << Res + << " --> " << CycleProb[Head] << "\n"); } } } -- 2.34.1