diff options
author | Wei Mi <wmi@google.com> | 2019-01-16 23:19:02 +0000 |
---|---|---|
committer | Wei Mi <wmi@google.com> | 2019-01-16 23:19:02 +0000 |
commit | c876e3d42be916a405fcbbc2fa75ecef9de95e11 (patch) | |
tree | 703998216d0bb3b779230ce2acc839993b51c9f9 /llvm/test/Transforms | |
parent | 931779761e7e8852d6cbdf7a5cd55b1ccf287be1 (diff) | |
download | bcm5719-llvm-c876e3d42be916a405fcbbc2fa75ecef9de95e11.tar.gz bcm5719-llvm-c876e3d42be916a405fcbbc2fa75ecef9de95e11.zip |
[PGO] Make pgo related options in opt more consistent.
Currently we have pgo options defined in PassManagerBuilder.cpp only for
instrument pgo, but not for sample pgo. We also have pgo options defined
in NewPMDriver.cpp in opt only for new pass manager and for all kinds of
pgo. They have some inconsistency.
To make the options more consistent and make tests writing easier, the
patch let old pass manager to share the same pgo options with new pass
manager in opt, and removes the options in PassManagerBuilder.cpp.
Differential Revision: https://reviews.llvm.org/D56749
llvm-svn: 351392
Diffstat (limited to 'llvm/test/Transforms')
-rw-r--r-- | llvm/test/Transforms/PGOProfile/preinline.ll | 4 | ||||
-rw-r--r-- | llvm/test/Transforms/SampleProfile/function_metadata.ll | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/llvm/test/Transforms/PGOProfile/preinline.ll b/llvm/test/Transforms/PGOProfile/preinline.ll index e0deafd7876..277baf99c33 100644 --- a/llvm/test/Transforms/PGOProfile/preinline.ll +++ b/llvm/test/Transforms/PGOProfile/preinline.ll @@ -1,5 +1,5 @@ -; RUN: opt < %s -O2 -profile-generate -S | FileCheck %s --check-prefix=GEN -; RUN: opt < %s -O2 -profile-generate -profile-generate-file=default.profraw -S | FileCheck %s --check-prefix=GEN +; RUN: opt < %s -O2 -pgo-kind=pgo-instr-gen-pipeline -S | FileCheck %s --check-prefix=GEN +; RUN: opt < %s -O2 -pgo-kind=pgo-instr-gen-pipeline -profile-file=default.profraw -S | FileCheck %s --check-prefix=GEN target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" diff --git a/llvm/test/Transforms/SampleProfile/function_metadata.ll b/llvm/test/Transforms/SampleProfile/function_metadata.ll index dca6660415e..0e772e86f72 100644 --- a/llvm/test/Transforms/SampleProfile/function_metadata.ll +++ b/llvm/test/Transforms/SampleProfile/function_metadata.ll @@ -1,5 +1,5 @@ -; RUN: opt < %s -passes='thinlto-pre-link<O2>' -pgo-kind=new-pm-pgo-sample-use-pipeline -profile-file=%S/Inputs/function_metadata.prof -S | FileCheck %s -; RUN: opt < %s -passes='thinlto-pre-link<O2>' -pgo-kind=new-pm-pgo-sample-use-pipeline -profile-file=%S/Inputs/function_metadata.compact.afdo -S | FileCheck %s +; RUN: opt < %s -passes='thinlto-pre-link<O2>' -pgo-kind=pgo-sample-use-pipeline -profile-file=%S/Inputs/function_metadata.prof -S | FileCheck %s +; RUN: opt < %s -passes='thinlto-pre-link<O2>' -pgo-kind=pgo-sample-use-pipeline -profile-file=%S/Inputs/function_metadata.compact.afdo -S | FileCheck %s ; Tests whether the functions in the inline stack are added to the ; function_entry_count metadata. |