about summary refs log tree commit diff
path: root/compiler/rustc_mir/src/transform/unreachable_prop.rs
AgeCommit message (Collapse)AuthorLines
2021-09-07Move rustc_mir::transform to rustc_mir_transform.Camille GILLOT-112/+0
2021-06-01Reland - Report coverage `0` of dead blocksRich Kadel-1/+1
Fixes: #84018 With `-Z instrument-coverage`, coverage reporting of dead blocks (for example, blocks dropped because a conditional branch is dropped, based on const evaluation) is now supported. Note, this PR relands an earlier, reverted PR that failed when compiling generators. The prior issues with generators has been resolved and a new test was added to prevent future regressions. Check out the resulting changes to test coverage of dead blocks in the test coverage reports in this PR.
2021-05-11Revert "Auto merge of #84797 - richkadel:cover-unreachable-statements, ↵Rich Kadel-1/+1
r=tmandry" This reverts commit e5f83d24aee866a14753a7cedbb4e301dfe5bef5, reversing changes made to ac888e8675182c703c2cd097957878faf88dad94.
2021-05-01Report coverage `0` of dead blocksRich Kadel-1/+1
Fixes: #84018 With `-Z instrument-coverage`, coverage reporting of dead blocks (for example, blocks dropped because a conditional branch is dropped, based on const evaluation) is now supported. If `instrument-coverage` is enabled, `simplify::remove_dead_blocks()` finds all dropped coverage `Statement`s and adds their `code_region`s as `Unreachable` coverage `Statement`s to the `START_BLOCK`, so they are still included in the coverage map. Check out the resulting changes in the test coverage reports in this PR.
2021-03-05Bump all mir_opt_level 3 to 4Santiago Pastorino-2/+2
2021-03-05Extract mir_opt_level to a method and use Option to be able to know if the ↵Santiago Pastorino-1/+1
value is provided or not
2020-11-18move checks later into optimization passescjkenn-6/+6
2020-11-16add optimization fuel checks to some mir passescjkenn-0/+6
2020-10-10Refactor how SwitchInt stores jump targetsJonas Schievink-9/+11
2020-10-04Remember the `MirSource` for each `Body`Dylan MacKenzie-2/+2
2020-08-30mv compiler to compiler/mark-0/+104