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

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 26 05:23:30 PST 2024


================
@@ -467,9 +489,16 @@ bool MergeFunctions::runOnModule(Module &M) {
   return Changed;
 }
 
+std::pair<bool, DenseMap<Function *, Function *>>
+MergeFunctions::runOnFunctions(std::set<Function *> &F) {
+  bool MergeResult = false;
+  MergeResult = this->run(F);
+  return {MergeResult, this->DelToNewMap};
----------------
nikic wrote:

Do you need both the boolean and the map here? Is the boolean equivalent to a non-empty map?

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


More information about the llvm-commits mailing list