mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
6d3e9c36e0
This patch introduces the heat coloring of the Control Flow Graph which is based on the relative "hotness" of each BB. The patch is a part of sequence of three patches, related to graphs Heat Coloring. Reviewers: rcorcs, apilipenko, davidxl, sfertile, fedor.sergeev, eraman, bollu Differential Revision: https://reviews.llvm.org/D77161
21 lines
625 B
LLVM
21 lines
625 B
LLVM
;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() {
|
|
entry:
|
|
br label %return
|
|
|
|
return: ; preds = %entry
|
|
ret void
|
|
}
|
|
|