Skip to content

clang_delta: Use real timeout for old&new passes #229

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

Merged
merged 4 commits into from
Jul 11, 2025

Conversation

emaxx-google
Copy link
Collaborator

The old ClangBinarySearchPass class used to hardcode the 10-second timeout, which was insufficient for big inputs and led to a significant slowdown of the reduction as this heuristic didn't work at all. The new ClangHintsPass didn't have the timeout logic at all, which would result in hanging C-Vise if building Clang AST hangs.

Fix both places to use the --timeout command-line parameter value.

@emaxx-google emaxx-google requested a review from VitaNuo July 10, 2025 12:07
Copy link
Collaborator

@VitaNuo VitaNuo left a comment

Choose a reason for hiding this comment

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

Thanks!

The old ClangBinarySearchPass class used to hardcode the 10-second
timeout, which was insufficient for big inputs and led to a
significant slowdown of the reduction as this heuristic didn't work
at all. The new ClangHintsPass didn't have the timeout logic at all,
which would result in hanging C-Vise if building Clang AST hangs.

Fix both places to use the --timeout command-line parameter value.
@emaxx-google emaxx-google changed the base branch from advance-on-success-kwargs to master July 10, 2025 22:54
@emaxx-google
Copy link
Collaborator Author

Thank you for the reviews!

@emaxx-google emaxx-google merged commit d40d4bb into marxin:master Jul 11, 2025
9 checks passed
@emaxx-google emaxx-google deleted the hint-clang-timeout branch July 11, 2025 00:12
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