]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #102872 - mikebenfield:better-get-discr, r=nagisa
authorbors <bors@rust-lang.org>
Fri, 11 Nov 2022 13:50:32 +0000 (13:50 +0000)
committerbors <bors@rust-lang.org>
Fri, 11 Nov 2022 13:50:32 +0000 (13:50 +0000)
rustc_codegen_ssa: Better code generation for niche discriminants.

In some cases we can avoid arithmetic before checking whether a niche is a tag.

Also rename some identifiers around niches.

This is relevant to #101872


Trivial merge