[all-commits] [llvm/llvm-project] 2fb53f: [mlir][tosa] Fix for incorrect cannonicalization o...

Spenser Bauman via All-commits all-commits at lists.llvm.org
Thu Jul 11 06:22:05 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2fb53f37660498ad84c2489a6dbf05c94dc703a8
      https://github.com/llvm/llvm-project/commit/2fb53f37660498ad84c2489a6dbf05c94dc703a8
  Author: Spenser Bauman <sbauman at mathworks.com>
  Date:   2024-07-11 (Thu, 11 Jul 2024)

  Changed paths:
    M mlir/lib/Dialect/Tosa/IR/TosaCanonicalizations.cpp
    M mlir/test/Dialect/Tosa/canonicalize.mlir

  Log Message:
  -----------
  [mlir][tosa] Fix for incorrect cannonicalization of tosa.pad (#98356)

The current fold method for tosa.pad can produce invalid IR by replacing
the padded value with the tosa.pad is a noop. When the type of the input
value does not match the type of the tosa.pad, the canonicalizer detects
the change in types and asserts.

This change addresses the issue by avoiding folding when the input and
result types do not match.



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