[all-commits] [llvm/llvm-project] 9bb74b: [mlir][Transforms] GreedyPatternRewriteDriver: Add...

Matthias Springer via All-commits all-commits at lists.llvm.org
Tue Apr 23 15:43:43 PDT 2024


  Branch: refs/heads/users/matthias-springer/greedy_rewrite_cse_constants
  Home:   https://github.com/llvm/llvm-project
  Commit: 9bb74b5e1d3403ef83058a181a89763744966597
      https://github.com/llvm/llvm-project/commit/9bb74b5e1d3403ef83058a181a89763744966597
  Author: Matthias Springer <springerm at google.com>
  Date:   2024-04-23 (Tue, 23 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/Pass/run-reproducer.mlir
    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