]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #70595 - wesleywiser:remove_unused_discriminant_reads, r=oli-obk
authorMazdak Farrokhzad <twingoow@gmail.com>
Thu, 2 Apr 2020 22:32:01 +0000 (00:32 +0200)
committerGitHub <noreply@github.com>
Thu, 2 Apr 2020 22:32:01 +0000 (00:32 +0200)
commit4cba69e5851d6b515afb970880f6fab0881b82f9
tree05b6c4071d7e6d75e00c4c8c10b5ab9a3a61b536
parent1eabbd024c0e49d8ca66c804f502c65cbad90ced
parent75e2e8c71b4988324ebed0696d0177030d26be1d
Rollup merge of #70595 - wesleywiser:remove_unused_discriminant_reads, r=oli-obk

Remove unused discriminant reads from MIR bodies

Allow the `SimplifyLocals` pass to remove reads of discriminants if the
read is never used.

Fixes #70531

r? @oli-obk