-
Notifications
You must be signed in to change notification settings - Fork 631
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Codegen][GPU] Improve forall hoisting pattern for single trip loops (#…
…18418) For single trip scf.forall loops the `tensor.extract_slice` on the output can be folded away, causing the forall loop hoisting pattern to fail. Single trip loops with processor ID mappings cannot be folded away because they can resolve to an `scf.if`. So this patch extends the loop hoisting pattern to support hoisting in the case of single trip loops where the `tensor.extract_slice` has been folded away.
- Loading branch information
Showing
3 changed files
with
119 additions
and
25 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
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