[llvm] [MergeFunctions] Add support to run the pass over a set of function pointers (PR #111045)

Rafael Eckstein via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 27 12:48:33 PST 2024


================
@@ -467,9 +488,17 @@ bool MergeFunctions::runOnModule(Module &M) {
   return Changed;
 }
 
+DenseMap<Function *, Function *>
+MergeFunctions::runOnFunctions(ArrayRef<Function *> F) {
+  bool MergeResult = this->run(F);
+  if (!MergeResult)
+    this->DelToNewMap = DenseMap<Function *, Function *>();
----------------
Casperento wrote:

Sure!

Resolved in [07aa7c1](https://github.com/llvm/llvm-project/pull/111045/commits/07aa7c1d29fafab9b89401349f20ccb9007b5733).

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


More information about the llvm-commits mailing list