Uh oh!
There was an error while loading. Please reload this page.
Improve OwnedSlice and use it in HIR - #30095
Conversation
eddyb
commented
Nov 28, 2015
Why aren't we using |
petrochenkov
commented
Nov 28, 2015
|
petrochenkov
commented
Nov 28, 2015
Yep, |
petrochenkov
commented
Nov 29, 2015
Updated. |
Gankra
commented
Nov 29, 2015
For reference, the RawVec type enables |
bors
commented
Dec 4, 2015
☔ The latest upstream changes (presumably #29850) made this pull request unmergeable. Please resolve the merge conflicts. |
petrochenkov
commented
Dec 5, 2015
Rebased. |
bors
commented
Dec 6, 2015
☔ The latest upstream changes (presumably #30241) made this pull request unmergeable. Please resolve the merge conflicts. |
petrochenkov
commented
Dec 6, 2015
Rebased. |
nrc
commented
Dec 6, 2015
Still failing a test and looks genuine |
nrc
commented
Dec 6, 2015
I think the end result would be less confusing if you don't use the name |
nrc
commented
Dec 7, 2015
r+ with the above two comments addressed |
petrochenkov
commented
Dec 7, 2015
The idea was to 1) Keep the code changes small (so, the name
Hmm, it certainly doesn't segfault on my machine, I'll try to rerun on something else. |
nrc
commented
Dec 7, 2015
there is already code churn from |
petrochenkov
commented
Dec 7, 2015
I've renamed |
petrochenkov
commented
Dec 8, 2015
Some investigation results: First of all, I don't know if this PR introduces this codegen bug, or just uncovers some existing one. |
bors
commented
Dec 8, 2015
☔ The latest upstream changes (presumably #30087) made this pull request unmergeable. Please resolve the merge conflicts. |
nrc
commented
Dec 8, 2015
This sounds like a great case for RR |
bors
commented
Dec 9, 2015
☔ The latest upstream changes (presumably #30145) made this pull request unmergeable. Please resolve the merge conflicts. |
bors
commented
Dec 16, 2015
☔ The latest upstream changes (presumably #30206) made this pull request unmergeable. Please resolve the merge conflicts. |
bors
commented
Dec 17, 2015
☔ The latest upstream changes (presumably #30341) made this pull request unmergeable. Please resolve the merge conflicts. |
Part of rust-lang#30095 not causing mysterious segfaults. r? @nrc
Part of rust-lang#30095 not causing mysterious segfaults. r? @nrc
Part of rust-lang/rust#30095 not causing mysterious segfaults. r? @nrc
Most of the changes are to support switching between vector-like containers in HIR and beefing up
OwnedSlice's interface.The actual change from
VectoOwnedSliceis one line, and it can be changed back if necessary.Memory consumption for librustc, libcore and libstd is below under the spoilers - the changes are small, but consistent.
libcore is the most noticeable, 5.7% less memory immediately after lowering to HIR, 4% less memory during type checking.
Before:
After:
r? @nrc or @eddyb