[all-commits] [llvm/llvm-project] 0de9d9: [MLIR][arith] Fold or(a, or(a, b)) to or(a, b) (#2...
Chibuoyim (Wilson) Ogbonna via All-commits
all-commits at lists.llvm.org
Fri Oct 2 19:56:17 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0de9d9a7639bf648f26896e23b1d4cc1dc0457ea
https://github.com/llvm/llvm-project/commit/0de9d9a7639bf648f26896e23b1d4cc1dc0457ea
Author: Chibuoyim (Wilson) Ogbonna <chibuoyim.faith.ogbonna at huawei.com>
Date: 2026-10-03 (Sat, 03 Oct 2026)
Changed paths:
M mlir/lib/Dialect/Arith/IR/ArithOps.cpp
M mlir/test/Dialect/Arith/canonicalize.mlir
Log Message:
-----------
[MLIR][arith] Fold or(a, or(a, b)) to or(a, b) (#228386)
`arith.andi` already folds `and(a, and(a, b))` to `and(a, b)`, but
`arith.ori` doesn't perform the equivalent fold, so using canonicalize
misses this opportunity.
Generalize the existing helper and use it for both ops.
Co-authored-by: Matthias Springer <me at m-sp.org>
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