[all-commits] [llvm/llvm-project] abc17a: [mlir][Arithmetic] Use matchPattern to simplify code.

Jianjian Guan via All-commits all-commits at lists.llvm.org
Fri Apr 22 01:43:09 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: abc17a67519747be36f1fd03e227c5103da4c677
  Author: jacquesguan <Jianjian.Guan at streamcomputing.com>
  Date:   2022-04-22 (Fri, 22 Apr 2022)

  Changed paths:
    M mlir/lib/Dialect/Arithmetic/IR/ArithmeticOps.cpp

  Log Message:
  [mlir][Arithmetic] Use matchPattern to simplify code.

This patch replaces some code with matchPattern and move them before the constant folder function in order to avoid redundant invoking.

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

More information about the All-commits mailing list