File tree Expand file tree Collapse file tree 2 files changed +4
-11
lines changed Expand file tree Collapse file tree 2 files changed +4
-11
lines changed Original file line number Diff line number Diff line change 2
2
// RUN: %clang_profgen %s -S -emit-llvm -o - | FileCheck %s --check-prefix=PROFGEN
3
3
// RUN: %clang_pgogen %s -S -emit-llvm -o - | FileCheck %s --check-prefix=PROFGEN
4
4
5
- // Testing profile use. Generate some profile file first.
6
- // RUN: rm -rf rawprof.profraw
7
- // RUN: %clang_profgen -o %t1 %s
8
- // RUN: %run %t1
9
- // RUN: llvm-profdata merge -o %t1.profdata rawprof.profraw
10
- // RUN: %clang_profuse=%t1.profdata %s -S -emit-llvm -o - | FileCheck %s --check-prefix=PROFUSE
11
- // RUN: rm -rf rawprof.profraw
12
- // RUN: %clang_pgogen -o %t2 %s
13
- // RUN: %run %t2
14
- // RUN: llvm-profdata merge -o %t2.profdata rawprof.profraw
15
- // RUN: %clang_pgouse=%t2.profdata %s -S -emit-llvm -o - | FileCheck %s --check-prefix=PROFUSE
5
+ // Testing profile use.
6
+ // RUN: %clang_pgouse=%S/Inputs/instrprof-api.c.profdata %s -S -emit-llvm -o - \
7
+ // RUN: | FileCheck %s --check-prefix=PROFUSE
8
+
16
9
#include "profile/instr_prof_interface.h"
17
10
18
11
__attribute__((noinline )) int bar () { return 4 ; }
You can’t perform that action at this time.
0 commit comments