[all-commits] [llvm/llvm-project] b53bcc: [mlir][Math] Add constant folder for RoundOp.

Jianjian Guan via All-commits all-commits at lists.llvm.org
Wed Sep 7 23:51:51 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b53bccb18d2a437b04f4259cdcced479c909cbfd
      https://github.com/llvm/llvm-project/commit/b53bccb18d2a437b04f4259cdcced479c909cbfd
  Author: jacquesguan <Jianjian.Guan at streamcomputing.com>
  Date:   2022-09-08 (Thu, 08 Sep 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/Math/IR/MathOps.td
    M mlir/lib/Dialect/Math/IR/MathOps.cpp
    M mlir/test/Dialect/Math/canonicalize.mlir

  Log Message:
  -----------
  [mlir][Math] Add constant folder for RoundOp.

This patch uses round/roundf of libm to fold RoundOp of constant.

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




More information about the All-commits mailing list