[llvm] [CodeGen] Port GlobalMerge to new pass manager (PR #77474)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 17 18:19:03 PST 2024


================
@@ -290,6 +291,9 @@ template <typename DerivedT> class CodeGenPassBuilder {
                                    inconvertibleErrorCode());
   }
 
+  /// Target can override this to add GlobalMergePass before all IR passes.
+  void addGlobalMergePass(AddIRPass &) const {}
----------------
paperchalice wrote:

It is a CodeGen only IR pass, but some tests run this pass in `opt`.

https://github.com/llvm/llvm-project/pull/77474


More information about the llvm-commits mailing list