You've already forked linux-packaging-mono
Imported Upstream version 6.0.0.172
Former-commit-id: f3cc9b82f3e5bd8f0fd3ebc098f789556b44e9cd
This commit is contained in:
parent
8016999e4d
commit
64ac736ec5
15
external/llvm/test/Transforms/SampleProfile/summary.ll
vendored
Normal file
15
external/llvm/test/Transforms/SampleProfile/summary.ll
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
; Test that we annotate entire program's summary to IR.
|
||||
; RUN: opt < %s -sample-profile -sample-profile-file=%S/Inputs/summary.prof -S | FileCheck %s
|
||||
; RUN: opt < %s -sample-profile -sample-profile-file=%S/Inputs/summary.prof -S | opt -sample-profile -sample-profile-file=%S/Inputs/summary.prof -S | FileCheck %s
|
||||
|
||||
define i32 @bar() #0 !dbg !1 {
|
||||
entry:
|
||||
ret i32 1, !dbg !2
|
||||
}
|
||||
|
||||
; CHECK-DAG: {{![0-9]+}} = !{i32 1, !"ProfileSummary", {{![0-9]+}}}
|
||||
; CHECK-DAG: {{![0-9]+}} = !{!"NumFunctions", i64 2}
|
||||
; CHECK-DAG: {{![0-9]+}} = !{!"MaxFunctionCount", i64 3}
|
||||
|
||||
!1 = distinct !DISubprogram(name: "bar")
|
||||
!2 = !DILocation(line: 2, scope: !2)
|
Reference in New Issue
Block a user