[llvm-branch-commits] [llvm] [NFCI] Avoid adding duplicated SpecialCaseList::Sections. (PR #140821)

Vitaly Buka via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue May 20 23:59:48 PDT 2025


vitalybuka wrote:

But why?
We don't use uniqueness any how. We will need to O(N_globs) lookups either way.
I propose to keep all sections as-is, in original order (or reversed), so we can interate them in reverse (or straight) order up to the first match.

https://github.com/llvm/llvm-project/pull/140821


More information about the llvm-branch-commits mailing list