[all-commits] [llvm/llvm-project] 301d00: [SpecialCaseList] Support early return from matchi...

Vitaly Buka via All-commits all-commits at lists.llvm.org
Mon Oct 13 17:19:44 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 301d0089fe408ef34907e74a5abb613aa68d2680
      https://github.com/llvm/llvm-project/commit/301d0089fe408ef34907e74a5abb613aa68d2680
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2025-10-14 (Tue, 14 Oct 2025)

  Changed paths:
    M clang/lib/Basic/Diagnostic.cpp
    M llvm/include/llvm/Support/SpecialCaseList.h
    M llvm/lib/Support/SpecialCaseList.cpp

  Log Message:
  -----------
  [SpecialCaseList] Support early return from matching (#163279)

On average it saves half positive of Glob matching.

However, in real build most SpecialCaseList unmatched,
this change should not affect this case. 

To be able to do so without breaking behavior, we
need to re-order matches according precedence.

Usually it's LineNo, and it's already ordered,
but Diagnostic requires reordering by rule length.

Co-authored-by: Rahul Joshi <rjoshi at nvidia.com>



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