[all-commits] [llvm/llvm-project] 5cbaa1: [mlir][Transforms] Fix crash in `reconcile-unreali...
Matthias Springer via All-commits
all-commits at lists.llvm.org
Fri Sep 12 07:05:56 PDT 2025
Branch: refs/heads/users/matthias-springer/fix_reconcile_crash2
Home: https://github.com/llvm/llvm-project
Commit: 5cbaa1bce11fbaea9681c606cadd0787928b0a38
https://github.com/llvm/llvm-project/commit/5cbaa1bce11fbaea9681c606cadd0787928b0a38
Author: Matthias Springer <me at m-sp.org>
Date: 2025-09-12 (Fri, 12 Sep 2025)
Changed paths:
M mlir/include/mlir/Transforms/DialectConversion.h
M mlir/lib/Transforms/Utils/DialectConversion.cpp
M mlir/test/Conversion/ReconcileUnrealizedCasts/reconcile-unrealized-casts.mlir
M mlir/test/Integration/Dialect/MemRef/assume-alignment-runtime-verification.mlir
M mlir/test/Integration/Dialect/MemRef/atomic-rmw-runtime-verification.mlir
M mlir/test/Integration/Dialect/MemRef/store-runtime-verification.mlir
M mlir/test/lib/Pass/TestVulkanRunnerPipeline.cpp
Log Message:
-----------
[mlir][Transforms] Fix crash in `reconcile-unrealized-casts` (#158067)
The `reconcile-unrealized-casts` pass used to crash when the input
contains circular chains of `unrealized_conversion_cast` ops.
Furthermore, the `reconcileUnrealizedCasts` helper functions used to
erase ops that were not passed via the `castOps` operand. Such ops are
now preserved. That's why some integration tests had to be changed.
Also avoid copying the set of all unresolved materializations in
`convertOperations`.
This commit is in preparation of turning `RewriterBase::replaceOp` into
a non-virtual function.
---------
Co-authored-by: Mehdi Amini <joker.eph at gmail.com>
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