This is an archive of the discontinued LLVM Phabricator instance.

[mlir][tensor] Fold rank-reducing insert_slice with inverse collapse_shape
ClosedPublic

Authored by springerm on Dec 1 2022, 5:28 AM.

Diff Detail

Event Timeline

springerm created this revision.Dec 1 2022, 5:28 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 1 2022, 5:28 AM
springerm requested review of this revision.Dec 1 2022, 5:28 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 1 2022, 5:28 AM
nicolasvasilache accepted this revision.Dec 1 2022, 6:28 AM
This revision is now accepted and ready to land.Dec 1 2022, 6:28 AM
mravishankar requested changes to this revision.Dec 1 2022, 11:27 AM

Same concern from https://reviews.llvm.org/D139103 . Posting comment from there

My thumb rule is if an op is not a simple op -> op change it doesnt pay for itself as a canonicalization. I am happy to discuss if indeed it is a canonicalization, but forcing everything to be rank-reducing when canonicalization is invoked is a very opinionated solution. It should be opt-in (ftr, I am in favor of using rank-reduce slices everywhere, but not in favor of forcing that view on everyone)
This revision now requires changes to proceed.Dec 1 2022, 11:27 AM
This revision was not accepted when it landed; it landed in state Needs Review.Dec 2 2022, 1:49 AM
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.

This is yet another instance of a patch being submitted when it has still changes requested marked. Whats the hurry, and AFAIK is not in keeping with developer practices. When patches land this way it drops off the dashboard and I dont see the resolution of the issue. That aside, specifically here, https://reviews.llvm.org/D139118 was tagged as something that conflicted with this. Does it or does it not. I am interested to know whats happening here (and hence I requested changes). Please do not land patches with request changes unless its been a while from the reviewer.