[all-commits] [llvm/llvm-project] 8d175b: [mlir][complex] Canonicalize complex.mul with 1 and 0

Kai Sasaki via All-commits all-commits at lists.llvm.org
Wed Jun 28 00:29:49 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8d175b3577cb5ef0655a5d83bd3e277fde5c8852
      https://github.com/llvm/llvm-project/commit/8d175b3577cb5ef0655a5d83bd3e277fde5c8852
  Author: Kai Sasaki <lewuathe at gmail.com>
  Date:   2023-06-28 (Wed, 28 Jun 2023)

  Changed paths:
    M mlir/include/mlir/Dialect/Complex/IR/ComplexOps.td
    M mlir/lib/Dialect/Complex/IR/ComplexOps.cpp
    M mlir/test/Dialect/Complex/canonicalize.mlir

  Log Message:
  -----------
  [mlir][complex] Canonicalize complex.mul with 1 and 0

We can fold the complex.mul if the right value is obvious 1 or 0.

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




More information about the All-commits mailing list