[all-commits] [llvm/llvm-project] c6efcc: [MLIR][Mem2Reg] Improve performance by avoiding re...
Christian Ulmann via All-commits
all-commits at lists.llvm.org
Wed May 8 06:53:37 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c6efcc925c9969d616bc463171c0423d6a9766af
https://github.com/llvm/llvm-project/commit/c6efcc925c9969d616bc463171c0423d6a9766af
Author: Christian Ulmann <christianulmann at gmail.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 (#91444)
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