[all-commits] [llvm/llvm-project] 7563eb: [tosa] Fix crash in shape inference for `tosa.tran...

Felix Schneider via All-commits all-commits at lists.llvm.org
Tue Dec 5 10:46:55 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7563eb64102c3bee9b0ab581309d170891fa0565
      https://github.com/llvm/llvm-project/commit/7563eb64102c3bee9b0ab581309d170891fa0565
  Author: Felix Schneider <fx.schn at gmail.com>
  Date:   2023-12-05 (Tue, 05 Dec 2023)

  Changed paths:
    M mlir/lib/Dialect/Tosa/IR/TosaOps.cpp
    M mlir/test/Dialect/Tosa/tosa-infer-shapes.mlir

  Log Message:
  -----------
  [tosa] Fix crash in shape inference for `tosa.transpose` (#74367)

Fixes a crash in `TransposeOp::inferReturnTypeComponents()` when the
supplied permutation tensor is rank-0.
Also removes some dead code from the type inference function.

Fix https://github.com/llvm/llvm-project/issues/74237




More information about the All-commits mailing list