[llvm] [CGData] Global Merge Functions (PR #112671)

Vincent Lee via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 10 22:36:04 PST 2024


================
@@ -887,6 +891,9 @@ void TargetPassConfig::addIRPasses() {
   // Convert conditional moves to conditional jumps when profitable.
   if (getOptLevel() != CodeGenOptLevel::None && !DisableSelectOptimize)
     addPass(createSelectOptimizePass());
+
+  if (EnableGlobalMergeFunc)
+    addPass(createGlobalMergeFuncPass());
----------------
thevinster wrote:

Were there any principled judgment for placing placing the pass here?

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


More information about the llvm-commits mailing list