Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[rs2bril] Array initialization using Bril loop instead of unrolling #340

Merged
merged 3 commits into from
Oct 22, 2024

Conversation

oflatt
Copy link
Contributor

@oflatt oflatt commented Oct 21, 2024

This PR improves the rs2bril compiler by compiling array initializations with repetition syntax to use a Bril loop. This avoids creating thousands of lines of bril code that populates arrays.

Fun side note, without this change eggcc hangs for unknown reasons (probably performance problems with the pointer analysis)

Copy link
Contributor

@Pat-Lafon Pat-Lafon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Happy people are finding this tool useful.

@oflatt oflatt requested a review from Pat-Lafon October 21, 2024 18:19
@oflatt
Copy link
Contributor Author

oflatt commented Oct 21, 2024

Yay, good suggestions

@sampsyo
Copy link
Owner

sampsyo commented Oct 22, 2024

Excellent! Good idea!!

@sampsyo sampsyo merged commit 2a9c5bb into sampsyo:main Oct 22, 2024
14 of 17 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.

3 participants