[all-commits] [llvm/llvm-project] b12bcf: [MLIR] Add pass to deduplicate functions

frgossen via All-commits all-commits at lists.llvm.org
Mon Feb 27 08:00:21 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b12bcf3fb7fa7f968e8bd77b466057509ab2e04b
      https://github.com/llvm/llvm-project/commit/b12bcf3fb7fa7f968e8bd77b466057509ab2e04b
  Author: Frederik Gossen <frgossen at google.com>
  Date:   2023-02-27 (Mon, 27 Feb 2023)

  Changed paths:
    M mlir/include/mlir/Dialect/Func/Transforms/Passes.h
    M mlir/include/mlir/Dialect/Func/Transforms/Passes.td
    M mlir/lib/Dialect/Func/Transforms/CMakeLists.txt
    A mlir/lib/Dialect/Func/Transforms/DuplicateFunctionElimination.cpp
    A mlir/test/Dialect/Func/duplicate-function-elimination.mlir

  Log Message:
  -----------
  [MLIR] Add pass to deduplicate functions

Deduplicate functions that are equivalent in all aspects but their symbol name.
The pass chooses one representative per equivalence class, erases the remainder, and updates function calls accordingly.

Differential Revision: https://reviews.llvm.org/D144738




More information about the All-commits mailing list