[all-commits] [llvm/llvm-project] 52dd63: [mlir] Add option to ignore commutativity in Opera...

jumerckx via All-commits all-commits at lists.llvm.org
Wed Mar 4 00:45:59 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 52dd63d3caa377b993855e1161cfde2e55fafe8c
      https://github.com/llvm/llvm-project/commit/52dd63d3caa377b993855e1161cfde2e55fafe8c
  Author: jumerckx <31353884+jumerckx at users.noreply.github.com>
  Date:   2026-03-04 (Wed, 04 Mar 2026)

  Changed paths:
    M mlir/include/mlir/IR/OperationSupport.h
    M mlir/lib/IR/OperationSupport.cpp
    M mlir/test/IR/operation-equality.mlir
    M mlir/test/lib/IR/TestOperationEquals.cpp

  Log Message:
  -----------
  [mlir] Add option to ignore commutativity in OperationEquality (#181507)

This adds a new flag, `IgnoreCommutativity`, to the OperationEquivalence
flags. When toggled, regular equivalence and hashing will be used
instead of calls to `checkCommutativeEquivalent` and
commutative-invariant hashing.
This means that commutative operations will not be considered equivalent
when their operands are in a different order (i.e. `arith.addi(%a, %b)`
vs. `arith.addi(%b, %a)`).



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list