-
Notifications
You must be signed in to change notification settings - Fork 302
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AffineToStaticLogic] Generalize loop bound computation. (#3234)
The loop bound computation previously relied on methods that attempted to retrieve constant bounds, which would assert if the bounds were non-constant (i.e. AffineMaps). This switches to use the same upstream helpers that are used when lowering Affine loops to SCF loops, which generate constant or dynamic Values using the Arithmetic dialect. This fixes #3127.
- Loading branch information
1 parent
23af016
commit 1e0fb29
Showing
2 changed files
with
37 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters