-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[opt] Eliminate assertions with non-zero const conditions #877
Conversation
Oh I pushed to the main repo by accident. I think it doesn't matter if I delete this branch after squash and merge... |
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.
Cool!
Btw, could you also perform a test comparing with |
Congratuation on gaining write-access! We need more discussion on how to make use of it instead of abuse of it. First of all, can a PR author with write-access merge PRs like this on their own without a confirm from the team leader? If we don't make restrictions on review, it will be hard to track BUG; if we restrict too much on review, will definitely increase @yuanming-hu's work as our community grows. We may want to merge some non-critical PRs without the leader's confirm if at least one reviewer approved? If so, write-access members will take more responsibility and their mind should be clear and be cation about mistakes like #879. |
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.
LGTM!
Thanks for thinking about this. I think having one review approval before merging would be good enough. |
I'm not sure what you mean. Could you please explain it in more detail? And I think |
Great! Let's merge this then. And later with #839. |
Oh, did |
The 0 statements was probably due to the mismatch of tests... I can't reproduce it now. |
Thanks for @archibate 's idea!
Related PR = #839 (comment)
Before:
After:
WDYT if we optimize a kernel to 0 statements... I set it to 1 statement to avoid division by 0 here. But it's causing too much "improvement" to the geometric mean: nearly 1.02x.
[Click here for the format server]