Skip to content

Add named_op and cast_operand passes, keep --score-cmd output - #3

Merged
MrSapps merged 1 commit into
claude/blissful-johnson-1w5a5vfrom
claude/named-op-cast-operand
Oct 1, 2026
Merged

MrSapps merged 1 commit into
claude/blissful-johnson-1w5a5vfrom
claude/named-op-cast-operand

Conversation

@MrSapps

@MrSapps MrSapps commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

named_op swaps an operator for a named out-of-line method given with --op-alias OP=NAME (a * b <-> a.Multiply_408680(b), -a <-> a.Negate_4086A0()), which controls whether VC6 inlines that use and so its inline budget.

cast_operand casts an operand of / % >> < > + - * == != to an integer type, or drops or changes an existing integer cast (div vs idiv, shr vs sar, byte maths).

With --score-cmd, the command's output is written to score_output.txt next to each improvement, so a custom scorer can show its asm diff.

named_op swaps an operator for a named out-of-line method given with
--op-alias OP=NAME (a * b <-> a.Multiply_408680(b), -a <-> a.Negate_4086A0()),
which controls whether VC6 inlines that use and so its inline budget.

cast_operand casts an operand of / % >> < > + - * == != to an integer type,
or drops or changes an existing integer cast (div vs idiv, shr vs sar, byte maths).

With --score-cmd, the command's output is written to score_output.txt next to
each improvement, so a custom scorer can show its asm diff.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MrSapps
MrSapps merged commit ac26a44 into claude/blissful-johnson-1w5a5v Oct 1, 2026
6 checks passed
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.

2 participants