[PATCH] D17115: Define the ThinLTO Pipeline

Mandeep Singh Grang via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 10 17:05:28 PST 2016


mgrang added a subscriber: mgrang.

================
Comment at: lib/Transforms/IPO/PassManagerBuilder.cpp:363
@@ +362,3 @@
+
+    // Promote any localized global vars
+    MPM.add(createPromoteMemoryToRegisterPass());
----------------
Period required at the end of comment.

================
Comment at: lib/Transforms/IPO/PassManagerBuilder.cpp:433
@@ +432,3 @@
+    // Remove dead fns and globals. Removing unreferenced functions could lead
+    // to more opportunities for globalopt
+    MPM.add(createGlobalDCEPass());
----------------
Period required at the end of comment.

================
Comment at: lib/Transforms/IPO/PassManagerBuilder.cpp:436
@@ +435,3 @@
+    MPM.add(createGlobalOptimizerPass());
+    // Remove dead fns and globals after globalopt
+    MPM.add(createGlobalDCEPass());
----------------
Period required at the end of comment.


http://reviews.llvm.org/D17115





More information about the llvm-commits mailing list