diff options
| author | bors <bors@rust-lang.org> | 2021-02-24 07:23:54 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-02-24 07:23:54 +0000 |
| commit | 6b56603e35b39c9f6cc76782330e5e415f9e43d5 (patch) | |
| tree | 5f5f0f380d732ed8434e52fa424145a4bff6b30f /library/std/src/sys/unix/alloc.rs | |
| parent | 301ad8a4fa3ea56fb980443b7997c8f9d72dd717 (diff) | |
| parent | a6dccfeb234f5134ac229c4fd33460d68ab98e1b (diff) | |
| download | rust-6b56603e35b39c9f6cc76782330e5e415f9e43d5.tar.gz rust-6b56603e35b39c9f6cc76782330e5e415f9e43d5.zip | |
Auto merge of #80475 - simonvandel:fix-77355, r=oli-obk
New mir-opt pass to simplify gotos with const values (reopening #77486)
Reopening PR #77486
Fixes #77355
This pass optimizes the following sequence
```rust
bb2: {
_2 = const true;
goto -> bb3;
}
bb3: {
switchInt(_2) -> [false: bb4, otherwise: bb5];
}
```
into
```rust
bb2: {
_2 = const true;
goto -> bb5;
}
```
Diffstat (limited to 'library/std/src/sys/unix/alloc.rs')
0 files changed, 0 insertions, 0 deletions
