-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Conversation
r? @brson (rust_highfive has picked a reviewer for you, use r? to override) |
55003d9
to
950e58a
Compare
☔ The latest upstream changes (presumably #31425) made this pull request unmergeable. Please resolve the merge conflicts. |
950e58a
to
ebb5b7a
Compare
☔ The latest upstream changes (presumably #31600) made this pull request unmergeable. Please resolve the merge conflicts. |
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.
ebb5b7a
to
b92e243
Compare
Rebased. This is a pretty simple one and independent from others so could land right now. |
type Item = usize; | ||
fn next(&mut self) -> Option<usize> { | ||
while self.current == 0 { | ||
self.current = if let Some(&i) = self.iter.next() { |
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 seems like it'd be easier/clearer to just keep a slice with some indices here.
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.
(But don't feel you have to change it.)
@bors r+ |
📌 Commit b92e243 has been approved by |
BitVector is more space efficient.
BitVector is more space efficient.