summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2014-01-31 22:32:32 +0000
committerChandler Carruth <chandlerc@gmail.com>2014-01-31 22:32:32 +0000
commit394e34f5c2ed7d33b81dc3abdc7687af0b7ceb1a (patch)
tree964ff6a36bd0254c7ee1b7f1f46b8222ae55e0cc /llvm
parentbd63b3385429f4b5266048a64429cf81a64914b6 (diff)
downloadbcm5719-llvm-394e34f5c2ed7d33b81dc3abdc7687af0b7ceb1a.tar.gz
bcm5719-llvm-394e34f5c2ed7d33b81dc3abdc7687af0b7ceb1a.zip
[inliner] Print out extra stats about the cost, threshold, and vector
bonus in the inline cost analysis. Split out of a patch by Dario Domizioli to commit separately. llvm-svn: 200586
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Analysis/IPA/InlineCost.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/IPA/InlineCost.cpp b/llvm/lib/Analysis/IPA/InlineCost.cpp
index 453658386d7..371f706cef0 100644
--- a/llvm/lib/Analysis/IPA/InlineCost.cpp
+++ b/llvm/lib/Analysis/IPA/InlineCost.cpp
@@ -1178,6 +1178,9 @@ void CallAnalyzer::dump() {
DEBUG_PRINT_STAT(SROACostSavings);
DEBUG_PRINT_STAT(SROACostSavingsLost);
DEBUG_PRINT_STAT(ContainsNoDuplicateCall);
+ DEBUG_PRINT_STAT(Cost);
+ DEBUG_PRINT_STAT(Threshold);
+ DEBUG_PRINT_STAT(VectorBonus);
#undef DEBUG_PRINT_STAT
}
#endif
OpenPOWER on IntegriCloud