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

Move some large stack frames off recursive paths. #8507

Merged
merged 3 commits into from
Dec 13, 2024

Conversation

abadams
Copy link
Member

@abadams abadams commented Dec 12, 2024

There were several large (>2kb) stack frames on recursive paths, which
invites stack overflow. In all cases the code could be moved into a
helper function out of the recursive path, eliminating the problem. Some
of these stack frames were also shrunk by removing state from the Intrin
IR matcher, and removing unnecessary precision in the IsInt and IsUInt
IR matchers.

Also added IRMatcher helpers for a few more intrinsics

Note the tables in HexagonOptimize are unchanged, they just got indented
more by being moved into a lambda.

abadams and others added 3 commits December 12, 2024 12:24
There were several large (>2kb) stack frames on recursive paths, which
invites stack overflow. In all cases the code could be moved into a
helper function out of the recursive path, eliminating the problem. Some
of these stack frames were also shrunk by removing state from the Intrin
IR matcher, and removing unnecessary precision in the IsInt and IsUInt
IR matchers.

Also added IRMatcher helpers for a few more intrinsics

Note the tables in HexagonOptimize are unchanged, they just got indented
more by being moved into a lambda.
@steven-johnson steven-johnson self-requested a review December 12, 2024 23:45
@abadams abadams merged commit 5f17d6f into main Dec 13, 2024
19 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