[all-commits] [llvm/llvm-project] 0456ac: [clang/Sema] Follow-up for fix of non-deterministi...
Argyrios Kyrtzidis via All-commits
all-commits at lists.llvm.org
Tue Oct 11 13:44:04 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0456acbfb942f127359a8defd1b4f1f44420df3e
https://github.com/llvm/llvm-project/commit/0456acbfb942f127359a8defd1b4f1f44420df3e
Author: Argyrios Kyrtzidis <kyrtzidis at apple.com>
Date: 2022-10-11 (Tue, 11 Oct 2022)
Changed paths:
M clang/include/clang/Sema/Scope.h
M clang/include/clang/Sema/Sema.h
M clang/lib/Sema/SemaDecl.cpp
Log Message:
-----------
[clang/Sema] Follow-up for fix of non-deterministic order of `-Wunused-variable` diagnostic
Commit `371883f46dc23f8464cbf578e2d12a4f92e61917` caused a noticeable compile-time regression (about 0.4% geomean at -O0):
http://llvm-compile-time-tracker.com/compare.php?from=92233159035d1b50face95d886901cf99035bd99&to=371883f46dc23f8464cbf578e2d12a4f92e61917&stat=instructions
To address this switch `Scope::DeclSetTy` back to a `SmallPtrSet` and change `Sema::ActOnPopScope` to explicitly order the diagnostics that this function emits.
Differential Revision: https://reviews.llvm.org/D135490
More information about the All-commits
mailing list