Skip to content

convert Bpred from linked list to Barray#23180

Merged
thewilsonator merged 2 commits into
dlang:masterfrom
WalterBright:Bpred
May 28, 2026
Merged

convert Bpred from linked list to Barray#23180
thewilsonator merged 2 commits into
dlang:masterfrom
WalterBright:Bpred

Conversation

@WalterBright
Copy link
Copy Markdown
Member

I've wanted to do this for a long time. The list code is clumsy, hard to read, and inefficient. Unfortunately, I could not see much of a path to doing the refactoring incrementally. Meaning that if it fails, it's going to be hard to find the problem.

The array code is much nicer.

@WalterBright WalterBright added Severity:Refactoring No semantic changes to code Compiler:Backend glue code, optimizer, code generation labels May 27, 2026
@dlang-bot
Copy link
Copy Markdown
Contributor

Thanks for your pull request, @WalterBright!

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "master + dmd#23180"

@WalterBright
Copy link
Copy Markdown
Member Author

If this works, I'll convert Bsucc to a Barray next.

@thewilsonator thewilsonator merged commit 1bfff5e into dlang:master May 28, 2026
42 of 43 checks passed
@WalterBright WalterBright deleted the Bpred branch May 28, 2026 03:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Compiler:Backend glue code, optimizer, code generation Severity:Refactoring No semantic changes to code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants