[all-commits] [llvm/llvm-project] 6ec098: [mlir] Enable disabling folding in dialect convers...

Jacques Pienaar via All-commits all-commits at lists.llvm.org
Sun Aug 10 09:00:52 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6ec0985ad07d68016587353fce715dce73cf1faa
      https://github.com/llvm/llvm-project/commit/6ec0985ad07d68016587353fce715dce73cf1faa
  Author: Jacques Pienaar <jpienaar at google.com>
  Date:   2025-08-10 (Sun, 10 Aug 2025)

  Changed paths:
    M mlir/include/mlir/Transforms/DialectConversion.h
    M mlir/lib/Transforms/Utils/DialectConversion.cpp
    A mlir/test/Transforms/test-legalizer-fold-after.mlir
    A mlir/test/Transforms/test-legalizer-fold-before.mlir
    A mlir/test/Transforms/test-legalizer-no-fold.mlir
    M mlir/test/lib/Dialect/Test/TestOps.td
    M mlir/test/lib/Dialect/Test/TestPatterns.cpp

  Log Message:
  -----------
  [mlir] Enable disabling folding in dialect conversion (#152890)

Previously this only happened post checking if the op is legal, but was
done unconditionally post (and before other legalization patterns). Add
option to not attempt folding and one to do so as last resort.

Did consider but did not add a always attempt to fold option (which
would have folded whether or not legal), but removed TODO about it.



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