[all-commits] [llvm/llvm-project] 027aa7: [TOSA] Fix negate maxValue computation (#126295)

RoboTux via All-commits all-commits at lists.llvm.org
Sat Feb 8 01:23:53 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 027aa70ea44502280779c3887c72886326785c6b
      https://github.com/llvm/llvm-project/commit/027aa70ea44502280779c3887c72886326785c6b
  Author: Thomas Preud'homme <thomas.preudhomme at arm.com>
  Date:   2025-02-08 (Sat, 08 Feb 2025)

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

  Log Message:
  -----------
  [TOSA] Fix negate maxValue computation (#126295)

getInput1Zp() returns an unsigned value which means in case of negative
zero point value the max intermediate value computation currently goes
wrong. Use getInput1ZpAttr() instead which returns an APInt and allows
easy sign extension to int64_t.



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