diff options
| author | Justin Stitt <justinstitt@google.com> | 2022-08-14 13:28:49 -0700 |
|---|---|---|
| committer | Nick Desaulniers <ndesaulniers@google.com> | 2022-08-14 13:39:57 -0700 |
| commit | 333771f3558c81390a0e5d715ad8d1e419050b66 (patch) | |
| tree | 6466307f020ac19a3b6db2832358cce7c9bd4afe /lldb/test/API/python_api/thread/TestThreadAPI.py | |
| parent | 0299ebc1bdc9fca176ebcacd590c90dc77a47551 (diff) | |
[Sema] Avoid isNullPointerConstant invocation
DiagnoseNullConversion is needlessly calling isNullPointerConstant which
is an expensive routine due to its calls to a constant evaluator --
which we don't need.
Building the Linux Kernel (x86_64) with this fix has improved build
times by ~2.1%. This is mainly due to the following methods no longer
needing to be called anywhere near as often:
1) ExprConstant::CheckICE (reduced CPU cycles by ~90%)
2) IntExprEvaluator::VisitBinaryOperator (reduced CPU cycles by ~50%)
Reviewed By: rtrieu, nickdesaulniers
Differential Revision: https://reviews.llvm.org/D131532
Diffstat (limited to 'lldb/test/API/python_api/thread/TestThreadAPI.py')
0 files changed, 0 insertions, 0 deletions
