diff options
| author | bors <bors@rust-lang.org> | 2022-02-20 05:24:52 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-02-20 05:24:52 +0000 |
| commit | a6fe969541d14ad8ba286c47416e6d3f58a1c9a4 (patch) | |
| tree | b27f415142505e430319ab27eb57b0ed1b963a2b /compiler/rustc_codegen_gcc | |
| parent | 25ad89e47b5a04bdcdd36069ae12f02cc848e553 (diff) | |
| parent | 0783009a801a0b1c2f9e61567b49d12ac2d1792f (diff) | |
| download | rust-a6fe969541d14ad8ba286c47416e6d3f58a1c9a4.tar.gz rust-a6fe969541d14ad8ba286c47416e6d3f58a1c9a4.zip | |
Auto merge of #93387 - JakobDegen:improve_partialeq, r=tmiasko
Extend uninhabited enum variant branch elimination to also affect fallthrough The `uninhabited_enum_branching` mir opt eliminates branches on variants where the data is uninhabited. This change extends this pass to also ensure that the `otherwise` case points to a trivially unreachable bb if all inhabited variants are present in the non-otherwise branches. I believe it was `@scottmcm` who said that LLVM eliminates some of this information in its SimplifyCFG pass. This is unfortunate, but this change should still be at least a small improvement in principle (I don't think it will show up on any benchmarks)
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions
