[all-commits] [llvm/llvm-project] fc47fa: [MLIR][Mem2Reg] Improve performance by avoiding re...

Christian Ulmann via All-commits all-commits at lists.llvm.org
Wed May 8 01:12:21 PDT 2024


  Branch: refs/heads/users/dinistro/change-memory-slot-interface-to-builders
  Home:   https://github.com/llvm/llvm-project
  Commit: fc47fa926fc8b9f55ea5635e3b94afadf4767002
      https://github.com/llvm/llvm-project/commit/fc47fa926fc8b9f55ea5635e3b94afadf4767002
  Author: Christian Ulmann <christian.ulmann at nextsilicon.com>
  Date:   2024-05-08 (Wed, 08 May 2024)

  Changed paths:
    M mlir/include/mlir/Transforms/Mem2Reg.h
    M mlir/lib/Transforms/Mem2Reg.cpp

  Log Message:
  -----------
  [MLIR][Mem2Reg] Improve performance by avoiding recomputations

This commit ensures that Mem2Reg reuses the `DominanceInfo` as well as
block index maps to avoid expensive recomputations. Due to the recent
migration to `OpBuilder`, the promotion of a slot does no longer replace
blocks. Having stable blocks makes the `DominanceInfo` preservable and
additionally allows to cache block index maps between different
promotions.

Performance measurements on very large functions show an up to 4x
speedup by these changes.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list