diff options
author | Rafael Auler <rafaelauler@fb.com> | 2022-05-20 19:43:07 -0700 |
---|---|---|
committer | Rafael Auler <rafaelauler@fb.com> | 2022-07-11 17:30:00 -0700 |
commit | 3332904ad6fad848a77c46d0432e8b55a10c1079 (patch) | |
tree | c2efe8064b96de8c1759976b95219bf389f1398d /bolt/lib/Utils/CommandLineOpts.cpp | |
parent | 3508ced6ea239d17b2f4a79a91b8398d0d1ac514 (diff) | |
download | llvm-3332904ad6fad848a77c46d0432e8b55a10c1079.zip llvm-3332904ad6fad848a77c46d0432e8b55a10c1079.tar.gz llvm-3332904ad6fad848a77c46d0432e8b55a10c1079.tar.bz2 |
[BOLT] Increase coverage of shrink wrapping [3/5]
Add the option to run -equalize-bb-counts before shrink
wrapping to avoid unnecessarily optimizing some CFGs where profile is
inaccurate but we can prove two blocks have the same frequency.
Reviewed By: Amir
Differential Revision: https://reviews.llvm.org/D126113
Diffstat (limited to 'bolt/lib/Utils/CommandLineOpts.cpp')
-rw-r--r-- | bolt/lib/Utils/CommandLineOpts.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bolt/lib/Utils/CommandLineOpts.cpp b/bolt/lib/Utils/CommandLineOpts.cpp index dde84e4..fbaaf16 100644 --- a/bolt/lib/Utils/CommandLineOpts.cpp +++ b/bolt/lib/Utils/CommandLineOpts.cpp @@ -73,6 +73,12 @@ EnableBAT("enable-bat", cl::ZeroOrMore, cl::cat(BoltCategory)); +cl::opt<bool> EqualizeBBCounts( + "equalize-bb-counts", + cl::desc("use same count for BBs that should have equivalent count (used " + "in non-LBR and shrink wrapping)"), + cl::ZeroOrMore, cl::init(false), cl::Hidden, cl::cat(BoltOptCategory)); + cl::opt<bool> RemoveSymtab("remove-symtab", cl::desc("Remove .symtab section"), cl::cat(BoltCategory)); |