Blindly folding tensor.extract_slice makes the bufferization
transformation harder. This kind of transformation should happen
separately if needed rather than doing it within makeShape that is
called during tiling.
Also removed makeComposedExtractSliceOp as it is not tested outside of
this code.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
This is a symptom of a deeper issue , let's at least check that @pifon2a is not impacted by this.
The deeper issue is being investigated.
@nicolasvasilache That's perfect. Without this change, memory promotion is impossible, because the tiling structure is lost. It is the right direction.
Not related to this patch, but it is concerning that the folding being there or not affects bufferization. It seems like a very tight rope to walk to make sure everything works as expected. I totally understand in terms of priority, making the common case work well is most important (so +1 for this to unblock), but will probably become a concern sooner rather than later.
Yes I agree, Matthias and Nicolas are aware of it. I still think doing the folding during tiling wasn't a great idea anyway (if anything that should be part of canonicalization)