[all-commits] [llvm/llvm-project] e57963: [clang] Avoid unnecessary call to clang::Namespace...

Zequan Wu via All-commits all-commits at lists.llvm.org
Fri Nov 8 11:19:07 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e5796321cee0f6b3c2fbf33813d6b3af1ddd8f18
      https://github.com/llvm/llvm-project/commit/e5796321cee0f6b3c2fbf33813d6b3af1ddd8f18
  Author: Zequan Wu <zequanwu at google.com>
  Date:   2024-11-08 (Fri, 08 Nov 2024)

  Changed paths:
    M clang/lib/AST/Decl.cpp

  Log Message:
  -----------
  [clang] Avoid unnecessary call to clang::NamespaceDecl::isRedundantInlineQualifierFor(). (#115196)

We observed 2X slowdown in lldb's expression evaluation with
https://github.com/llvm/llvm-project/pull/109147 in some cases. It turns
out that calling `isRedundantInlineQualifierFor` is quite expensive.
Using short-circuit evaluation in the if statement to avoid unnecessary
calls to that function.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list