[all-commits] [llvm/llvm-project] fc9b37: [mlir][bufferization] Do not canonicalize to_tenso...

Matthias Springer via All-commits all-commits at lists.llvm.org
Sat Jul 9 00:27:08 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fc9b37dd532dc68018c0c5947030b34ebcf68d14
      https://github.com/llvm/llvm-project/commit/fc9b37dd532dc68018c0c5947030b34ebcf68d14
  Author: Matthias Springer <springerm at google.com>
  Date:   2022-07-09 (Sat, 09 Jul 2022)

  Changed paths:
    M mlir/lib/Dialect/Bufferization/IR/BufferizationOps.cpp
    M mlir/test/Dialect/SCF/canonicalize.mlir
    M mlir/test/Dialect/SparseTensor/sparse_vector_chain.mlir

  Log Message:
  -----------
  [mlir][bufferization] Do not canonicalize to_tensor(to_memref(x))

This is a partial revert of D128615.

to_memref(to_tensor(x)) always be folded to x. But to_tensor(to_memref(x)) cannot be folded in the general case because writes to the intermediary memref may go unnoticed.

Differential Revision: https://reviews.llvm.org/D129354




More information about the All-commits mailing list