summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorChristian Ulmann <christianulmann@gmail.com>2024-05-08 15:53:14 +0200
committerGitHub <noreply@github.com>2024-05-08 15:53:14 +0200
commitc6efcc925c9969d616bc463171c0423d6a9766af (patch)
tree6c5efe959cc23e4b6cb096fb67d6d44cd944e3c6 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent9c09b0840e82490ed194207adc03d3e7284b8764 (diff)
[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.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions