This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Fix folding into tensor.pad op.
ClosedPublic

Authored by pifon2a on Mar 30 2023, 2:26 AM.

Details

Summary

When low/high padding is folded in padOp, there should be inserted a
tensor.cast back to the original result type. Right now, there is a no-op
tensor.cast from new type to new type...

Diff Detail

Event Timeline

pifon2a created this revision.Mar 30 2023, 2:26 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 30 2023, 2:26 AM
pifon2a requested review of this revision.Mar 30 2023, 2:26 AM
ftynse accepted this revision.Mar 30 2023, 2:28 AM
This revision is now accepted and ready to land.Mar 30 2023, 2:28 AM
This revision was landed with ongoing or failed builds.Mar 30 2023, 2:35 AM
This revision was automatically updated to reflect the committed changes.