Skip to content
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

Provide way to specify threshold for -Wmisexcept #46534

Open
davidbolvansky opened this issue Aug 16, 2020 · 0 comments
Open

Provide way to specify threshold for -Wmisexcept #46534

davidbolvansky opened this issue Aug 16, 2020 · 0 comments
Labels
bugzilla Issues migrated from bugzilla clang:driver 'clang' and 'clang++' user-facing binaries. Not 'clang-cl'

Comments

@davidbolvansky
Copy link
Collaborator

Bugzilla Link 47190
Version trunk
OS Linux
CC @zygoloid

Extended Description

Nowdays, -Wmisexpect warns too much uselessly, eg.:

../lib/decompress/zstd_decompress_block.c:874:17: warning: Potential performance regression from use of __builtin_expect(): Annotation was correct on 90.49% (1747623 / 1931364) of profiled executions. [-Wmisexpect]

It would be great to provide way to specify threshold to stop this warning.

For example, with -Wmisexpect=70 we would not warn for case above.

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla clang:driver 'clang' and 'clang++' user-facing binaries. Not 'clang-cl'
Projects
None yet
Development

No branches or pull requests

1 participant