This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Arithmetic] Support commutative canonicalization for continuous XOrIOp.
ClosedPublic

Authored by jacquesguan on Sep 20 2022, 12:26 AM.

Diff Detail

Event Timeline

jacquesguan created this revision.Sep 20 2022, 12:26 AM
jacquesguan requested review of this revision.Sep 20 2022, 12:26 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 20 2022, 12:26 AM
Mogball accepted this revision.Sep 23 2022, 9:40 AM
Mogball added inline comments.
mlir/test/Dialect/Arithmetic/canonicalize.mlir
1591

can you copy-paste the comments into their corresponding cases?

/// xor(xor(x, a), a) -> x
/// xor(xor(a, x), a) -> x
/// xor(a, xor(x, a)) -> x
/// xor(a, xor(a, x)) -> x

and so on

1636

please add a newline

This revision is now accepted and ready to land.Sep 23 2022, 9:40 AM

Address comment.