[all-commits] [llvm/llvm-project] 712123: [MLIR][Tosa] TosaToTensor: create valid reshapes

Matthias Gehre via All-commits all-commits at lists.llvm.org
Sun Jul 9 23:33:50 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 712123e04d45d0847bcd1aefb104162a13a16c6c
      https://github.com/llvm/llvm-project/commit/712123e04d45d0847bcd1aefb104162a13a16c6c
  Author: Matthias Gehre <matthias.gehre at xilinx.com>
  Date:   2023-07-10 (Mon, 10 Jul 2023)

  Changed paths:
    M mlir/lib/Conversion/TosaToTensor/TosaToTensor.cpp

  Log Message:
  -----------
  [MLIR][Tosa] TosaToTensor: create valid reshapes

The pattern would create reshape ops without a newShape attr.
This fails the verifier (which can be seen in the debug output;
but curiously doesn't abort compilation),
and can cause crashes in other code that expect to see valid
reshape ops, like ReshapeOp::fold.

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




More information about the All-commits mailing list