llvm-project
0bb0c7db - [MLIR][MPI] Fix direct getRefMutable().assign() bypassing rewriter in FoldCast (#188943)

Commit
28 days ago
[MLIR][MPI] Fix direct getRefMutable().assign() bypassing rewriter in FoldCast (#188943) The FoldCast canonicalization pattern was calling op.getRefMutable().assign(src) directly, bypassing the rewriter. This violates the pattern API contract and causes fingerprint change failures when MLIR_ENABLE_EXPENSIVE_PATTERN_API_CHECKS is enabled. Wrap the modification with b.modifyOpInPlace() to properly notify the rewriter of the changes. Assisted-by: Claude Code Fix a failure present with MLIR_ENABLE_EXPENSIVE_PATTERN_API_CHECKS=ON.
Author
Parents
Loading