[all-commits] [llvm/llvm-project] 5294ad: [mlir][arith] Improve `extf` folder (#80232)

Jakub Kuderski via All-commits all-commits at lists.llvm.org
Fri Feb 2 15:05:59 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5294ad1d5c995850ecc903ff2c3464d37cfb49c2
      https://github.com/llvm/llvm-project/commit/5294ad1d5c995850ecc903ff2c3464d37cfb49c2
  Author: Jakub Kuderski <jakub at nod-labs.com>
  Date:   2024-02-02 (Fri, 02 Feb 2024)

  Changed paths:
    M mlir/lib/Dialect/Arith/IR/ArithOps.cpp
    M mlir/test/Dialect/Arith/canonicalize.mlir

  Log Message:
  -----------
  [mlir][arith] Improve `extf` folder (#80232)

* Use APFloat conversion function to avoid losing information by
converting to `double`. This would be the case with large types like
`f80` or `f128`.
* Check for potential information loss. This is intended for small
floating point types that may have values not present in larger ones
(e.g., f8m2e5fnuz and f16).
* Support folding vector constants.




More information about the All-commits mailing list