UPSTREAM PR #30829: Drop redundant/confusing NULL check#666
Conversation
- The pointer cannot be NULL, and test only confuses statis analysers. - Incidentally, undo clang auto-format of displayed tables in the same file.
OverviewAnalysis of 20,082 functions across three binaries shows minimal performance impact. Only 2 functions modified (0.01%), with 1 showing measurable improvement and no regressions detected. Binaries analyzed:
Function Analysis
Source code change: Commit d698a00 removed a redundant NULL check on the The 19.2% throughput improvement is fully explained by the branch elimination and resulting compiler optimizations. This code quality improvement clarified the function's preconditions while yielding measurable performance benefits. The function is part of ML-KEM post-quantum cryptography encoding, currently moderate-priority but increasing in importance as quantum-resistant algorithms see wider adoption. 💬 Questions? Tag @loci-dev |
b5b7577 to
a9c9e17
Compare
421b135 to
770bf14
Compare
Note
Source pull request: openssl/openssl#30829
The pointer cannot be NULL, and test only confuses static analysers.
Incidentally, undo clang auto-format of displayed tables in the same file.
Checklist