-
Notifications
You must be signed in to change notification settings - Fork 4.2k
lifted comparison codegen can be improved #17261
Copy link
Copy link
Closed
Labels
Area-CompilersArea-PerformanceBugLanguage-C#good first issueThe issue is reserved for a first time, non-Microsoft contributorThe issue is reserved for a first time, non-Microsoft contributorhelp wantedThe issue is "up for grabs" - add a comment if you are interested in working on itThe issue is "up for grabs" - add a comment if you are interested in working on it
Milestone
Metadata
Metadata
Assignees
Labels
Area-CompilersArea-PerformanceBugLanguage-C#good first issueThe issue is reserved for a first time, non-Microsoft contributorThe issue is reserved for a first time, non-Microsoft contributorhelp wantedThe issue is "up for grabs" - add a comment if you are interested in working on itThe issue is "up for grabs" - add a comment if you are interested in working on it
Type
Fields
Give feedbackNo fields configured for issues without a type.
In the codegen of lifted comparison operators some conditional branches seem unnecessary.
They only serve to shortcircuit trivial bool operators over locals - that does not seem very profitable.
We should do something like in: dotnet/corefx#15941
( Also check dotnet/corefx#17535 if that is better )
Example:
We emit lifted equality for
leftandrightas:A more efficient would be: