forked from iree-org/iree
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ExternalInterfaces] Make fill non-hoistableLeafOp, hoist linalg init…
… operands (iree-org#18634) This PR changes the HoistableOpInterface implementation for LinalgOps to make DPS init operands hoistable. If there is real computation on the init of a linalg op, then we would want to hoist that computation. The main way the current policy (not hoisting init operands) affects hoisting today is by preventing linalg.fill ops from being hoisted into splat constants, since the init operands are usually linalg.fill or tensor.empty. Since we want to preserve the behavior of not hoisting fills (and instead fusing them with consumers to handle in codegen), the interface implementation now treats fill ops as non-HoistableLeafOps. This PR disables the top-k test on rocm, since it exposed a bug in rocm codegen, but we want to move progress forward on GPU data tiling. The test should be added back once the bug is resolved. --------- Signed-off-by: Max Dawkins <max.dawkins@gmail.com>
- Loading branch information
Showing
3 changed files
with
24 additions
and
9 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