Skip to content

[TIR] Remove unused iters from the result of reindex#12946

Merged
junrushao merged 1 commit intoapache:mainfrom
vinx13:feat/reindex-no-unused
Sep 30, 2022
Merged

[TIR] Remove unused iters from the result of reindex#12946
junrushao merged 1 commit intoapache:mainfrom
vinx13:feat/reindex-no-unused

Conversation

@vinx13
Copy link
Copy Markdown
Member

@vinx13 vinx13 commented Sep 29, 2022

The existence of unused block iters make it difficult for block layout transformation. Previous it relies the flag simplify_trivial_iter=true in affine analysis, which is unsafe because simplifying trivial iterators during scheduling stage lose the information of iterators.

cc @spectrometerHBH @junrushao @Hzfengsy

@junrushao
Copy link
Copy Markdown
Member

I’m not sure though if it’s going to affect tuning or not, because MetaSchedule relies on the structural stability of TIR so that its analysis outcome doesn’t change much. Would you like to elaborate? Thanks a lot!

@vinx13
Copy link
Copy Markdown
Member Author

vinx13 commented Sep 29, 2022

it doesn't because the result is consistent. it only affects im2col results, which is one of the preprocessing step before MultiLevelTiling

@vinx13 vinx13 force-pushed the feat/reindex-no-unused branch from 77581ba to 9329868 Compare September 29, 2022 23:28
@vinx13 vinx13 force-pushed the feat/reindex-no-unused branch from 9329868 to 02f1596 Compare September 29, 2022 23:43
@junrushao junrushao merged commit 25a54fb into apache:main Sep 30, 2022
xinetzone pushed a commit to daobook/tvm that referenced this pull request Nov 25, 2022
The existence of unused block iters make it difficult for block layout transformation. Previous it relies the flag `simplify_trivial_iter=true` in affine analysis, which is unsafe because simplifying trivial iterators during scheduling stage lose the information of iterators.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants