This is an archive of the discontinued LLVM Phabricator instance.

[MLIR] Add idempotent trait folding
ClosedPublic

Authored by ahmedsabie on Oct 14 2020, 1:05 PM.

Details

Summary

This trait simply adds a fold of f(f(x)) = f(x) when an operation is labelled as idempotent

Diff Detail

Event Timeline

ahmedsabie created this revision.Oct 14 2020, 1:05 PM
ahmedsabie requested review of this revision.Oct 14 2020, 1:05 PM
rriddle accepted this revision.Oct 15 2020, 3:28 PM
This revision is now accepted and ready to land.Oct 15 2020, 3:28 PM
andyly accepted this revision.Oct 15 2020, 3:35 PM

Can you push it when you get a chance I don't have push access, thanks!

This revision was automatically updated to reflect the committed changes.