LLVM/project 31dd952 — llvm/lib/Transforms/Instrumentation MemProfInstrumentation.cpp AddressSanitizer.cpp, llvm/lib/Transforms/Utils SCCPSolver.cpp

[Transforms] Remove write-only and unused members (NFC) (#245544)

ModuleAddressSanitizer::Recover: Added on November 11, 2015 in commit
d7731988ef44c9417a79bd4db042183a60900f14 without any readers.  This
patch also removes its initializer and the now-unused Recover
constructor parameter.

ModuleMemProfiler::Mapping: Added on August 13, 2020 in commit
7ed8124d46f94601d5f1364becee9cee8538265e without any readers.  This
patch also removes its initializer.

ModuleSanitizerCoverage::FunctionPCsArray: The last readers were removed
on September 13, 2018 in commit
3bea25e5543606758ab10d395b1e7283255be75b.  This patch also removes its
assignments and drops the now-unused return value of CreatePCArray.

SCCPInstVisitor::Ctx: The last reader was removed on June 19, 2023 in
commit 664b7a4cd51d9273888e79688f64cc8bbcbdbe25.  This patch also
removes its initializer and the now-unused Ctx constructor parameter.

    [5 lines not shown]
DeltaFile
+4-9llvm/lib/Transforms/Instrumentation/SanitizerCoverage.cpp
+4-8llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
+3-6llvm/lib/Transforms/Utils/SCCPSolver.cpp
+0-3llvm/lib/Transforms/Vectorize/LoopIdiomVectorize.cpp
+1-2llvm/lib/Transforms/Instrumentation/MemProfInstrumentation.cpp
+12-285 files

LLVM/project 2275fc4 — llvm/lib/Target/ARM ARMLowOverheadLoops.cpp ARMFastISel.cpp

[ARM] Remove write-only private member variables (NFC) (#245543)

ARMFastISel::TM: The last readers were removed on August 20, 2026 in
commit 239b30e2f5bd11df57e7c4a054bf3a9b7b0bd714.  This patch also
removes its initializer.

ARMLowOverheadLoops::MRI: The last reader was removed on September 17,
2019 in commit 36c922278e6e7fb2083dc29dda950dfac73a194c.  This patch
also removes its assignment.

Assisted-by: Antigravity
DeltaFile
+2-4llvm/lib/Target/ARM/ARMFastISel.cpp
+1-4llvm/lib/Target/ARM/ARMLowOverheadLoops.cpp
+3-82 files

LLVM/project ded05df — llvm/include/llvm/Bitstream BitstreamReader.h, llvm/test/Bitcode invalid.test

Bitstream: Decode single-chunk VBR fields inline

Share one decoder between ReadVBR and ReadVBR64, decode the first chunk
inline from a word load, and only call out of line for the remaining
chunks. The inline part is always_inline because GCC otherwise clones
ReadVBR out of line, which made bitcode reading slower.

Instructions in parseIRFile with opt -passes=verify:

              clang 23   GCC 15
  k.bc        -6.17%     -0.14%
  cnf.bc      -5.93%     +0.74%
  sqlite3     -5.02%     -0.38%
  z08.bc      -4.54%     -0.56%

Whole opt -O3 runs: -0.14% to -0.47% with clang, within 0.02% with GCC.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+46-61llvm/include/llvm/Bitstream/BitstreamReader.h
+1-1llvm/test/Bitcode/invalid.test
+47-622 files

LLVM/project bd2f190 — llvm/lib/Target/SPIRV SPIRVInstructionSelector.cpp, llvm/test/CodeGen/SPIRV uitofp-with-bool.ll TruncToBool.ll

[SPIR-V] Use one helper for temp registers in the selector (#241373)

Some temp registers in the selector were made with
createVirtualRegister, which sets the full LLT. For wide vectors this 
LLT is larger than the register class, so builds with assertions fail with
"VReg's low-level type and register class have different sizes", 
for example on uitofp <8 x i1> to <8 x float>.

Add createTempVReg, which sets only the register class and the SPIR-V
type. Use it instead of createVirtualRegister, and in the places that did the
same steps by hand.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+57-113llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp
+20-0llvm/test/CodeGen/SPIRV/TruncToBool.ll
+13-1llvm/test/CodeGen/SPIRV/uitofp-with-bool.ll
+90-1143 files

LLVM/project 21ec650 — clang/docs LanguageExtensions.md, clang/include/clang/Options Options.td

Enable driver changes for fexec-charset
DeltaFile
+14-6clang/lib/Driver/ToolChains/Clang.cpp
+14-4clang/include/clang/Options/Options.td
+11-3clang/test/Driver/clang_f_opts.c
+10-0llvm/lib/Support/TextEncoding.cpp
+4-3clang/test/Driver/cl-options.c
+3-3clang/docs/LanguageExtensions.md
+56-193 files not shown
+60-199 files

LLVM/project d07759d — clang/include/clang/Basic TargetInfo.h, clang/lib/AST ASTContext.cpp

convert to exec-charset inside getPredefinedStringLiteralFromCache, test __builtin_FILE()
DeltaFile
+10-0clang/lib/AST/ASTContext.cpp
+3-1clang/test/CodeGen/systemz-charset.cpp
+3-0clang/lib/Basic/TargetInfo.cpp
+2-0clang/include/clang/Basic/TargetInfo.h
+18-14 files

LLVM/project fb916d3 — clang/include/clang/Options Options.td, clang/lib/Driver/ToolChains Clang.cpp

address comments
DeltaFile
+3-3clang/include/clang/Options/Options.td
+1-1clang/lib/Driver/ToolChains/Clang.cpp
+4-42 files

LLVM/project 43185dc — clang/lib/AST ASTContext.cpp, clang/lib/Lex TextEncoding.cpp

Convert the key before cache lookup to prevent encoding differences
DeltaFile
+9-9clang/lib/AST/ASTContext.cpp
+2-0clang/lib/Lex/TextEncoding.cpp
+11-92 files

LLVM/project 42a54a8 — clang/lib/AST FormatString.cpp, clang/test/Sema format-strings-c23.c

fix parseWidthModifier and add testcase
(assisted by IBM Bob)
DeltaFile
+17-5clang/lib/AST/FormatString.cpp
+3-0clang/test/Sema/format-strings-c23.c
+20-52 files

LLVM/project 41197a5 — llvm/test/Transforms/PGOProfile/NVPTX comdat.ll

Drop unnecessary "target datalayout"
DeltaFile
+0-1llvm/test/Transforms/PGOProfile/NVPTX/comdat.ll
+0-11 files

LLVM/project 5794383 — clang/www c_dr_status.html

[C][Clang] Fix some formatting issues; NFC (#245730)

This puts the css class in the right place and fixes a misnumbering (we
had two issues numbered 1024).
DeltaFile
+7-7clang/www/c_dr_status.html
+7-71 files

LLVM/project 25e8e63 — llvm/lib/Transforms/Scalar GVN.cpp, llvm/test/Transforms/GVN or-equal-zero.ll

[GVN] Propagate equalities through bitwise OR/AND (#237219)

Fixes #237138

Proofs: https://alive2.llvm.org/ce/z/RDoUPc.
DeltaFile
+198-0llvm/test/Transforms/GVN/or-equal-zero.ll
+15-4llvm/lib/Transforms/Scalar/GVN.cpp
+213-42 files

LLVM/project 0e4f544 — llvm/include/llvm/CodeGen SelectionDAG.h, llvm/lib/CodeGen/SelectionDAG TargetLowering.cpp SelectionDAG.cpp

[DAG] Add getFreeze(SDValue, UndefPoisonKind) variant (#245320)

Makes it easier to filter for just POISON/UNDEF cases, which will be
more common in upcoming patches - but avoids the need for manual
DemandedElts handling.

I had hoped to entirely remove the isGuaranteedNotToBeUndefOrPoison
check inside getNode() but there's a lot of code changes due to
different SDLoc etc. that should be handled separately.
DeltaFile
+9-5llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+4-2llvm/include/llvm/CodeGen/SelectionDAG.h
+1-2llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+14-93 files

LLVM/project 8f61488 — llvm/test/CodeGen/AMDGPU bitinsert-vector.ll float-to-arbitrary-fp-fp8-hw.ll

[AMDGPU] Promote 16-bit return to i32 in the calling convention (#245288)

A follow up patch of https://github.com/llvm/llvm-project/pull/242694.
Same promotion for return

Co-authored-by: Claude Opus 5.5
[noreply at anthropic.com](mailto:noreply at anthropic.com)

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply at anthropic.com>
DeltaFile
+1,165-1,164llvm/test/CodeGen/AMDGPU/float-to-arbitrary-fp-widen.ll
+684-686llvm/test/CodeGen/AMDGPU/float-to-arbitrary-fp-fp8-f16-hw.ll
+552-523llvm/test/CodeGen/AMDGPU/fptosi-sat-vector.ll
+562-502llvm/test/CodeGen/AMDGPU/fptoui-sat-vector.ll
+313-305llvm/test/CodeGen/AMDGPU/float-to-arbitrary-fp-fp8-hw.ll
+270-273llvm/test/CodeGen/AMDGPU/bitinsert-vector.ll
+3,546-3,45328 files not shown
+4,067-3,91434 files

LLVM/project 8c1b834 — mlir/lib/Dialect/XeGPU/Transforms XeGPUWgToSgDistribute.cpp, mlir/test/Dialect/XeGPU xegpu-wg-to-sg.mlir

[MLIR][XeGPU] Add a barrier after SLM reads in WgToSg distribution (#245104)

The SLM paths of convert_layout and of the cross-subgroup
multi_reduction emit store_matrix, gpu.barrier, then load_matrix, with
no barrier after the read. Inside a loop, a subgroup that finishes
reading can start the next iteration and overwrite the buffer while
another subgroup is still reading it. Add a barrier after the reads, so
the buffer is not rewritten until every subgroup has read it.

Found through IMEX layer_norm_4096x4096, which produced wrong results
once a convert_layout through SLM ended up inside its K loop.

assisted-by-claude

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+29-0mlir/test/Dialect/XeGPU/xegpu-wg-to-sg.mlir
+8-0mlir/lib/Dialect/XeGPU/Transforms/XeGPUWgToSgDistribute.cpp
+37-02 files

LLVM/project f47933e — llvm/lib/Analysis ConstantFolding.cpp, llvm/test/Feature fp-intrinsics.ll

[ConstantFolding] Fold constrained fpext of a constant (#244838)

An fpext is exact in every rounding mode, so the only floating-point
exception it can raise is invalid for a signaling NaN input. Fold
llvm.experimental.constrained.fpext of a constant, using
mayFoldConstrained to decide the signaling NaN case like the other
constrained intrinsics.

Without this, -frounding-math leaves a runtime conversion of a constant
behind. On targets with a soft fp128 that is a libcall, e.g.
_Qp_dtoq/_Qp_stoq on sparc64.

Update f21 in fp-intrinsics.ll, which expected the call to stay.

Fixes #244637

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+79-0llvm/test/Transforms/InstSimplify/constfold-constrained.ll
+16-0llvm/lib/Analysis/ConstantFolding.cpp
+4-3llvm/test/Feature/fp-intrinsics.ll
+99-33 files

LLVM/project 92f62de — llvm/lib/CodeGen/SelectionDAG LegalizeDAG.cpp, llvm/lib/Target/ARM ARMISelLowering.cpp

DAG: Use the LibCall action for atomic operations lowered to calls

An Expand action on an atomic operation without an expansion falls
back to libcall lowering. Switch the VE atomicrmw operations and the
ARM and CSKY fences which relied on this fallback to LibCall, so the
action reflects whether the operation is intended to emit a call.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+25-0llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+9-9llvm/lib/Target/VE/VEISelLowering.cpp
+2-2llvm/lib/Target/ARM/ARMISelLowering.cpp
+1-1llvm/lib/Target/CSKY/CSKYISelLowering.cpp
+37-124 files

LLVM/project 4b874ab — llvm/test/Transforms/SLPVectorizer/AArch64 sibling-loops-unknown-trip-counts.ll, llvm/test/Transforms/SLPVectorizer/X86 sibling-loops-parallel.ll

[SLP][NFC]Add extra tests for sibling loops vectorization, NFC

Pull-request: https://github.com/llvm/llvm-project/pull/245743
DeltaFile
+542-0llvm/test/Transforms/SLPVectorizer/AArch64/sibling-loops-unknown-trip-counts.ll
+260-0llvm/test/Transforms/SLPVectorizer/X86/sibling-loops-parallel.ll
+802-02 files

LLVM/project 496e4b5 — llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Passes LoadStoreVec.h, llvm/lib/Transforms/Vectorize/SandboxVectorizer/Passes LoadStoreVec.cpp

[SandboxVec][LoadStoreVec] Support mixed-type store vectorization of arbitrary values

vectorizeStores() only handled chains whose stored values were all
consecutive loads or all constants. Any other chain, e.g., storing
function arguments or computed values, was left alone.

Pack such values into a vector with createPack(). For a chain of mixed
types the vector has integer lanes, so each value is first
reinterpreted (bitcast / ptrtoint) as the lanes it occupies with
Reinterpret::reinterpretValue(), and a value spanning several lanes is
inserted lane by lane. The pack is placed right before the vector
store, where every stored value is available. Whether this pays off is
left to the existing cost check in acceptOrRevert().

Chains storing a non-integral pointer are left alone.

Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
Co-authored-by: Cursor <cursoragent at cursor.com>
DeltaFile
+172-0llvm/test/Transforms/SandboxVectorizer/Passes/LoadStoreVec/load_store_vec_mixed_type_stores.ll
+45-5llvm/lib/Transforms/Vectorize/SandboxVectorizer/Passes/LoadStoreVec.cpp
+11-3llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Passes/LoadStoreVec.h
+5-3llvm/test/Transforms/SandboxVectorizer/Passes/LoadStoreVec/store_seeds.ll
+233-114 files

LLVM/project f1a88a6 — llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Passes LoadStoreVec.h, llvm/lib/Transforms/Vectorize/SandboxVectorizer/Passes LoadStoreVec.cpp

[SandboxVec][LoadStoreVec] Vectorize store chains whose loads have external uses

Loads that feed a store chain used to block vectorization whenever
they had more than one use. Now the store chain can be vectorized even
if the loads have external uses. Once the scalar stores are erased,
each original load is rebuilt from the lanes it occupies in the new
vector load, and reinterpreted back to its original type if needed,
using canUnpackLoads() and unpackLoads().

The legality check runs before any IR is created, so a load whose lanes
cannot be reinterpreted (for example, a non-integral pointer) rejects
the whole chain instead of leaving a partially rewritten block.

Co-authored-by: Cursor <cursoragent at cursor.com>
DeltaFile
+119-100llvm/test/Transforms/SandboxVectorizer/Passes/LoadStoreVec/mixed_types.ll
+11-12llvm/lib/Transforms/Vectorize/SandboxVectorizer/Passes/LoadStoreVec.cpp
+8-14llvm/test/Transforms/SandboxVectorizer/Passes/LoadStoreVec/store_seeds.ll
+2-1llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Passes/LoadStoreVec.h
+140-1274 files

LLVM/project 2dcc575 — llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Passes LoadStoreVec.h, llvm/lib/Transforms/Vectorize/SandboxVectorizer/Passes LoadStoreVec.cpp

[SandboxVec][LoadStoreVec] Factor out canUnpackLoads and unpackLoads (NFC)

Move the logic that unpacks each original load from the lanes it
occupies in a vector load, and the check that those lanes can be
reinterpreted as the load's type, out of vectorizeLoads() into the new
canUnpackLoads() and unpackLoads() helpers.

This is in preparation for sharing the unpacking with vectorizeStores(),
so that store chains whose loads have external uses can be vectorized.

Co-authored-by: Cursor <cursoragent at cursor.com>
DeltaFile
+41-25llvm/lib/Transforms/Vectorize/SandboxVectorizer/Passes/LoadStoreVec.cpp
+10-0llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Passes/LoadStoreVec.h
+51-252 files

LLVM/project 28a41ee — llvm/lib/Target/SPIRV SPIRVGlobalRegistry.h SPIRVTargetMachine.cpp, llvm/test/CodeGen/SPIRV/GlobalISel mir-roundtrip.ll mfi-parse-error-vreg-type.mir

[SPIR-V] Serialize the last inserted type in MIR (#245276)

Without it, types and constants created after MIR load go to the start
of the entry block and change the output order
DeltaFile
+40-16llvm/lib/Target/SPIRV/SPIRVGlobalRegistry.cpp
+12-0llvm/test/CodeGen/SPIRV/GlobalISel/mfi-parse-error-vreg-type.mir
+12-0llvm/test/CodeGen/SPIRV/GlobalISel/mir-roundtrip-last-inserted-type.ll
+10-0llvm/lib/Target/SPIRV/SPIRVTargetMachine.cpp
+4-0llvm/lib/Target/SPIRV/SPIRVGlobalRegistry.h
+2-0llvm/test/CodeGen/SPIRV/GlobalISel/mir-roundtrip.ll
+80-163 files not shown
+85-169 files

LLVM/project 878ff6c — llvm/test/tools/llubi tail_call.ll tail_call_ub.ll, llvm/tools/llubi/lib Context.h Value.cpp

[llubi] Mark caller stack objects inaccessible during tail calls (#245569)

Mark the caller's allocas and incoming byval objects inaccessible after
copying byval arguments. Then restore them on return since tail calls
are not always in tail position.

Fixes https://github.com/llvm/llvm-project/issues/235436
DeltaFile
+184-0llvm/test/tools/llubi/tail_call_ub.ll
+100-0llvm/test/tools/llubi/tail_call.ll
+43-3llvm/tools/llubi/lib/Interpreter.cpp
+5-0llvm/tools/llubi/lib/ExecutorBase.cpp
+3-1llvm/tools/llubi/lib/Value.cpp
+3-0llvm/tools/llubi/lib/Context.h
+338-41 files not shown
+339-47 files

LLVM/project 6f701cf — llvm/test/Transforms/Coroutines coro-early-preserve-function-analyses.ll

Coroutines: Fix test dependence on host compiler type name printing (#245740)

The printed name of RequireAnalysisPass depends on the host compiler,
so fix the check line regex.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+32-32llvm/test/Transforms/Coroutines/coro-early-preserve-function-analyses.ll
+32-321 files

LLVM/project 5041979 — llvm/test/Transforms/Util/DeclareRuntimeLibcalls systemz.ll sparc.ll

Fix tests after rebase
DeltaFile
+17-17llvm/test/Transforms/Util/DeclareRuntimeLibcalls/ppc.ll
+15-15llvm/test/Transforms/Util/DeclareRuntimeLibcalls/aarch64.ll
+6-6llvm/test/Transforms/Util/DeclareRuntimeLibcalls/systemz.ll
+6-6llvm/test/Transforms/Util/DeclareRuntimeLibcalls/sparc.ll
+6-6llvm/test/Transforms/Util/DeclareRuntimeLibcalls/riscv.ll
+6-6llvm/test/Transforms/Util/DeclareRuntimeLibcalls/mips.ll
+56-567 files not shown
+84-8413 files

LLVM/project 37e8293 — mlir/lib/Dialect/SCF/IR SCF.cpp, mlir/test/Dialect/SCF canonicalize.mlir

[mlir][scf] Simplify selects on the condition forwarded by scf.condition (#245010)

Add a `WhileConditionSelect` canonicalization pattern, next to
`WhileConditionTruth`, that:

- replaces the uses of the `do` block argument with `%a` and the uses of
the loop result with `%b`, if they are defined outside of the loop;
- forwards `%a` (or `%b`) instead of the select once the loop result (or
the `do` block argument) has no uses, so that the select can fold away.

This complements `WhileMoveIfDown` once `scf.if` folds to
`arith.select`. Such selects also arise when lifting a CFG loop to SCF
with `transformCFGToSCF`: a value that only the exit edge passes to its
successor is forwarded through the loop results, with a dummy value on
the edge into the loop body, which canonicalization merges with a select
on the condition. When the dummy is not `ub.poison` (whose select folds
already), the select hides that the result is a value defined before the
loop.
DeltaFile
+229-0mlir/test/Dialect/SCF/canonicalize.mlir
+74-2mlir/lib/Dialect/SCF/IR/SCF.cpp
+303-22 files

LLVM/project a1f03bf — llvm/utils/gn/secondary/llvm/lib/Frontend/HLSL BUILD.gn

[gn build] Port 9e3b1fa1e699 (#245736)
DeltaFile
+1-0llvm/utils/gn/secondary/llvm/lib/Frontend/HLSL/BUILD.gn
+1-01 files

LLVM/project 6ed6ed4 — clang/docs LanguageExtensions.md, clang/docs/CommandGuide clang.md

[Clang][Docs] Clarify extension handling for -std (#245192)

Clang may accept language extensions in a selected standard mode.
Clarify this in the `-std` entry and link to the `-pedantic-errors`
option.

Verified on Windows with Clang 23.1.6. A GNU statement expression passed
a C++20 syntax check and produced the expected error with
`-pedantic-errors`. The updated Markdown page rendered locally with
Sphinx warnings treated as errors using the generated files from the
23.1.6 docs build.

Refs #39694.

Assisted-by: OpenAI Codex
DeltaFile
+4-0clang/docs/LanguageExtensions.md
+3-0clang/docs/CommandGuide/clang.md
+7-02 files

LLVM/project 595986e — libc/src/string memchr.cpp string_utils.h

rebase

Created using spr 1.3.7
DeltaFile
+2-3libc/src/string/string_utils.h
+3-0libc/src/string/memchr.cpp
+5-32 files

LLVM/project bb489f7 — libc/src/string memchr.cpp string_utils.h

[𝘀𝗽𝗿] changes introduced through rebase

Created using spr 1.3.7

[skip ci]
DeltaFile
+2-3libc/src/string/string_utils.h
+3-0libc/src/string/memchr.cpp
+5-32 files