[all-commits] [llvm/llvm-project] d17454: [mlir][Transforms] CSE: Add filter options to cont...
Matthias Springer via All-commits
all-commits at lists.llvm.org
Sat Nov 9 23:36:52 PST 2024
Branch: refs/heads/users/matthias-springer/cse_filter
Home: https://github.com/llvm/llvm-project
Commit: d17454e081e167ab391ae1b9f21115591418e614
https://github.com/llvm/llvm-project/commit/d17454e081e167ab391ae1b9f21115591418e614
Author: Matthias Springer <mspringer at nvidia.com>
Date: 2024-11-10 (Sun, 10 Nov 2024)
Changed paths:
M mlir/include/mlir/Transforms/CSE.h
M mlir/include/mlir/Transforms/Passes.h
M mlir/include/mlir/Transforms/Passes.td
M mlir/lib/Transforms/CSE.cpp
M mlir/test/Transforms/cse.mlir
Log Message:
-----------
[mlir][Transforms] CSE: Add filter options to control CSE'ing
This commit adds two new pass options that gives users more fine-grained control over which ops are CSE'd / DCE'd.
* `barrier-op-filter` specifies ops that should act as CSE'ing barriers. I.e., ops that are nested inside such ops should not be CSE'd with ops that are outside of such ops. (Until now, the only CSE'ing barrier used to be IsolatedFromAbove ops.)
* `eliminate-op-filter` specifies ops that are subject to elimination. All non-matching ops are ignored by the CSE pass and remain in place. (If the filter is empty, all ops are subject to elimination.)
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