[all-commits] [llvm/llvm-project] 3fbc6f: [TOSA] Loosen folding restrictions for tosa.add, to...

SJW via All-commits all-commits at lists.llvm.org
Thu Mar 30 11:22:47 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3fbc6fd4931f91003a5441866b674d3d635d8a60
  Author: SJW <swaters at amd.com>
  Date:   2023-03-30 (Thu, 30 Mar 2023)

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

  Log Message:
  [TOSA] Loosen folding restrictions for tosa.add,tosa.sub, tosa.mul

Allow folding of different tensor types when the constant tensor is broadcast.
Removed redundant and incorrect AddZero and MulOne canonical optimizations.

Reviewed By: rsuderman, eric-k256

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

More information about the All-commits mailing list