-
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
Rollup of 4 pull requests #34315
Merged
Merged
Rollup of 4 pull requests #34315
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Member
Manishearth
commented
Jun 16, 2016
- Successful merges: save-analysis: some tweaks #34298, Fix issue where rustbuild expected msvc to have ar #34302, [MIR] Cache drops for early scope exits #34307, Revert using ? for try! in the libsyntax pretty printer #34312
- Failed merges:
Split variable and function kinds to give more information. Give children for methods, structs, enums, and traits.
This is non-null if the method is in a (non-inherent) impl and in that case will be the id for the method declaration in the implemented trait.
Signed-off-by: Peter Atashian <retep998@gmail.com>
The use of ...?instead of try!(...) in libsyntax makes extracting libsyntax into syntex quite painful since it's not stable yet. This makes backports take a much longer time and causes a lot of problems for the syntex dependencies. Even if it was, it'd take a few release cycles until syntex would be able to use it. Since it's not stable and that this feature is just syntax sugar, it would be most helpful if we could remove it. cc rust-lang#34311
Previously we would rebuild all drops on every early exit from a scope, which for code like: ```rust match x { a => return 1, b => return 2, ... z => return 27 } ``` would produce 27 exactly same chains of drops for each return, a O(n*m) explosion in drops.
save-analysis: some tweaks
…=alexcrichton Fix issue where rustbuild expected msvc to have ar I made `cc2ar` return an `Option`. r? @alexcrichton
[MIR] Cache drops for early scope exits Previously we would rebuild all drops on every early exit from a scope, which for code like: ```rust match x { A => return 1, B => return 2, ... C => return 27 } ``` would produce 27 exactly same chains of drops for each return, basically a `O(n*m)` explosion. [This](https://cloud.githubusercontent.com/assets/679122/16125192/3355e32c-33fb-11e6-8564-c37cab2477a0.png) is such a case for a match on 80-variant enum with 3 droppable variables in scope. For [`::core::iter::Iterator::partial_cmp`](https://github.com/rust-lang/rust/blob/6edea2cfda2818f0a76f4bac2d18a30feb54c137/src/libcore/iter/iterator.rs#L1909) the CFG looked like [this](https://cloud.githubusercontent.com/assets/679122/16122708/ce0024d8-33f0-11e6-93c2-e1c44b910db2.png) (after initial SimplifyCfg). With this patch the CFG looks like [this](https://cloud.githubusercontent.com/assets/679122/16122806/294fb16e-33f1-11e6-95f6-16c5438231af.png) instead. Some numbers (overall very small wins, however neither of the crates have many cases which abuse this corner case): | | old time | old rss | new time | new rss | |-------------------------|----------|---------|----------|----------| | core dump | 0.879 | 224MB | 0.871 | 223MB | | core MIR passes | 0.759 | 224MB | 0.718 | 223MB | | core MIR codegen passes | 1.762 | 230MB | 1.442 | 228MB | | core trans | 3.263 | 279MB | 3.116 | 278MB | | core llvm passes | 5.611 | 263MB | 5.565 | 263MB | | std dump | 0.487 | 190MB | 0.475 | 192MB | | std MIR passes | 0.311 | 190MB | 0.288 | 192MB | | std MIR codegen passes | 0.753 | 195MB | 0.720 | 197MB | | std trans | 2.589 | 287MB | 2.523 | 287MB | | std llvm passes | 7.268 | 245MB | 7.447 | 246MB |
Revert using ? for try! in the libsyntax pretty printer The use of ...?instead of try!(...) in libsyntax makes extracting libsyntax into syntex quite painful since it's not stable yet. This makes backports take a much longer time and causes a lot of problems for the syntex dependencies. Even if it was, it'd take a few release cycles until syntex would be able to use it. Since it's not stable and that this feature is just syntax sugar, it would be most helpful if we could remove it. cc rust-lang#34311
r? @sfackler (rust_highfive has picked a reviewer for you, use r? to override) |
@bors r+ p=10 |
📌 Commit 019c594 has been approved by |
This was referenced Jun 17, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.