summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/SizeOpts.cpp
diff options
context:
space:
mode:
authorHiroshi Yamauchi <yamauchi@google.com>2019-12-03 15:02:37 -0800
committerHiroshi Yamauchi <yamauchi@google.com>2019-12-04 09:35:50 -0800
commit62d429972e50d1437a3fb43663218a7b443f0fc8 (patch)
tree026585814b25919ab9a7e4ac9f5751984a46c39d /llvm/lib/Transforms/Utils/SizeOpts.cpp
parent61e54fd60c4388602cb029c984353b1f4319c1ac (diff)
downloadbcm5719-llvm-62d429972e50d1437a3fb43663218a7b443f0fc8.tar.gz
bcm5719-llvm-62d429972e50d1437a3fb43663218a7b443f0fc8.zip
[PGO][PGSO] Distinguish queries from unit tests and explicitly enable for the existing IR passes only. NFC.
Summary: This is one more prep step necessary before the code gen pass instrumentation code could go in. Reviewers: davidxl Subscribers: hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D70988
Diffstat (limited to 'llvm/lib/Transforms/Utils/SizeOpts.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/SizeOpts.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Utils/SizeOpts.cpp b/llvm/lib/Transforms/Utils/SizeOpts.cpp
index 555073af0b2..cab375225e8 100644
--- a/llvm/lib/Transforms/Utils/SizeOpts.cpp
+++ b/llvm/lib/Transforms/Utils/SizeOpts.cpp
@@ -28,6 +28,11 @@ cl::opt<bool> PGSOColdCodeOnly(
cl::desc("Apply the profile guided size optimizations only "
"to cold code."));
+cl::opt<bool> PGSOIRPassOrTestOnly(
+ "pgso-ir-pass-or-test-only", cl::Hidden, cl::init(true),
+ cl::desc("Apply the profile guided size optimizations only"
+ "to the IR passes or tests."));
+
cl::opt<bool> ForcePGSO(
"force-pgso", cl::Hidden, cl::init(false),
cl::desc("Force the (profiled-guided) size optimizations. "));
OpenPOWER on IntegriCloud