[all-commits] [llvm/llvm-project] 0763f1: [mlir][tosa] Handle rescale case where shift > 63

rsuderman via All-commits all-commits at lists.llvm.org
Thu Dec 16 15:37:42 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0763f12213dc931a4c6926324e4e5d825237405c
      https://github.com/llvm/llvm-project/commit/0763f12213dc931a4c6926324e4e5d825237405c
  Author: Rob Suderman <rob.suderman at gmail.com>
  Date:   2021-12-16 (Thu, 16 Dec 2021)

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

  Log Message:
  -----------
  [mlir][tosa] Handle rescale case where shift > 63

It is possible for the shift value to exceed the number of bits. In these
cases we can just multiply by zero. This is relatively rare occurence but
should be handled.

Reviewed By: not-jenni

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




More information about the All-commits mailing list