diff options
Diffstat (limited to 'llvm/test/Instrumentation/cgprofile.ll')
| -rw-r--r-- | llvm/test/Instrumentation/cgprofile.ll | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/llvm/test/Instrumentation/cgprofile.ll b/llvm/test/Instrumentation/cgprofile.ll deleted file mode 100644 index f515a511f84..00000000000 --- a/llvm/test/Instrumentation/cgprofile.ll +++ /dev/null @@ -1,28 +0,0 @@ -; RUN: opt < %s -cg-profile -S | FileCheck %s - -declare void @b() - -define void @a() !prof !1 { - call void @b() - ret void -} - -define void @freq(i1 %cond) !prof !1 { - br i1 %cond, label %A, label %B, !prof !2 -A: - call void @a(); - ret void -B: - call void @b(); - ret void -} - -!1 = !{!"function_entry_count", i64 32} -!2 = !{!"branch_weights", i32 5, i32 10} - -; CHECK: !llvm.module.flags = !{![[cgprof:[0-9]+]]} -; CHECK: ![[cgprof]] = !{i32 5, !"CG Profile", ![[prof:[0-9]+]]} -; CHECK: ![[prof]] = !{![[e0:[0-9]+]], ![[e1:[0-9]+]], ![[e2:[0-9]+]]} -; CHECK: ![[e0]] = !{void ()* @a, void ()* @b, i64 32} -; CHECK: ![[e1]] = !{void (i1)* @freq, void ()* @a, i64 11} -; CHECK: ![[e2]] = !{void (i1)* @freq, void ()* @b, i64 20} |

