Skip to content

Improve logging on mismatched values#1318

Merged
llvm-beanz merged 2 commits into
llvm:mainfrom
llvm-beanz:cbieneman/improve-failure-logging
Jun 17, 2026
Merged

Improve logging on mismatched values#1318
llvm-beanz merged 2 commits into
llvm:mainfrom
llvm-beanz:cbieneman/improve-failure-logging

Conversation

@llvm-beanz

Copy link
Copy Markdown
Collaborator

This change is just intended to improve the logging for mismatched values by logging the specific value that mismatched (helpful for large comparison buffers) and printing floathex or hex depending on of the value is a floating point type.

This change is just intended to improve the logging for mismatched values by logging the specific value that mismatched (helpful for large comparison buffers) and printing floathex or hex depending on of the value is a floating point type.
@llvm-beanz llvm-beanz changed the title [NFC] Improve logging on mismatched values Improve logging on mismatched values Jun 17, 2026

@bob80905 bob80905 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This LGTM, but I must say I do like the early return like before.
If we encounter a large buffer array like you mention, then we may see "Mismatch at element..." repeated hundreds of times, when only the first mismatch might be enough for our purposes.
It could potentially blow up the log size on the pipelines.

@llvm-beanz llvm-beanz merged commit 39a51e7 into llvm:main Jun 17, 2026
25 of 27 checks passed
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.

5 participants