[all-commits] [llvm/llvm-project] 29f45e: [mlir][Transforms] GreedyPatternRewriteDriver: Add...
Matthias Springer via All-commits
all-commits at lists.llvm.org
Sun Apr 21 10:54:13 PDT 2024
Branch: refs/heads/users/matthias-springer/greedy_rewrite_cse_constants
Home: https://github.com/llvm/llvm-project
Commit: 29f45ee1c6b1c74cc465f2b372ea2fe2dae78e7e
https://github.com/llvm/llvm-project/commit/29f45ee1c6b1c74cc465f2b372ea2fe2dae78e7e
Author: Matthias Springer <springerm at google.com>
Date: 2024-04-21 (Sun, 21 Apr 2024)
Changed paths:
M mlir/include/mlir/Transforms/GreedyPatternRewriteDriver.h
M mlir/include/mlir/Transforms/Passes.td
M mlir/lib/Transforms/Canonicalizer.cpp
M mlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp
M mlir/test/Transforms/test-canonicalize.mlir
Log Message:
-----------
[mlir][Transforms] GreedyPatternRewriteDriver: Add flag to control constant CSE'ing
By default, the greedy pattern rewrite driver CSE's constant ops. If an op is CSE'd with an op in a parent region, the op is effectively "hoisted". Over the last years, users have described situations where this is not desirable/necessary. This commit adds a new flag to `GreedyRewriteConfig` that controls CSE'ing of constants. For testing purposes, it is also exposed as a canonicalizer pass flag.
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