[all-commits] [llvm/llvm-project] ca8cf9: [mlir][tensor] Check the EmptyOp's dynamicSize to ...

Kohei Yamaguchi via All-commits all-commits at lists.llvm.org
Sun Sep 10 18:39:13 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ca8cf90c8ca8a6a8f63ef8d05e226c51f4f6711f
      https://github.com/llvm/llvm-project/commit/ca8cf90c8ca8a6a8f63ef8d05e226c51f4f6711f
  Author: Kohei Yamaguchi <fix7211 at gmail.com>
  Date:   2023-09-10 (Sun, 10 Sep 2023)

  Changed paths:
    M mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
    M mlir/test/Dialect/Tensor/canonicalize.mlir

  Log Message:
  -----------
  [mlir][tensor] Check the EmptyOp's dynamicSize to be non-negative (#65577)

This patch addresses a crash that occurs when negative dynamic sizes are
provided in tensor.emptyOp by adding a check to ensure that dynamic
sizes are non-negative.

Fixes #64064




More information about the All-commits mailing list