2016-08-02 04:28:26 +08:00
|
|
|
// RUN: rm -fr %t.prof
|
2017-01-11 04:07:01 +08:00
|
|
|
// RUN: %clangxx_pgogen=%t.prof/ -o %t.gen -mllvm -do-comdat-renaming=true -O2 %S/../Inputs/comdat_rename_1.cc %S/../Inputs/comdat_rename_2.cc
|
2016-09-24 01:40:40 +08:00
|
|
|
// RUN: %run %t.gen
|
2016-08-02 04:28:26 +08:00
|
|
|
// RUN: llvm-profdata merge -o %t.profdata %t.prof/
|
2017-01-11 04:07:01 +08:00
|
|
|
// RUN: %clangxx_profuse=%t.profdata -O2 -mllvm -do-comdat-renaming=true -emit-llvm -S %S/../Inputs/comdat_rename_1.cc -o - | FileCheck %S/../Inputs/comdat_rename_1.cc
|
|
|
|
// RUN: %clangxx_profuse=%t.profdata -O2 -mllvm -do-comdat-renaming=true -emit-llvm -S %S/../Inputs/comdat_rename_2.cc -o - | FileCheck %S/../Inputs/comdat_rename_2.cc
|