-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
fix pred_count accounting in SimplifyCfg #36959
Conversation
self.pred_count[*start] -= 1; | ||
|
||
if self.pred_count[*start] == 1 { | ||
self.pred_count[*start] = 0; |
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.
Took me a while to get that this is because *start
becomes dead here and thus shouldn't count.
There should be a comment making this (or whatever the correct explanation) clear to future readers.
r=me with a comment added. |
babdff1
to
44ac016
Compare
@bors r=eddyb |
📌 Commit 44ac016 has been approved by |
// goto -> bb1; | ||
// } | ||
// | ||
// bb1: { |
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.
Nice! 😍
@bors r=eddyb |
📌 Commit bfdf437 has been approved by |
fix pred_count accounting in SimplifyCfg r? @eddyb
r? @eddyb