[RISCV] emit .option directive for functions with target features which differ from...
[llvm-project.git] / llvm / test / Other / cfg-printer-branch-weights.ll
blobc8d57ecbbc2b223a11c314f371160c57e7f7b7a5
1 ;RUN: opt < %s -passes=dot-cfg -cfg-weights -cfg-raw-weights -cfg-dot-filename-prefix=%t 2>/dev/null > /dev/null
2 ;RUN: FileCheck %s -input-file=%t.f.dot
4 define void @f(i32) {
5 entry:
6   %check = icmp sgt i32 %0, 0
7   br i1 %check, label %if, label %exit, !prof !0
9 ; CHECK: label="W:7"
10 ; CHECK-NOT: ["];
11 if:                     ; preds = %entry
12   br label %exit
13 ; CHECK: label="W:1600"
14 ; CHECK-NOT: ["];
15 exit:                   ; preds = %entry, %if
16   ret void
19 !0 = !{!"branch_weights", i32 1, i32 200}