[RISCV] emit .option directive for functions with target features which differ from...
[llvm-project.git] / llvm / test / Other / heat-colors-graphs.ll
blob38007b1a0604d8d7fa5dfd79b42d47c8d2e76c15
1 ; RUN: opt %s -passes=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 %s -passes=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
6 ; CHECK-BOTH: color="#[[#%x,]]", style={{[a-z]+}}, fillcolor="#[[#%x,]]"
7 ; CHECK-CFG:  color="#[[#%x,]]", style={{[a-z]+}}, fillcolor="#[[#%x,]]"
8 ; CHECK-CFG:  color="#[[#%x,]]", style={{[a-z]+}}, fillcolor="#[[#%x,]]"
10 define void @f(i32) {
11 entry:
12   %check = icmp sgt i32 %0, 0
13   br i1 %check, label %if, label %exit, !prof !0
15 if:                     ; preds = %entry
16   br label %exit
17 exit:                   ; preds = %entry, %if
18   ret void
21 !0 = !{!"branch_weights", i32 1, i32 200}