Using if
-else
to match cmp::Ordering
is better than match
#86391
Labels
A-codegen
Area: Code generation
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
Godbolt
Consider the following snippet:
This is part of
if_else
:...and this is part of
matching
:I think these two should generate the same code, but currently using
match
gives one extra instruction.@rustbot label A-codegen C-enhancement
The text was updated successfully, but these errors were encountered: