From: Jakub Staszak Date: Thu, 28 Jul 2011 21:46:58 +0000 (+0000) Subject: If run with -debug give more information about Cyclic Probability. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7f1cce55b5da7ef53269426e3c64586177384dca;p=oota-llvm.git 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 --- 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"); } } }