[all-commits] [llvm/llvm-project] a31553: [mlir][tosa] Fix out-of-boundaries iteration for t...

Alexey Pushchin via All-commits all-commits at lists.llvm.org
Tue Jan 3 11:53:25 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a315534e52fd5c534fadc1e62101543aaf1537a2
      https://github.com/llvm/llvm-project/commit/a315534e52fd5c534fadc1e62101543aaf1537a2
  Author: a.puschin <a.puschin at yadro.com>
  Date:   2023-01-03 (Tue, 03 Jan 2023)

  Changed paths:
    M mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td
    M mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp
    M mlir/lib/Dialect/Tosa/IR/TosaOps.cpp

  Log Message:
  -----------
  [mlir][tosa] Fix out-of-boundaries iteration for tosa-to-linalg

When the number of elements of two shapes are not equal, a Reshape operation cannot be used to transfer one into another

Function findIntermediateShape(...) can cause out-of-boundaries operator[] call if the abovementioned condition strikes

The test-case I used now causes no error as its root-cause was an issue in Tosa dialect with padded Conv2D operations lowering which is already solved in commit 69c984b6

Reviewed By: rsuderman

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




More information about the All-commits mailing list