[llvm] r273203 - Remove interface to get/set MaxFunctionCount

Easwaran Raman via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 20 14:36:38 PDT 2016


Author: eraman
Date: Mon Jun 20 16:36:38 2016
New Revision: 273203

URL: http://llvm.org/viewvc/llvm-project?rev=273203&view=rev
Log:
Remove interface to get/set MaxFunctionCount

Differential revision: http://reviews.llvm.org/D19185

Modified:
    llvm/trunk/include/llvm/IR/Module.h
    llvm/trunk/lib/IR/Module.cpp

Modified: llvm/trunk/include/llvm/IR/Module.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/Module.h?rev=273203&r1=273202&r2=273203&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/Module.h (original)
+++ llvm/trunk/include/llvm/IR/Module.h Mon Jun 20 16:36:38 2016
@@ -746,12 +746,6 @@ public:
   /// @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);
 

Modified: llvm/trunk/lib/IR/Module.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/Module.cpp?rev=273203&r1=273202&r2=273203&view=diff
==============================================================================
--- llvm/trunk/lib/IR/Module.cpp (original)
+++ llvm/trunk/lib/IR/Module.cpp Mon Jun 20 16:36:38 2016
@@ -511,18 +511,6 @@ void Module::setPIELevel(PIELevel::Level
   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);
 }




More information about the llvm-commits mailing list