-
Notifications
You must be signed in to change notification settings - Fork 675
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DispatchCreation] Add support for hoisting Flow ops. #20346
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: hanhanW <hanhan0912@gmail.com>
Signed-off-by: hanhanW <hanhan0912@gmail.com>
Signed-off-by: hanhanW <hanhan0912@gmail.com>
9640357
to
5cd8ce5
Compare
Signed-off-by: hanhanW <hanhan0912@gmail.com>
compiler/src/iree/compiler/Dialect/Util/Analysis/Constant/ConstExpr.cpp
Outdated
Show resolved
Hide resolved
Remove the approval because there is a new issue in custom_dispatch.
Signed-off-by: hanhanW <hanhan0912@gmail.com>
UnhoistableOpInterfaceHelper< | ||
IREE::Flow::DispatchWorkgroupCountOp>::registerOpInterface(context); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It turns out that I just need to add the op to unhoistable list, which makes sense to me.
@MaheshRavishankar can I get a review from you? I dismissed the approval because I thought there are more things to do. It turns out that I just need to add the workgroup count op to unhoistable list. |
The revision enables the hoisting of constants and weights for data-tiling. It also fixes a bug in hoisting the constants.
The DispatchWorkgroupCountOp is marked as unhoistable. It happens in custom_dispatch, which is not on regular path, so new tests are not added.