[all-commits] [llvm/llvm-project] 76c971: [mlir][tosa] Fix clamp to restrict only within val...

rsuderman via All-commits all-commits at lists.llvm.org
Wed Aug 18 12:20:26 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 76c9712196906a1c5c1598e196b6abed139f090e
      https://github.com/llvm/llvm-project/commit/76c9712196906a1c5c1598e196b6abed139f090e
  Author: Robert Suderman <suderman at google.com>
  Date:   2021-08-18 (Wed, 18 Aug 2021)

  Changed paths:
    M mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp
    M mlir/test/Conversion/TosaToLinalg/tosa-to-linalg.mlir

  Log Message:
  -----------
  [mlir][tosa] Fix clamp to restrict only within valid bitwidth range

Its possible for the clamp to have invalid min/max values on its range. To fix
this we validate the range of the min/max and clamp to a valid range.

Reviewed By: NatashaKnk

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




More information about the All-commits mailing list