mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-07 21:20:18 +00:00
![Easwaran Raman](/assets/img/avatar_default.png)
Differentiaal revision: http://reviews.llvm.org/D21546 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273301 91177308-0d34-0410-b5e6-96231b3b80d8
13 lines
450 B
LLVM
13 lines
450 B
LLVM
; Test that we annotate entire program's summary and not just this module's
|
|
; RUN: llvm-profdata merge %S/Inputs/PR28219.proftext -o %t.profdata
|
|
; RUN: opt < %s -pgo-instr-use -pgo-test-profile-file=%t.profdata -S | FileCheck %s
|
|
|
|
define i32 @bar() {
|
|
entry:
|
|
ret i32 1
|
|
}
|
|
; CHECK-DAG: {{![0-9]+}} = !{i32 1, !"ProfileSummary", {{![0-9]+}}}
|
|
; CHECK-DAG: {{![0-9]+}} = !{!"NumFunctions", i64 2}
|
|
; CHECK-DAG: {{![0-9]+}} = !{!"MaxFunctionCount", i64 3}
|
|
|