1; RUN: opt %s -dot-cfg -cfg-heat-colors -cfg-dot-filename-prefix=%t -disable-output 2; RUN: FileCheck %s -input-file=%t.f.dot --check-prefixes=CHECK-CFG,CHECK-BOTH 3; RUN: opt -enable-new-pm=0 %s -dot-callgraph -callgraph-heat-colors -callgraph-dot-filename-prefix=%t -disable-output 4; RUN: FileCheck %s -input-file=%t.callgraph.dot --check-prefix=CHECK-BOTH 5 6; CHECK-BOTH: color="#{{[(a-z)(0-9)]+}}", style={{[a-z]+}}, fillcolor="#{{[(a-z)(0-9)]+}}" 7; CHECK-CFG: color="#{{[(a-z)(0-9)]+}}", style={{[a-z]+}}, fillcolor="#{{[(a-z)(0-9)]+}}" 8; CHECK-CFG: color="#{{[(a-z)(0-9)]+}}", style={{[a-z]+}}, fillcolor="#{{[(a-z)(0-9)]+}}" 9 10define void @f(i32) { 11entry: 12 %check = icmp sgt i32 %0, 0 13 br i1 %check, label %if, label %exit, !prof !0 14 15if: ; preds = %entry 16 br label %exit 17exit: ; preds = %entry, %if 18 ret void 19} 20 21!0 = !{!"branch_weights", i32 1, i32 200} 22