rust/compiler/rustc_mir/src
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
..
borrow_check Rollup merge of #81629 - 1000teslas:issue-81365-fix, r=Aaron1011 2021-02-23 16:10:20 +01:00
const_eval Auto merge of #82124 - tmiasko:op-ty-ref, r=oli-obk 2021-02-20 10:20:42 +00:00
dataflow Rollup merge of #82091 - henryboisdequin:use-place-ref-more, r=RalfJung 2021-02-23 02:51:50 +01:00
interpret New mir-opt pass to simplify gotos with const values 2021-02-22 21:03:57 +01:00
monomorphize Only store a LocalDefId in hir::ImplItem. 2021-02-15 19:32:29 +01:00
transform Auto merge of #80475 - simonvandel:fix-77355, r=oli-obk 2021-02-24 07:23:54 +00:00
util Fix mir-cfg dumps 2021-02-22 17:36:30 +03:00
lib.rs Prevent query cycles during inlining 2021-01-23 16:51:22 +00:00
shim.rs Replace let Some(..) = with .is_some() 2021-01-17 19:06:12 -05:00