summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorSean Fertile <sfertile@ca.ibm.com>2018-06-29 17:13:58 +0000
committerSean Fertile <sfertile@ca.ibm.com>2018-06-29 17:13:58 +0000
commit3b0535b424aca711375fa4e2a25c40509d6c6ed3 (patch)
tree95a4f46d923c0c9d8b13f305fbfe6884759a1125 /llvm/test
parent8eeece38efaf0ef487ef43964a5884aa74a25286 (diff)
downloadbcm5719-llvm-3b0535b424aca711375fa4e2a25c40509d6c6ed3.tar.gz
bcm5719-llvm-3b0535b424aca711375fa4e2a25c40509d6c6ed3.zip
Extend CFGPrinter and CallPrinter with Heat Colors
Extends the CFGPrinter and CallPrinter with heat colors based on heuristics or profiling information. The colors are enabled by default and can be toggled on/off for CFGPrinter by using the option -cfg-heat-colors for both -dot-cfg[-only] and -view-cfg[-only]. Similarly, the colors can be toggled on/off for CallPrinter by using the option -callgraph-heat-colors for both -dot-callgraph and -view-callgraph. Patch by Rodrigo Caetano Rocha! Differential Revision: https://reviews.llvm.org/D40425 llvm-svn: 335996
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/Other/2007-06-05-PassID.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/Other/2007-06-05-PassID.ll b/llvm/test/Other/2007-06-05-PassID.ll
index 386e444caae..6964f2824d6 100644
--- a/llvm/test/Other/2007-06-05-PassID.ll
+++ b/llvm/test/Other/2007-06-05-PassID.ll
@@ -1,5 +1,13 @@
;RUN: opt < %s -analyze -dot-cfg-only 2>/dev/null
;RUN: opt < %s -analyze -passes=dot-cfg-only 2>/dev/null
+;RUN: opt < %s -analyze -dot-cfg-only \
+;RUN: -cfg-heat-colors=true -cfg-weights=true 2>/dev/null
+;RUN: opt < %s -analyze -dot-cfg-only \
+;RUN: -cfg-heat-colors=false -cfg-weights=false 2>/dev/null
+;RUN: opt < %s -analyze -dot-cfg \
+;RUN: -cfg-heat-colors=true -cfg-weights=true 2>/dev/null
+;RUN: opt < %s -analyze -dot-cfg \
+;RUN: -cfg-heat-colors=false -cfg-weights=false 2>/dev/null
;PR 1497
define void @foo() {
OpenPOWER on IntegriCloud