Debian Codegraph @

clang/test/CodeGen/pgo-force-function-attrs.ll

raw
1 ; RUN: %clang_cc1 -O2 -mllvm -pgo-cold-func-opt=optsize -fprofile-sample-use=%S/Inputs/pgo-sample.prof %s -emit-llvm -o - | FileCheck %s --check-prefix=OPTSIZE
2 ; Check that no profile means no optsize
3 ; RUN: %clang_cc1 -O2 -mllvm -pgo-cold-func-opt=optsize %s -emit-llvm -o - | FileCheck %s --check-prefix=NONE
4 ; Check that no -pgo-cold-func-opt=optsize means no optsize
5 ; RUN: %clang_cc1 -O2 -fprofile-sample-use=%S/Inputs/pgo-sample.prof %s -emit-llvm -o - | FileCheck %s --check-prefix=NONE
6
7 ; NONE-NOT: optsize
8 ; OPTSIZE: optsize
9
10 define void @f() cold {
11 ret void
12 }