Remove AutoFDO profile handling for GCC's LIPO. NFC.
authorDiego Novillo <dnovillo@google.com>
Mon, 5 Oct 2015 21:08:05 +0000 (21:08 +0000)
committerDiego Novillo <dnovillo@google.com>
Mon, 5 Oct 2015 21:08:05 +0000 (21:08 +0000)
Given the work we are doing on ThinLTO, we will never need to support
module groups and working sets in GCC's implementation of LIPO. These
are currently dead code, and will continue to be so.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249351 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ProfileData/SampleProfReader.h
lib/ProfileData/SampleProfReader.cpp

index 770d25ea52a616ccf0294d8d61a0ceba1e5e31b3..87c871f855b353a2efed9e38cda0baa63fac7b01 100644 (file)
@@ -224,8 +224,6 @@ protected:
                                  uint64_t Count);
   std::error_code readOneFunctionProfile(const SourceStack &Stack, bool Update);
   std::error_code readFunctionProfiles();
-  std::error_code readModuleGroup();
-  std::error_code readWorkingSet();
   std::error_code skipNextWord();
   template <typename T> ErrorOr<T> readNumber();
   ErrorOr<StringRef> readString();
index 9b579e6319d4eeb39a3cd2d11bc282be1c63fc97..94f87996bea57fe58e930ff5b27d4e0a2f105bb2 100644 (file)
@@ -671,16 +671,6 @@ SampleProfileReaderGCC::readOneFunctionProfile(const SourceStack &Stack,
   return sampleprof_error::success;
 }
 
-std::error_code SampleProfileReaderGCC::readModuleGroup() {
-  // FIXME(dnovillo) - Module support still not implemented.
-  return sampleprof_error::not_implemented;
-}
-
-std::error_code SampleProfileReaderGCC::readWorkingSet() {
-  // FIXME(dnovillo) - Working sets still not implemented.
-  return sampleprof_error::not_implemented;
-}
-
 /// \brief Read a GCC AutoFDO profile.
 ///
 /// This format is generated by the Linux Perf conversion tool at
@@ -694,18 +684,6 @@ std::error_code SampleProfileReaderGCC::read() {
   if (std::error_code EC = readFunctionProfiles())
     return EC;
 
-// FIXME(dnovillo) - Module groups and working set support are not
-// yet implemented.
-#if 0
-  // Read the module group file.
-  if (std::error_code EC = readModuleGroup())
-    return EC;
-
-  // Read the working set.
-  if (std::error_code EC = readWorkingSet())
-    return EC;
-#endif
-
   return sampleprof_error::success;
 }