Skip to content

[Pass][Bugfix] Disable re-use of non-flat buffers in StorageRewrite. - #10787

Merged
masahi merged 2 commits into
apache:mainfrom
Lunderberg:storagerewrite_flat_memory_only
Mar 30, 2022
Merged

[Pass][Bugfix] Disable re-use of non-flat buffers in StorageRewrite.#10787
masahi merged 2 commits into
apache:mainfrom
Lunderberg:storagerewrite_flat_memory_only

Conversation

@Lunderberg

Copy link
Copy Markdown
Contributor

As a follow-up from #9727, restricting StorageRewrite to only modify flat memory buffers. When rewriting, the existing algorithm in StorageRewrite flattens N-d allocations into 1-d allocations, preventing them from being exposed to the codegen.

As a follow-up from apache#9727,
restricting StorageRewrite to only modify flat memory buffers. When
rewriting, the existing algorithm in StorageRewrite flattens N-d
allocations into 1-d allocations, preventing them from being exposed
to the codegen.
Previously, these were ignored entirely. This worked so long as all
allocations were 1-d, as `StorageRewrite` erroneously flattened merged
arrays into 1-d.
@Lunderberg
Lunderbergforce-pushed the storagerewrite_flat_memory_only branch from 7ad89e6 to 5a4b1c3CompareMarch 30, 2022 13:44
@Lunderberg

Copy link
Copy Markdown
ContributorAuthor

Passed CI, but needed to rebase on main to resolve conflict with #10788

@masahi
masahi merged commit 897019d into apache:mainMar 30, 2022
@Lunderberg
Lunderberg deleted the storagerewrite_flat_memory_only branch March 30, 2022 21:24
pfk-beta pushed a commit to pfk-beta/tvm that referenced this pull request Apr 11, 2022
…pache#10787)
* [Pass][Bugfix] Disable re-use of non-flat buffers in StorageRewrite.
As a follow-up from apache#9727,
restricting StorageRewrite to only modify flat memory buffers. When
rewriting, the existing algorithm in StorageRewrite flattens N-d
allocations into 1-d allocations, preventing them from being exposed
to the codegen.
* Bugfix, flattening of Allocate/AllocateConst extents
Previously, these were ignored entirely. This worked so long as all
allocations were 1-d, as `StorageRewrite` erroneously flattened merged
arrays into 1-d.
mehrdadh pushed a commit to mehrdadh/tvm that referenced this pull request Apr 11, 2022
…pache#10787)
* [Pass][Bugfix] Disable re-use of non-flat buffers in StorageRewrite.
As a follow-up from apache#9727,
restricting StorageRewrite to only modify flat memory buffers. When
rewriting, the existing algorithm in StorageRewrite flattens N-d
allocations into 1-d allocations, preventing them from being exposed
to the codegen.
* Bugfix, flattening of Allocate/AllocateConst extents
Previously, these were ignored entirely. This worked so long as all
allocations were 1-d, as `StorageRewrite` erroneously flattened merged
arrays into 1-d.
Sign up for freeto 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.

2 participants

@Lunderberg@masahi