https://github.com/Xazax-hun updated https://github.com/llvm/llvm-project/pull/246650
From 1c54be5f4e91e9bc64a94136d82459cf93a46c19 Mon Sep 17 00:00:00 2001 From: Gabor Horvath <[email protected]> Date: Fri, 27 Nov 2026 13:29:49 +0000 Subject: [PATCH 1/2] [analyzer] Add a release note for the performance improvements Assisted-by: Claude Opus 5.5 --- clang/docs/ReleaseNotes.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/clang/docs/ReleaseNotes.md b/clang/docs/ReleaseNotes.md index f8115a8aff6af..78a85fc2e2673 100644 --- a/clang/docs/ReleaseNotes.md +++ b/clang/docs/ReleaseNotes.md @@ -1720,6 +1720,15 @@ documentation](CIR/index.md) for more information regarding ClangIR's status and - The lock-order-reversal check in ``alpha.unix.PthreadLock`` is now disabled by default. It can be re-enabled with the ``WarnOnLockOrderReversal`` option. +- The analyzer is faster and uses less memory. On a random sample of 20 LLVM + and Clang source files, measured on an Apple M2 Max, analysis takes 25% less + time and 7% less peak memory on average (geometric mean; 9-40% less time and + 2-14% less memory per file), with unchanged results. (#GH244626, #GH244655, + #GH244659, #GH244748, #GH244771, #GH244841, #GH244843, #GH244845, #GH244848, + #GH244849, #GH244863, #GH244865, #GH244866, #GH245070, #GH245071, #GH245166, + #GH245167, #GH245630, #GH245674, #GH245795, #GH245798, #GH246072, #GH246313, + #GH246433, #GH246441, #GH246446, #GH246458) + #### Moved checkers The `alpha.cplusplus.UseAfterLifetimeEnd` checker was renamed to `alpha.core.UseAfterLifetimeEnd`. From e05e6b3594c85c69495799b69e46ed9fb71231d7 Mon Sep 17 00:00:00 2001 From: Gabor Horvath <[email protected]> Date: Fri, 27 Nov 2026 13:53:22 +0000 Subject: [PATCH 2/2] [analyzer] Address review comments Assisted-by: Claude Opus 5.5 --- clang/docs/ReleaseNotes.md | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/clang/docs/ReleaseNotes.md b/clang/docs/ReleaseNotes.md index 78a85fc2e2673..fe68c654f74a6 100644 --- a/clang/docs/ReleaseNotes.md +++ b/clang/docs/ReleaseNotes.md @@ -1708,6 +1708,16 @@ documentation](CIR/index.md) for more information regarding ClangIR's status and #### Improvements +- The analyzer is faster and uses less memory. On a random sample of 20 LLVM + and Clang source files, analyzed with the default checkers of + `clang --analyze` on an Apple M2 Max, analysis takes 25% less time and 7% + less peak memory on average (geometric mean; 9-40% less time and 2-14% less + memory per file), with unchanged results. (#GH244626, #GH244655, #GH244659, + #GH244748, #GH244771, #GH244841, #GH244843, #GH244845, #GH244848, #GH244849, + #GH244863, #GH244865, #GH244866, #GH245070, #GH245071, #GH245166, #GH245167, + #GH245630, #GH245674, #GH245795, #GH245798, #GH246072, #GH246313, #GH246433, + #GH246441, #GH246446, #GH246458) + - The user can opt in to analyze functions coming from files participating in unity or jumbo builds as analysis entry points with `-analyzer-config unitybuild-file-extensions=<file-extensions>`. @@ -1720,15 +1730,6 @@ documentation](CIR/index.md) for more information regarding ClangIR's status and - The lock-order-reversal check in ``alpha.unix.PthreadLock`` is now disabled by default. It can be re-enabled with the ``WarnOnLockOrderReversal`` option. -- The analyzer is faster and uses less memory. On a random sample of 20 LLVM - and Clang source files, measured on an Apple M2 Max, analysis takes 25% less - time and 7% less peak memory on average (geometric mean; 9-40% less time and - 2-14% less memory per file), with unchanged results. (#GH244626, #GH244655, - #GH244659, #GH244748, #GH244771, #GH244841, #GH244843, #GH244845, #GH244848, - #GH244849, #GH244863, #GH244865, #GH244866, #GH245070, #GH245071, #GH245166, - #GH245167, #GH245630, #GH245674, #GH245795, #GH245798, #GH246072, #GH246313, - #GH246433, #GH246441, #GH246446, #GH246458) - #### Moved checkers The `alpha.cplusplus.UseAfterLifetimeEnd` checker was renamed to `alpha.core.UseAfterLifetimeEnd`. _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
