[all-commits] [llvm/llvm-project] 5d0c5c: [MLIR][ARITH] Adds missing foldings for truncf (#1...

Zahi Moudallal via All-commits all-commits at lists.llvm.org
Fri Feb 21 15:37:40 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5d0c5c638ad2f34552f1188c6e9b9ff5406580f9
      https://github.com/llvm/llvm-project/commit/5d0c5c638ad2f34552f1188c6e9b9ff5406580f9
  Author: Zahi Moudallal <zahi at openai.com>
  Date:   2025-02-21 (Fri, 21 Feb 2025)

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

  Log Message:
  -----------
  [MLIR][ARITH] Adds missing foldings for truncf (#128096)

This patch is mainly to deal with folding `truncf`, as follows:
`truncf(extf(a))` -> `a`, if `a` has the same bitwidth as the result
`truncf(extf(a))` -> `truncf(a)`, if `a` has larger bitwidth than the
result



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