-
Notifications
You must be signed in to change notification settings - Fork 15.2k
[MachineVerifier] Report errors from one thread at a time #111605
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,22 @@ | ||||||
| # RUN: not --crash llc -mtriple=aarch64 -o /dev/null -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s --implicit-check-not="Bad machine code" | ||||||
ellishg marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
ellishg marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
| # REQUIRES: aarch64-registered-target | ||||||
|
|
||||||
| # Check that errors are reported from only one function. | ||||||
|
||||||
| if (AbortOnErrors && FoundErrors) | |
| report_fatal_error("Found "+Twine(FoundErrors)+" machine code errors."); |
The problem I encountered is that if the report is super long, it's possible that the verifier would find another error and start print it before the program aborts. The output would be unreadable since two separate errors were printing at the same time.
This patch aims to fix that scenario by ensuring a single error gets reported at a time. Since we abort after the first error, this test checks that we only print errors from one function.
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 updated the wording to be a bit more clear.
Uh oh!
There was an error while loading. Please reload this page.