diff options
| author | bors <bors@rust-lang.org> | 2018-08-21 06:40:20 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-08-21 06:40:20 +0000 |
| commit | 70c33bb8e2649a019e48515128a0b447dfe66f6b (patch) | |
| tree | 14d1b86a3a2203429aa468a70de5f783b74caaeb /src/libsyntax/parse | |
| parent | 1558ae7cfd5e1190d3388dcc6f0f734589e4e478 (diff) | |
| parent | 79a905ef305b1c3048ad2535887951721ab65f5c (diff) | |
| download | rust-70c33bb8e2649a019e48515128a0b447dfe66f6b.tar.gz rust-70c33bb8e2649a019e48515128a0b447dfe66f6b.zip | |
Auto merge of #53080 - hermord:rc-opt, r=alexcrichton
Change `Rc::inc_{weak,strong}` to better hint optimization to LLVM
As discussed in #13018, `Rc::inc_strong` and `Rc::inc_weak` are changed to allow compositions of `clone` and `drop` to be better optimized. Almost entirely as in [this comment](https://github.com/rust-lang/rust/issues/13018#issuecomment-408642184), except that `abort` on zero is added so that a `drop(t.clone())` does not produce a zero check followed by conditional deallocation.
This is different from #21418 in that it doesn't rely on `assume`, avoiding the prohibitive compilation slowdown.
[Before and after IR](https://gist.github.com/hermord/266e55451b7fe0bb8caa6e35d17c86e1).
Diffstat (limited to 'src/libsyntax/parse')
0 files changed, 0 insertions, 0 deletions
