[all-commits] [llvm/llvm-project] 6a08c2: [mlir][tosa] Disable folder for non-int/float/inde...

NatashaKnk via All-commits all-commits at lists.llvm.org
Thu Mar 30 11:07:20 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6a08c2be5880cdaee01031b55c79126ec3d688e2
  Author: Natasha Kononenko <natashaknk at google.com>
  Date:   2023-03-30 (Thu, 30 Mar 2023)

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

  Log Message:
  [mlir][tosa] Disable folder for non-int/float/index types in tosa.slice

In order to fold, we need to create an ElementsAttr, and those cannot be
generated from any type. In particular, currently we need to avoid folding
quantized types.

Reviewed By: jpienaar

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

More information about the All-commits mailing list