[all-commits] [llvm/llvm-project] 088f15: [mlir][tosa] Add folder for tosa.cast

Rob Suderman via All-commits all-commits at lists.llvm.org
Mon Aug 29 17:35:40 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 088f15e346d68da2875d8ee618a05217559c25f2
      https://github.com/llvm/llvm-project/commit/088f15e346d68da2875d8ee618a05217559c25f2
  Author: Rob Suderman <suderman at google.com>
  Date:   2022-08-29 (Mon, 29 Aug 2022)

  Changed paths:
    M mlir/lib/Dialect/Tosa/IR/TosaCanonicalizations.cpp
    M mlir/test/Dialect/Tosa/constant-op-fold.mlir

  Log Message:
  -----------
  [mlir][tosa] Add folder for tosa.cast

Tosa.cast should fold on splats as it is trivial to fold the operation
into the splatted value.

Reviewed By: NatashaKnk

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




More information about the All-commits mailing list