rust/compiler/rustc_mir
bors 6b56603e35 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;
}
```
2021-02-24 07:23:54 +00:00
..
src Auto merge of #80475 - simonvandel:fix-77355, r=oli-obk 2021-02-24 07:23:54 +00:00
Cargo.toml bumped smallvec deps 2021-02-14 18:03:11 +03:00