Skip to content
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

[MIR] Change SimplifyCfg pass to use BitVec #31447

Merged
merged 1 commit into from
Feb 23, 2016

Conversation

nagisa
Copy link
Member

@nagisa nagisa commented Feb 6, 2016

BitVector is more space efficient.

@rust-highfive
Copy link
Collaborator

r? @brson

(rust_highfive has picked a reviewer for you, use r? to override)

@nagisa nagisa force-pushed the mir-cfgsimplify-bitvec branch 2 times, most recently from 55003d9 to 950e58a Compare February 6, 2016 13:52
@bors
Copy link
Contributor

bors commented Feb 9, 2016

☔ The latest upstream changes (presumably #31425) made this pull request unmergeable. Please resolve the merge conflicts.

@bors
Copy link
Contributor

bors commented Feb 18, 2016

☔ The latest upstream changes (presumably #31600) made this pull request unmergeable. Please resolve the merge conflicts.

@bluss
Copy link
Member

bluss commented Feb 19, 2016

This was briefly discussed here #30238 (comment), merely some guesses on how big the dataset really is, and what's the appropriate fix. BitVec seems better than Vec either way.

BitVector is much more space efficient.
@nagisa
Copy link
Member Author

nagisa commented Feb 23, 2016

Rebased. This is a pretty simple one and independent from others so could land right now.

r? @nikomatsakis

@rust-highfive rust-highfive assigned nikomatsakis and unassigned brson Feb 23, 2016
type Item = usize;
fn next(&mut self) -> Option<usize> {
while self.current == 0 {
self.current = if let Some(&i) = self.iter.next() {
Copy link
Contributor

Choose a reason for hiding this comment

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

It seems like it'd be easier/clearer to just keep a slice with some indices here.

Copy link
Contributor

Choose a reason for hiding this comment

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

(But don't feel you have to change it.)

@nikomatsakis
Copy link
Contributor

@bors r+

@bors
Copy link
Contributor

bors commented Feb 23, 2016

📌 Commit b92e243 has been approved by nikomatsakis

@bors
Copy link
Contributor

bors commented Feb 23, 2016

⌛ Testing commit b92e243 with merge 6ffd7cd...

bors added a commit that referenced this pull request Feb 23, 2016
@bors bors merged commit b92e243 into rust-lang:master Feb 23, 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.

6 participants