[all-commits] [llvm/llvm-project] 75f0d1: [mlir][Arith] Make integer max/min commutative.

Jianjian Guan via All-commits all-commits at lists.llvm.org
Tue Mar 22 19:18:09 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 75f0d12ebfc9616957991ffc4be7722b1c3a871b
      https://github.com/llvm/llvm-project/commit/75f0d12ebfc9616957991ffc4be7722b1c3a871b
  Author: jacquesguan <Jianjian.Guan at streamcomputing.com>
  Date:   2022-03-23 (Wed, 23 Mar 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/Arithmetic/IR/ArithmeticOps.td
    M mlir/test/Dialect/Arithmetic/canonicalize.mlir

  Log Message:
  -----------
  [mlir][Arith] Make integer max/min commutative.

Make MaxSI, MaxUI, MinSI and MinUI commutative, so they will be canonicalized to have its constants appear as the second operand. And the constant folder will match more cases.

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




More information about the All-commits mailing list