]> granicus.if.org Git - llvm/commitdiff
revert r289669 which breaks bots
authorDehao Chen <dehao@google.com>
Wed, 14 Dec 2016 17:23:16 +0000 (17:23 +0000)
committerDehao Chen <dehao@google.com>
Wed, 14 Dec 2016 17:23:16 +0000 (17:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@289676 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Transforms/IPO/PassManagerBuilder.h
lib/Transforms/IPO/PassManagerBuilder.cpp

index 21f36b3b08fd0747511734271d3ab69fbeccac4f..adc41793cbf1463914da4b78ac512603a02ce545 100644 (file)
@@ -149,8 +149,6 @@ public:
   std::string PGOInstrGen;
   /// Path of the profile data file.
   std::string PGOInstrUse;
-  /// Path of the sample Profile data file.
-  std::string PGOSampleUse;
 
 private:
   /// ExtensionList - This is list of all of the extensions that are registered.
index a663eedc4f44217415383b3084bcec0b934c059b..254a7461980f59a02de9011197b9153154a683b5 100644 (file)
@@ -383,11 +383,6 @@ void PassManagerBuilder::addFunctionSimplificationPasses(
 
 void PassManagerBuilder::populateModulePassManager(
     legacy::PassManagerBase &MPM) {
-  if (!PGOSampleUse.empty()) {
-    MPM.add(createPruneEHPass());
-    MPM.add(createSampleProfileLoaderPass(PGOSampleUse));
-  }
-
   // Allow forcing function attributes as a debugging and tuning aid.
   MPM.add(createForceFunctionAttrsLegacyPass());