[all-commits] [llvm/llvm-project] 9ccf61: [mlir][Transforms][NFC] Store per-pattern IR modif...
Matthias Springer via All-commits
all-commits at lists.llvm.org
Wed Jun 25 23:55:00 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9ccf613b34263ad0fd3fb3155aeb2ac9df3df952
https://github.com/llvm/llvm-project/commit/9ccf613b34263ad0fd3fb3155aeb2ac9df3df952
Author: Matthias Springer <me at m-sp.org>
Date: 2025-06-26 (Thu, 26 Jun 2025)
Changed paths:
M mlir/lib/Transforms/Utils/DialectConversion.cpp
Log Message:
-----------
[mlir][Transforms][NFC] Store per-pattern IR modifications in separate state (#145319)
This commit adds extra state to `ConversionPatternRewriterImpl` to store
all modified / newly-created operations and moved / newly-created blocks
in separate lists on a per-pattern basis.
This is in preparation of the One-Shot Dialect Conversion refactoring:
the new driver will no longer maintain a list of all IR rewrites, so
information about newly-created operations (which is needed to trigger
recursive legalization) must be retained in a different data structure.
This commit is also expected to improve the performance of the existing
driver. The previous implementation iterated over all new IR
modifications and then filtered them by type. It also required an
additional pointer indirection (through `std::unique_ptr<IRRewrite>`) to
retrieve the operation/block pointer.
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