-
Notifications
You must be signed in to change notification settings - Fork 13.4k
[Clang][Driver] Add new flags to control IR verification #68172
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
Conversation
8a02263
to
634c0f8
Compare
634c0f8
to
a5414db
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, I tried out the GH feature to directly edit a file in the PR to fix a spelling issue
@@ -5150,9 +5150,11 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, | |||
const bool IsAssertBuild = true; | |||
#endif | |||
|
|||
// Disable the verification pass in -asserts builds. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I might be missing something here, but doesn't this disable the verifier for builds without assertions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I edited the line to append the unless otherwise specified
, since now we allow overriding that with the new flag.
Enables or disables verification of the generated LLVM IR.
Users can pass this to turn on extra verification to catch certain types of
compiler bugs at the cost of extra compile time.