This is an archive of the discontinued LLVM Phabricator instance.

[mlir][tensor] Adapt FoldTensorCastProducerOp pattern on DPS interface.
ClosedPublic

Authored by hanchung on Dec 5 2022, 3:58 PM.

Details

Summary

This revision adapts the pattern in LinAlg to work on DPS interface, and
adds it to canonicalization patterns of tensor dialect. The
InsertSliceOp is skipped in the pattern because it has its own logic
about folding tensor.cast ops.

Diff Detail

Event Timeline

hanchung created this revision.Dec 5 2022, 3:58 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 5 2022, 3:58 PM
hanchung requested review of this revision.Dec 5 2022, 3:58 PM
hanchung updated this revision to Diff 480273.Dec 5 2022, 4:08 PM

Use new style for auto [x, y] = llvm::zip ....

pifon2a accepted this revision.Dec 5 2022, 10:47 PM
This revision is now accepted and ready to land.Dec 5 2022, 10:47 PM