[all-commits] [llvm/llvm-project] 1d4ce5: [mlir][bufferization] skip empty tensor eliminatio...

zhicong zhong via All-commits all-commits at lists.llvm.org
Sun Jun 30 18:30:26 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1d4ce574a44bdac4ea0e0c12a75051af680b3633
      https://github.com/llvm/llvm-project/commit/1d4ce574a44bdac4ea0e0c12a75051af680b3633
  Author: zhicong zhong <zhiczhong at outlook.com>
  Date:   2024-07-01 (Mon, 01 Jul 2024)

  Changed paths:
    M mlir/lib/Dialect/Bufferization/Transforms/EmptyTensorElimination.cpp
    M mlir/test/Dialect/Bufferization/Transforms/one-shot-bufferize-analysis-empty-tensor-elimination.mlir

  Log Message:
  -----------
  [mlir][bufferization] skip empty tensor elimination if they have different element type (#96998)

In the origin implementation, the empty tensor elimination will add a
`tensor.cast` and eliminate the tensor even if they have different
element type(f32, bf16). Here add a check for element type and skip the
elimination if they are different.



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