[PATCH] D22897: Add EP_CGSCCOptimizerLate extension point to PassManagerBuilder

David Majnemer via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 27 20:36:29 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL276953: Add EP_CGSCCOptimizerLate extension point to PassManagerBuilder (authored by majnemer).

Changed prior to commit:
  https://reviews.llvm.org/D22897?vs=65861&id=65862#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D22897

Files:
  llvm/trunk/include/llvm/Transforms/IPO/PassManagerBuilder.h
  llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp

Index: llvm/trunk/include/llvm/Transforms/IPO/PassManagerBuilder.h
===================================================================
--- llvm/trunk/include/llvm/Transforms/IPO/PassManagerBuilder.h
+++ llvm/trunk/include/llvm/Transforms/IPO/PassManagerBuilder.h
@@ -100,6 +100,11 @@
     /// peephole optimizations similar to the instruction combiner. These passes
     /// will be inserted after each instance of the instruction combiner pass.
     EP_Peephole,
+
+    /// EP_CGSCCOptimizerLate - This extension point allows adding CallGraphSCC
+    /// passes at the end of the main CallGraphSCC passes and before any
+    /// function simplification passes run by CGPassManager.
+    EP_CGSCCOptimizerLate,
   };
 
   /// The Optimization Level - Specify the basic optimization level.
Index: llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp
===================================================================
--- llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp
+++ llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp
@@ -440,6 +440,7 @@
   if (OptLevel > 2)
     MPM.add(createArgumentPromotionPass()); // Scalarize uninlined fn args
 
+  addExtensionsToPM(EP_CGSCCOptimizerLate, MPM);
   addFunctionSimplificationPasses(MPM);
 
   // FIXME: This is a HACK! The inliner pass above implicitly creates a CGSCC


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22897.65862.patch
Type: text/x-patch
Size: 1322 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160728/dca30457/attachment.bin>


More information about the llvm-commits mailing list