This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][Linalg] Generalize splat constant folding
ClosedPublic

Authored by frgossen on Apr 26 2021, 8:37 AM.

Details

Summary

Splat constant folding was limited to std.constant operations. Instead, use
the constant matcher and apply splat constant folding to any constant-like
operation that holds a splat attribute.

Diff Detail

Event Timeline

frgossen created this revision.Apr 26 2021, 8:37 AM
frgossen requested review of this revision.Apr 26 2021, 8:37 AM
pifon2a accepted this revision.Apr 26 2021, 9:59 AM

Nice, thanks!

This revision is now accepted and ready to land.Apr 26 2021, 9:59 AM
This revision was automatically updated to reflect the committed changes.