[PATCH] D19185: Remove interface to get/set MaxFunctionCount
Easwaran Raman via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 20 14:43:41 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL273203: Remove interface to get/set MaxFunctionCount (authored by eraman).
Changed prior to commit:
http://reviews.llvm.org/D19185?vs=53970&id=61311#toc
Repository:
rL LLVM
http://reviews.llvm.org/D19185
Files:
llvm/trunk/include/llvm/IR/Module.h
llvm/trunk/lib/IR/Module.cpp
Index: llvm/trunk/include/llvm/IR/Module.h
===================================================================
--- llvm/trunk/include/llvm/IR/Module.h
+++ llvm/trunk/include/llvm/IR/Module.h
@@ -746,12 +746,6 @@
/// @name Utility functions for querying and setting PGO summary
/// @{
- /// \brief Set maximum function count in PGO mode
- void setMaximumFunctionCount(uint64_t);
-
- /// \brief Returns maximum function count in PGO mode
- Optional<uint64_t> getMaximumFunctionCount();
-
/// \brief Attach profile summary metadata to this module.
void setProfileSummary(Metadata *M);
Index: llvm/trunk/lib/IR/Module.cpp
===================================================================
--- llvm/trunk/lib/IR/Module.cpp
+++ llvm/trunk/lib/IR/Module.cpp
@@ -511,18 +511,6 @@
addModuleFlag(ModFlagBehavior::Error, "PIE Level", PL);
}
-void Module::setMaximumFunctionCount(uint64_t Count) {
- addModuleFlag(ModFlagBehavior::Error, "MaxFunctionCount", Count);
-}
-
-Optional<uint64_t> Module::getMaximumFunctionCount() {
- auto *Val =
- cast_or_null<ConstantAsMetadata>(getModuleFlag("MaxFunctionCount"));
- if (!Val)
- return None;
- return cast<ConstantInt>(Val->getValue())->getZExtValue();
-}
-
void Module::setProfileSummary(Metadata *M) {
addModuleFlag(ModFlagBehavior::Error, "ProfileSummary", M);
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19185.61311.patch
Type: text/x-patch
Size: 1345 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160620/5af3dacd/attachment.bin>
More information about the llvm-commits
mailing list