[all-commits] [llvm/llvm-project] cd2d73: [mlir][tosa] Limit right-shift to 31 bits

Rob Suderman via All-commits all-commits at lists.llvm.org
Thu Jan 20 14:42:16 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cd2d7369639e70df17e7977ac3a4a5b7854043fa
      https://github.com/llvm/llvm-project/commit/cd2d7369639e70df17e7977ac3a4a5b7854043fa
  Author: Rob Suderman <rob.suderman at gmail.com>
  Date:   2022-01-20 (Thu, 20 Jan 2022)

  Changed paths:
    M mlir/lib/Dialect/Tosa/Utils/QuantUtils.cpp

  Log Message:
  -----------
  [mlir][tosa] Limit right-shift to 31 bits

Right shift can occur that is a 32-bit right shift. This is undefined behavior.

Reviewed By: mehdi_amini

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




More information about the All-commits mailing list