Skip to content

docs: add info to DebuggingTheCompiler on how to identify an optimizer bug. #25143

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 1 commit into from
May 30, 2019

Conversation

eeckstein
Copy link
Contributor

No description provided.

@eeckstein
Copy link
Contributor Author

@swift-ci smoke test and merge


a. Add the compiler option ``-Xllvm -sil-opt-pass-count=<n>``, where ``<n>``
is the number of optimizations to run.
b. Bisect: find n where the executable crashes, but does not crash with n-1.
Copy link
Contributor

Choose a reason for hiding this comment

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

You should put in that you can use the bisect tool to automate this part.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good idea. I'll add it later

@swift-ci swift-ci merged commit b794cf0 into swiftlang:master May 30, 2019
@eeckstein eeckstein deleted the doc-update branch May 30, 2019 19:35
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