[all-commits] [llvm/llvm-project] 362240: [mlir][Math] Support fold PowFOp with constant dense.

Jianjian Guan via All-commits all-commits at lists.llvm.org
Wed Jul 6 19:16:39 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 362240e09e9e203b65d14b0b620803e7caa26536
      https://github.com/llvm/llvm-project/commit/362240e09e9e203b65d14b0b620803e7caa26536
  Author: jacquesguan <Jianjian.Guan at streamcomputing.com>
  Date:   2022-07-07 (Thu, 07 Jul 2022)

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

  Log Message:
  -----------
  [mlir][Math] Support fold PowFOp with constant dense.

This patch adds a conditional binary constant folder which allow to exit when the constants not meet the fold condition. And use it for PowFOp to make it able to fold the constant dense.

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




More information about the All-commits mailing list