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

compile time regression introduced by Sema checking for __builtin_counted_by_ref #115520

Open
rapidsna opened this issue Nov 8, 2024 · 0 comments
Assignees
Labels
clang:bounds-safety Issue/PR relating to the experimental -fbounds-safety feature in Clang

Comments

@rapidsna
Copy link
Contributor

rapidsna commented Nov 8, 2024

As reported by @nikic
#114495 (comment)

This is likely because the checks are currently implemented to walk through the whole child nodes for every single assignments. We may be able to remove the overhead by rolling up the information about usage of counted_by or __builtin_counted_by_ref to the assignment, instead of re-visiting child nodes.

@rapidsna rapidsna added the clang:bounds-safety Issue/PR relating to the experimental -fbounds-safety feature in Clang label Nov 8, 2024
@rapidsna rapidsna self-assigned this Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang:bounds-safety Issue/PR relating to the experimental -fbounds-safety feature in Clang
Projects
None yet
Development

No branches or pull requests

1 participant