Skip to content

Opt comparisons#1797

Merged
Bike merged 5 commits into
mainfrom
opt-comparisons
Jun 27, 2026
Merged

Opt comparisons#1797
Bike merged 5 commits into
mainfrom
opt-comparisons

Conversation

@Bike

@Bike Bike commented Jun 25, 2026

Copy link
Copy Markdown
Member

Some basic compiler optimizations on general comparisons (eq, eql) and numeric comparisons (< etc). Folding them when types rule them out, and using a machine comparison for eq instead of a function call.

@Bike Bike force-pushed the opt-comparisons branch from c594f63 to a455803 Compare June 26, 2026 17:19
Bike added 2 commits June 26, 2026 16:50
/= is only expanded to two-arg-= with two arguments which is fine.
It's kind of rare anyway.
@Bike Bike force-pushed the opt-comparisons branch from a455803 to c168862 Compare June 26, 2026 20:50
@Bike Bike merged commit a35d167 into main Jun 27, 2026
6 checks passed
@Bike Bike deleted the opt-comparisons branch June 27, 2026 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant