Skip to content

Register cache tricks - #187

Merged
davidgiven merged 1 commit into
davidgiven:masterfrom
shattered:_18128294
May 31, 2026
Merged

davidgiven merged 1 commit into
davidgiven:masterfrom
shattered:_18128294

Conversation

@shattered

Copy link
Copy Markdown
Contributor

Preferred values cache is independent from register cache and should be reset separately; I don't recall why FindConflictingRegisters() change was needed, but both of these changes save a few bytes.

@shattered

Copy link
Copy Markdown
Contributor Author

I have used various other tricks to produce more compact code in pdp11, and they do work well (1-2% savings), but cowbe grows by about 10%. I've tried to use Operands, but once RegId switches to uint32, cowbe grows even more...

@davidgiven

Copy link
Copy Markdown
Owner

Merging, thanks!

@davidgiven
davidgiven merged commit a453464 into davidgiven:master May 31, 2026
1 check passed
@shattered
shattered deleted the _18128294 branch June 1, 2026 22:49
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