[all-commits] [llvm/llvm-project] 68f91c: [mlir][bufferization] Fix invalid IR in `SimplifyC...

Matthias Springer via All-commits all-commits at lists.llvm.org
Tue Dec 5 16:42:10 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 68f91cd257807ae8aad842d3cdc221415effbb93
      https://github.com/llvm/llvm-project/commit/68f91cd257807ae8aad842d3cdc221415effbb93
  Author: Matthias Springer <me at m-sp.org>
  Date:   2023-12-06 (Wed, 06 Dec 2023)

  Changed paths:
    M mlir/lib/Dialect/Bufferization/IR/BufferizationOps.cpp

  Log Message:
  -----------
  [mlir][bufferization] Fix invalid IR in `SimplifyClones` canonicalization (#74417)

`SimplifyClones` used to generate an invalid op:
```
error: 'memref.cast' op operand type 'memref<*xf32>' and result type 'memref<*xf32>' are cast incompatible
  %2 = bufferization.clone %1 : memref<*xf32> to memref<*xf32
```

This commit fixes tests such as
`mlir/test/Dialect/Bufferization/canonicalize.mlir` when verifying the
IR after each pattern (#74270).




More information about the All-commits mailing list