[all-commits] [llvm/llvm-project] f7e70b: [mlir][tosa] Avoid introducing int <-> float casts...

Ian Tayler Lessa via All-commits all-commits at lists.llvm.org
Thu May 7 10:53:41 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f7e70bd7a9fc9a6cd818698f4f8bd4dcbdcfa3f8
      https://github.com/llvm/llvm-project/commit/f7e70bd7a9fc9a6cd818698f4f8bd4dcbdcfa3f8
  Author: Ian Tayler Lessa <ian.taylerlessa at arm.com>
  Date:   2026-05-07 (Thu, 07 May 2026)

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

  Log Message:
  -----------
  [mlir][tosa] Avoid introducing int <-> float casts (#195882)

As part of the NonNarrowingCastsOptimization we were optimizing away
some cases where the inner input was an integer and the outer output was
a float.

Not all of the resulting dtype combinations for these cases are
supported by TOSA, so these scenarios are no longer optimized as part of
canonicalizations.

---------

Signed-off-by: Ian Tayler Lessa <ian.taylerlessa at arm.com>



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