Skip to content

fix pred_count accounting in SimplifyCfg#36959

Merged
bors merged 3 commits into
rust-lang:masterfrom
arielb1:simplify-cfg-fixes
Oct 6, 2016
Merged

fix pred_count accounting in SimplifyCfg#36959
bors merged 3 commits into
rust-lang:masterfrom
arielb1:simplify-cfg-fixes

Conversation

@arielb1

@arielb1 arielb1 commented Oct 4, 2016

Copy link
Copy Markdown
Contributor

r? @eddyb

@arielb1 arielb1 changed the title fix 2 bugs in SimplifyCfg fix pred_count accounting in SimplifyCfg Oct 4, 2016

Copy link
Copy Markdown
Contributor

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.

@eddyb

eddyb commented Oct 4, 2016

Copy link
Copy Markdown
Contributor

r=me with a comment added.

@arielb1 arielb1 force-pushed the simplify-cfg-fixes branch from babdff1 to 44ac016 Compare October 4, 2016 14:08
@arielb1

arielb1 commented Oct 4, 2016

Copy link
Copy Markdown
Contributor Author

@bors r=eddyb

@bors

bors commented Oct 4, 2016

Copy link
Copy Markdown
Collaborator

📌 Commit 44ac016 has been approved by eddyb

// goto -> bb1;
// }
//
// bb1: {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! 😍

@arielb1

arielb1 commented Oct 4, 2016

Copy link
Copy Markdown
Contributor Author

@bors r=eddyb

@bors

bors commented Oct 4, 2016

Copy link
Copy Markdown
Collaborator

📌 Commit bfdf437 has been approved by eddyb

sophiajt pushed a commit to sophiajt/rust that referenced this pull request Oct 6, 2016
fix pred_count accounting in SimplifyCfg

r? @eddyb
bors added a commit that referenced this pull request Oct 6, 2016
@bors bors merged commit bfdf437 into rust-lang:master Oct 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants