LLVM/project 3d1caf5 — clang/lib/AST AttrDocTable.cpp, clang/utils/TableGen ClangAttrEmitter.cpp

[spr] initial version

Created using spr 2.0.0-beta.2
DeltaFile
+17-9clang/lib/AST/AttrDocTable.cpp
+2-2clang/utils/TableGen/ClangAttrEmitter.cpp
+19-112 files

LLVM/project 5d1dfa2 — clang/test/Analysis/exploded-graph-rewriter escapes.c

Anchor on PostStore instead of matching the first Store.
DeltaFile
+3-2clang/test/Analysis/exploded-graph-rewriter/escapes.c
+3-21 files

LLVM/project 2ec5628 — llvm/utils/gn/secondary/clang/lib/StaticAnalyzer/Checkers BUILD.gn

Update Build.gn.
DeltaFile
+1-1llvm/utils/gn/secondary/clang/lib/StaticAnalyzer/Checkers/BUILD.gn
+1-11 files

LLVM/project 4630011 — clang/docs/analyzer checkers.md, clang/include/clang/StaticAnalyzer/Checkers Checkers.td

[analyzer] Rename DanglingPtrDeref to StackUseAfterScope and move it to core
DeltaFile
+0-346clang/test/Analysis/dangling-ptr-deref.cpp
+346-0clang/test/Analysis/stack-use-after-scope.cpp
+0-124clang/lib/StaticAnalyzer/Checkers/DanglingPtrDeref.cpp
+124-0clang/lib/StaticAnalyzer/Checkers/StackUseAfterScope.cpp
+56-56clang/docs/analyzer/checkers.md
+10-10clang/include/clang/StaticAnalyzer/Checkers/Checkers.td
+536-5365 files not shown
+543-54011 files

LLVM/project e46c173 — clang/test/Analysis checker-order-in-dump.cpp

Update the checker name correctly in the test file.
DeltaFile
+2-2clang/test/Analysis/checker-order-in-dump.cpp
+2-21 files

LLVM/project 309c77b — clang/docs/analyzer checkers.md

Remove capital letters and the old checker name.
DeltaFile
+3-3clang/docs/analyzer/checkers.md
+3-31 files

LLVM/project b77a1e2 — clang/lib/StaticAnalyzer/Checkers StackUseAfterScope.cpp

Run clang-format on StackUseAfterScope.
DeltaFile
+4-4clang/lib/StaticAnalyzer/Checkers/StackUseAfterScope.cpp
+4-41 files

LLVM/project e2f0059 — clang/test/Analysis scopes-cfg-output.cpp auto-obj-dtors-cfg-output.cpp

Correct CFG order when lifetime ends CFG markers are enabled.
DeltaFile
+24-18clang/test/Analysis/temp-obj-dtors-cfg-output.cpp
+6-6clang/test/Analysis/auto-obj-dtors-cfg-output.cpp
+3-3clang/test/Analysis/scopes-cfg-output.cpp
+33-273 files

LLVM/project e900349 — clang/lib/AST AttrDocTable.cpp, clang/utils/TableGen ClangAttrEmitter.cpp

Revert "[AST][NFC] Use struct as string table for AttrDoc" (#246984)

Old MSVC doesn't support this type of assignment in constexpr
constructor.

Reverts llvm/llvm-project#246953
DeltaFile
+6-9clang/lib/AST/AttrDocTable.cpp
+2-2clang/utils/TableGen/ClangAttrEmitter.cpp
+8-112 files

LLVM/project 91eb6b8 — clang/lib/AST AttrDocTable.cpp, clang/utils/TableGen ClangAttrEmitter.cpp

[AST][NFC] Use struct as string table for AttrDoc (#246953)

Using a StringRef array has two problems: first, the length evaluation
uses a strlen-like loop from std::string_view at compile time (could be
fixed with StringLiteral); and second, it causes dynamic relocations.

Store all strings in one single global (445 kiB) and store a second
array with the offsets indexed by the attribute kind. This avoids 7.5kiB
of .data.rel.ro and improves compile times of AttrDocTable.cpp.
DeltaFile
+12-9clang/lib/AST/AttrDocTable.cpp
+2-2clang/utils/TableGen/ClangAttrEmitter.cpp
+14-112 files

LLVM/project eda6250 — clang/include/clang/Basic OffloadArch.h, clang/lib/Basic OffloadArch.cpp

[spr] initial version

Created using spr 2.0.0-beta.2
DeltaFile
+15-17llvm/lib/TargetParser/IntelGPUTargetParser.cpp
+10-10clang/unittests/Basic/OffloadArchTest.cpp
+6-7clang/lib/Basic/OffloadArch.cpp
+2-2clang/include/clang/Basic/OffloadArch.h
+33-364 files

LLVM/project fa6c3d9 — llvm/test/tools/llvm-mca/X86/Generic resources-wbnoinvd.s resources-rdpru.s

[llvm-mca][X86] Add resource tests for RDPRU, PCONFIG, and WBNOINVD (#246717)

Fixes #246669
DeltaFile
+33-0llvm/test/tools/llvm-mca/X86/Generic/resources-wbnoinvd.s
+33-0llvm/test/tools/llvm-mca/X86/Generic/resources-rdpru.s
+33-0llvm/test/tools/llvm-mca/X86/Generic/resources-pconfig.s
+99-03 files

LLVM/project a26d5a8 — clang/lib/StaticAnalyzer/Core RegionStore.cpp

[analyzer][NFC] Drop redundant reserve before append_range (#246889)

`llvm::append_range(C, R)` expands to `C.insert(C.end(), begin(R),
end(R))`. For `std::vector`, insert with forward-or-better iterators
computes the distance up front and performs a single allocation of the
exact size, so a preceding `reserve(std::distance(...))` of the same
range is redundant (and only adds an extra `O(n)` traversal for
non-random-access ranges).

The two sites in `RegionStore.cpp` append `map_range()` over an
`ImmutableMap`. `ImmutableMap` iterators are bidirectional and
`mapped_iterator` preserves the underlying iterator category, so the
insert already reserves. No other `append_range` call in the analyzer
has a reserve at the same site.

I didn't measure the perf impact of this, but I'm 100% it doesn't change
anything.

Assisted-by: Claude Code
DeltaFile
+0-2clang/lib/StaticAnalyzer/Core/RegionStore.cpp
+0-21 files

LLVM/project 29cb727 — clang/include/clang/StaticAnalyzer/Core/BugReporter BugReporter.h, clang/lib/StaticAnalyzer/Core BugReporter.cpp

[analyzer][NFC] Out-line PathSensitiveBugReport call-stack-hint bodies (#246958)

- Move `PathSensitiveBugReport::markInvalid`, `addCallStackHint`,
`hasCallStackHint` and `getCallStackMessage` bodies from `BugReporter.h`
into `BugReporter.cpp`.
- They instantiated `llvm::SmallSet` and `std::map` member functions in
every TU including the header, i.e. every checker.

Build-time impact (instructions retired, 196 `lib/StaticAnalyzer` TUs):
- Total: -0.81% (run-to-run noise ~0.23%).
- 161 TUs change by more than 0.15%, by -1.0% on average.

Assisted-by: Claude Code
DeltaFile
+24-0clang/lib/StaticAnalyzer/Core/BugReporter.cpp
+5-17clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h
+29-172 files

LLVM/project 32cdc61 — clang/lib/StaticAnalyzer/Checkers/WebKit ForwardDeclChecker.cpp RetainPtrCtorAdoptChecker.cpp

[analyzer][NFC] Use DynamicRecursiveASTVisitor in two WebKit checkers (#246951)

RetainPtrCtorAdoptChecker and ForwardDeclChecker were the only checkers
in clang/lib/StaticAnalyzer still instantiating the CRTP
RecursiveASTVisitor. All the sibling WebKit checkers (RawPtrRef*,
NoDeleteChecker, RefCntblBaseVirtualDtorChecker, ...) already use
DynamicRecursiveASTVisitor, which is precompiled in clangAST and avoids
instantiating the full traversal in every user.

These two TUs were by far the most expensive in the analyzer. Converting
them to the same pattern as their siblings drops their compile cost from
~36.0G and ~34.6G to ~12.8G and ~11.6G retired instructions (release
with assertions, arm64, CMake PCH enabled, median of 3 runs):

  RetainPtrCtorAdoptChecker.cpp  -64%
  ForwardDeclChecker.cpp         -66%

which is about -1.8% of the total compile cost of all 196 static
analyzer translation units.

    [5 lines not shown]
DeltaFile
+15-18clang/lib/StaticAnalyzer/Checkers/WebKit/RetainPtrCtorAdoptChecker.cpp
+12-15clang/lib/StaticAnalyzer/Checkers/WebKit/ForwardDeclChecker.cpp
+27-332 files

LLVM/project a117a65 — clang/include/clang/StaticAnalyzer/Core/PathSensitive AnalysisManager.h, clang/lib/StaticAnalyzer/Checkers PaddingChecker.cpp DeadStoresChecker.cpp

[analyzer][NFC] Out-line AnalysisManager::isInCodeFile (#246960)

- Move the `AnalysisManager::isInCodeFile` body from `AnalysisManager.h`
into `AnalysisManager.cpp`.
- It instantiated `llvm::StringSwitch<bool>` and the `SourceManager`
queries in every TU including the header, i.e. every checker, though
only a handful of places call it.
- The header no longer needs `clang/Basic/SourceManager.h`; include it
explicitly in `CoreEngine.cpp`, `DeadStoresChecker.cpp` and
`PaddingChecker.cpp`, which relied on it transitively.

Build-time impact (instructions retired, 196 `lib/StaticAnalyzer` TUs):
- Total: -0.54% (run-to-run noise 0.2-0.4%).
- 111 TUs change by more than 0.15%, by -1.1% over those.

Assisted-by: Claude Code
DeltaFile
+35-0clang/lib/StaticAnalyzer/Core/AnalysisManager.cpp
+1-33clang/include/clang/StaticAnalyzer/Core/PathSensitive/AnalysisManager.h
+1-0clang/lib/StaticAnalyzer/Core/CoreEngine.cpp
+1-0clang/lib/StaticAnalyzer/Checkers/PaddingChecker.cpp
+1-0clang/lib/StaticAnalyzer/Checkers/DeadStoresChecker.cpp
+39-335 files

LLVM/project 02ff1db — llvm/lib/Target/ARM Thumb1FrameLowering.cpp

[spr] initial version

Created using spr 2.0.0-beta.2
DeltaFile
+5-5llvm/lib/Target/ARM/Thumb1FrameLowering.cpp
+5-51 files

LLVM/project 44958ce — llvm/lib/Target/ARM ARMLatencyMutations.cpp, llvm/lib/Target/ARM/MCTargetDesc ARMMCTargetDesc.h ARMMCTargetDesc.cpp

[spr] initial version

Created using spr 2.0.0-beta.2
DeltaFile
+38-35llvm/lib/Target/ARM/ARMLatencyMutations.cpp
+2-0llvm/lib/Target/ARM/MCTargetDesc/ARMMCTargetDesc.cpp
+1-0llvm/lib/Target/ARM/MCTargetDesc/ARMMCTargetDesc.h
+41-353 files

LLVM/project 8c760eb — llvm/test/Transforms/SLPVectorizer/X86 vector-call-linear-parts.ll vector-call-nonpow2-revec.ll

[SLP][NFC]Add extra tests for functions vectorization, NFC

Pull-request: https://github.com/llvm/llvm-project/pull/246971
DeltaFile
+361-32llvm/test/Transforms/SLPVectorizer/X86/vector-call-nonpow2-revec.ll
+59-0llvm/test/Transforms/SLPVectorizer/X86/vector-call-linear-parts.ll
+420-322 files

LLVM/project 34b702b — clang/test/Analysis correct-order-of-CFG-elements.cpp

Remove cfg-lifetime=true from test file.
DeltaFile
+1-1clang/test/Analysis/correct-order-of-CFG-elements.cpp
+1-11 files

LLVM/project 3ab799e — llvm/lib/Target/Sparc/MCTargetDesc SparcMCExpr.cpp SparcAsmBackend.cpp, llvm/test/MC/Sparc/Relocations relocation-specifier.s data-directive-specifier.s

[SPARC] Accept more GNU as relocation specifiers (#246814)

Add the data specifiers that GNU as accepts and LLVM did not: %r_disp8,
%r_disp16 and %r_disp64 for R_SPARC_DISP8/16/64, and %r_plt32 and
%r_plt64 for R_SPARC_PLT32/64. Like %r_disp32, each one can only be used
in a data directive of its size.

Also add %h34 for R_SPARC_H34, and %l34, which GNU as accepts as an
alias of %l44.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+51-1llvm/test/MC/Sparc/Relocations/data-directive-specifier.s
+38-11llvm/lib/Target/Sparc/MCTargetDesc/SparcELFObjectWriter.cpp
+24-0llvm/lib/Target/Sparc/MCTargetDesc/SparcAsmBackend.cpp
+16-0llvm/test/MC/Sparc/Relocations/relocation-specifier.s
+14-0llvm/lib/Target/Sparc/MCTargetDesc/SparcMCExpr.cpp
+143-125 files

LLVM/project 5131ee2 — llvm/lib/Transforms/Vectorize VPlanTransforms.cpp, llvm/test/Transforms/LoopVectorize/RISCV strided-access-predicated-udiv.ll

[VPlan] Expand strided access start in SafeUDivMode. (#246948)

convertToStridedAccesses expands the start of the strided address from
SCEV at the access. The access may be predicated, e.g. with its address
computed from a udiv in a conditional block, but the expansion executes
unconditionally (and invariant parts are hoisted), so the expanded udiv
can divide by zero or poison where the original loop never evaluates it.

Expand the start in SafeUDivMode. If any lane of the access is active,
the original udiv executed with the same invariant operands, so the safe
divisor yields the same value.
DeltaFile
+66-0llvm/test/Transforms/LoopVectorize/RISCV/strided-access-predicated-udiv.ll
+5-2llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+71-22 files

LLVM/project 27c90d9 — clang/lib/AST AttrDocTable.cpp, clang/utils/TableGen ClangAttrEmitter.cpp

[spr] initial version

Created using spr 2.0.0-beta.2
DeltaFile
+12-9clang/lib/AST/AttrDocTable.cpp
+2-2clang/utils/TableGen/ClangAttrEmitter.cpp
+14-112 files

LLVM/project 244134e — llvm/test/CodeGen/X86 combine-rotates.ll

[X86] Add tests showing failure to fold rot(undef/poison,X) (#246944)

Prep work for #246251
DeltaFile
+28-4llvm/test/CodeGen/X86/combine-rotates.ll
+28-41 files

LLVM/project d092088 — llvm/lib/TargetParser RISCVISAInfo.cpp, llvm/test/TableGen riscv-target-def.td

[spr] initial version

Created using spr 2.0.0-beta.2
DeltaFile
+60-46llvm/utils/TableGen/Basic/RISCVTargetDefEmitter.cpp
+40-32llvm/lib/TargetParser/RISCVISAInfo.cpp
+16-16llvm/test/TableGen/riscv-target-def.td
+116-943 files

LLVM/project cdd7d1c — llvm/test/TableGen SystemZInsnDirectiveEmitter.td, llvm/utils/TableGen SystemZInsnDirectiveEmitter.cpp

[spr] initial version

Created using spr 2.0.0-beta.2
DeltaFile
+4-4llvm/utils/TableGen/SystemZInsnDirectiveEmitter.cpp
+3-3llvm/test/TableGen/SystemZInsnDirectiveEmitter.td
+7-72 files

LLVM/project b577f07 — llvm/cmake/modules AddLLVM.cmake HandleLLVMOptions.cmake

[CMake] Move -Bsymbolic-functions linker check to HandleLLVMOptions (#246238)

The check was in add_link_opts, which runs for every library and
executable. Move it to HandleLLVMOptions so it only runs once. It is
still visible to both llvm-shlib and clang-shlib, including standalone
clang builds.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+8-3llvm/cmake/modules/HandleLLVMOptions.cmake
+0-6llvm/cmake/modules/AddLLVM.cmake
+8-92 files

LLVM/project 953d00b — llvm/lib/Transforms/Scalar GVN.cpp, llvm/test/Transforms/GVN cond_br.ll

fixup! [GVN] Extend processFoldableCondBr to support switch
DeltaFile
+40-0llvm/test/Transforms/GVN/cond_br.ll
+6-5llvm/lib/Transforms/Scalar/GVN.cpp
+46-52 files

LLVM/project 076149f — llvm/include/llvm/MC MCAsmInfo.h, llvm/lib/MC MCAsmInfo.cpp

[MC][NFC] Make MCAsmInfo::getExprForPersonalitySymbol non-virtual (#246826)

This is Darwin-only; replace with two member variables. Saves 400B of
.data.rel.ro.
DeltaFile
+6-15llvm/lib/Target/AArch64/MCTargetDesc/AArch64MCAsmInfo.cpp
+4-11llvm/lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp
+12-3llvm/include/llvm/MC/MCAsmInfo.h
+15-0llvm/lib/MC/MCAsmInfo.cpp
+0-3llvm/lib/Target/X86/MCTargetDesc/X86MCAsmInfo.h
+0-3llvm/lib/Target/AArch64/MCTargetDesc/AArch64MCAsmInfo.h
+37-356 files

LLVM/project 41c5f90 — llvm/include/llvm/MC MCAsmInfo.h, llvm/lib/MC MCAsmInfo.cpp

[MC][NFC] Make MCAsmInfo::usesCompInstByteOrder non-virtual (#246824)

Saves 400B of .data.rel.ro.
DeltaFile
+10-8llvm/include/llvm/MC/MCAsmInfo.h
+2-5llvm/lib/Target/Mips/MCTargetDesc/MipsMCAsmInfo.cpp
+2-5llvm/lib/Target/ARM/MCTargetDesc/ARMMCAsmInfo.cpp
+7-0llvm/lib/MC/MCAsmInfo.cpp
+0-1llvm/lib/Target/Mips/MCTargetDesc/MipsMCAsmInfo.h
+0-1llvm/lib/Target/ARM/MCTargetDesc/ARMMCAsmInfo.h
+21-206 files