This is an archive of the discontinued LLVM Phabricator instance.

[mlir] add pad_tensor(tensor.cast) -> pad_tensor canonicalizer
ClosedPublic

Authored by ftynse on Sep 23 2021, 9:37 AM.

Details

Summary

This canonicalization pattern complements the tensor.cast(pad_tensor) one in
propagating constant type information when possible. It contributes to the
feasibility of pad hoisting.

Diff Detail

Event Timeline

ftynse created this revision.Sep 23 2021, 9:37 AM
ftynse requested review of this revision.Sep 23 2021, 9:37 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 23 2021, 9:37 AM
nicolasvasilache accepted this revision.Sep 23 2021, 9:39 AM

Looks great, thanks!

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