LLVM/project c99f32c — bolt/test/AArch64/legacy-longjmp long-jmp-tentative-instrument.s long-jmp-tentative-hot-functions-at-end.s

[BOLT][test] Fix LongJmp tentative tests (#248391)
DeltaFile
+2-2bolt/test/AArch64/legacy-longjmp/long-jmp-tentative-instrument.s
+2-2bolt/test/AArch64/legacy-longjmp/long-jmp-tentative-hot-functions-at-end.s
+4-42 files

LLVM/project 945d88e — mlir/include/mlir/Dialect/X86 X86.td, mlir/lib/Dialect/X86/IR X86Dialect.cpp

[mlir][X86] Fix operand order in MaskScaleFOp lowering (#248360)

Reorder the operands to (a, b, src, k, rounding) when lowering
`x86.avx512.mask.scalef` to LLVM intrinsics so masked-off lanes take
their values from src.

Add regression coverage for the f32 and f64 variants using distinct SSA
values for the three vector operands.

Fixes: #247612
DeltaFile
+26-8mlir/test/Dialect/X86/legalize-for-llvm.mlir
+8-0mlir/lib/Dialect/X86/IR/X86Dialect.cpp
+5-0mlir/include/mlir/Dialect/X86/X86.td
+39-83 files

LLVM/project 3feafaf — llvm/include/llvm/ADT GenericUniformityImpl.h, llvm/test/Analysis/UniformityAnalysis/AMDGPU divergent-cycle-exit-phi.ll trivial-join-at-loop-exit.ll

fix: visit DivTermBlock if it is a reducible cycle header
DeltaFile
+8-5llvm/include/llvm/ADT/GenericUniformityImpl.h
+4-2llvm/test/CodeGen/AMDGPU/amdgpu-uniform-temporal-divergence.ll
+2-2llvm/test/Analysis/UniformityAnalysis/AMDGPU/divergent-cycle-exit-phi.ll
+3-1llvm/test/Analysis/UniformityAnalysis/AMDGPU/trivial-join-at-loop-exit.ll
+17-104 files

LLVM/project 4fe5cb2 — .github/workflows libcxx-run-libstdcxx-benchmarks.yml, libcxx/test/configs stdlib-libstdc++.cfg.in

[libc++][ci] Build the libstdc++ benchmarks with TBB and enable PSTL in this config (#243119)

This PR adds the include and the library paths to TBB when building
benchmarks against `libstdc++`, such that its PSTL implementation can
run in parallel.
DeltaFile
+16-2libcxx/test/configs/stdlib-libstdc++.cfg.in
+12-4libcxx/utils/libcxx/test/dsl.py
+10-5libcxx/utils/libcxx/test/params.py
+2-1.github/workflows/libcxx-run-libstdcxx-benchmarks.yml
+3-0libcxx/utils/ci/lnt/run-libstdcxx-benchmarks
+43-125 files

LLVM/project de3c2cd — libcxx/test/benchmarks/numeric pstl.transform_inclusive_scan.bench.cpp

[libc++][pstl] Add benchmarks for parallel std::transform_inclusive_scan (#241312)

This PR adds a few benchmarks for the parallel scanning operations, in
this case particularly `std::transform_inclusive_scan()`.
DeltaFile
+87-0libcxx/test/benchmarks/numeric/pstl.transform_inclusive_scan.bench.cpp
+87-01 files

LLVM/project 624977c — libcxx/docs PSTL.md, libcxx/include/__pstl/backends/statpart copy_if.h

[libc++][pstl] Add a parallel implementation of std::unique_copy (#247149)

This PR refactors the existing parallel implementation of `copy_if` into
a more generic `__parallel_flagged_copy`.
The refactored implementation takes an abstract "flagger" that populates
the bit set, instead of explicitly requiring a unary predicate.
With this change, the algorithm can accommodate both `copy_if` and
`unique_copy`, such that these functions basically differ only in the
flagger they pass into `__parallel_flagged_copy`.
DeltaFile
+142-65libcxx/include/__pstl/backends/statpart/copy_if.h
+1-1libcxx/docs/PSTL.md
+143-662 files

LLVM/project 09bfdf0 — llvm/test/Analysis/UniformityAnalysis/AMDGPU divergent-cycle-exit-phi.ll, llvm/test/CodeGen/AMDGPU amdgpu-uniform-temporal-divergence.ll

review: add tests for exit phis that select constants (NFC)
DeltaFile
+92-0llvm/test/CodeGen/AMDGPU/amdgpu-uniform-temporal-divergence.ll
+78-0llvm/test/Analysis/UniformityAnalysis/AMDGPU/divergent-cycle-exit-phi.ll
+170-02 files

LLVM/project 821b6cd — libcxx/src/pstl std_thread_sched.h statpart.cpp

[libc++][pstl] Support platforms that have threads but no lock-free types (#248081)

Previously the code in PSTL demanded lock-free properties from some
atomics as a defensive measure, but after some discussions it was
decided that we don't want to make this decision for the user.
As a drive-by this patch reduces the number of preprocessor branches in
`statpart.cpp` and removes the dummy serial implementation of
`__apply()` from it, since this function shouldn't be called when the
platform has no support for threading.
DeltaFile
+30-30libcxx/src/pstl/statpart.cpp
+22-21libcxx/src/pstl/std_thread_sched.h
+52-512 files

LLVM/project 21de0b0 — lldb/source/Target StackFrameList.cpp

[lldb] Don't skip a frame after an interrupted frame fetch (#248090)

`StackFrameList::FetchFramesUpTo()` increments
`m_concrete_frames_fetched` after taking the index to be fetched. If the
fetch is interrupted, the idx is not restored, so the frame is never
added.

`TestInterruptBacktrace` is flaky on ARM64 Windows because of this.

This patch restores the index.
DeltaFile
+2-0lldb/source/Target/StackFrameList.cpp
+2-01 files

LLVM/project 3e3dcce — clang/include/clang/Basic BuiltinsAMDGPUDocs.td, clang/test/CIR/CodeGenHIP builtins-amdgcn-gfx10.hip

[AMDGPU] Implement builtin and intrinsic for s_wait_idle (#244238)

`s_wait_idle` is available since gfx10, but has so far not been exposed
in intrinsics. It waits for all dependency and memory counters to reach
0, similar to `s_waitcnt 0` on older architectures.
This can be useful for microbenchmarks, to ensure that only intended
operations are included in time measurements. **It should not be used
for attempts to circumvent the memory model.** There are alternatives
for "synchronization without cache invalidate/writeback" patterns that
are designed for this purpose.

Disclaimer: The implementation was mostly done by AI; I've reviewed it
and checked that it matches existing examples for similar builtins and
intrinsics.

Fixes: LCOMPILER-3256

Assisted-by: AI Coding Agent
DeltaFile
+42-0llvm/test/CodeGen/AMDGPU/llvm.amdgcn.s.wait.idle.ll
+21-0clang/include/clang/Basic/BuiltinsAMDGPUDocs.td
+8-0llvm/include/llvm/IR/IntrinsicsAMDGPU.td
+8-0clang/test/CodeGenOpenCL/builtins-amdgcn-gfx10.cl
+8-0clang/test/CIR/CodeGenHIP/builtins-amdgcn-gfx10.hip
+6-0llvm/test/Assembler/amdgcn-intrinsic-attributes.ll
+93-04 files not shown
+100-110 files

LLVM/project d2ca52f — clang/docs ReleaseNotes.md, clang/include/clang/StaticAnalyzer/Core/PathSensitive CheckerHelpers.h

[analyzer] Fix crashes on unusual macros in tryExpandAsInteger (#248108)

tryExpandAsInteger crashed on empty macro definitions because of an
unchecked .back() call, and an assertion fired when the value of a macro
did not fit into int64_t. Values wider than an int that still fit into
int64_t were silently truncated. Return std::nullopt in these cases.

Values above INT_MAX that fit into the bits of the target's int are
still converted to it, because DragonFly BSD defines AT_FDCWD as
0xFFFAFDCD.

Fixes #246164.

Assisted-by: Claude Code
DeltaFile
+27-0clang/test/Analysis/std-c-library-functions-macro-range.c
+13-1clang/lib/StaticAnalyzer/Core/CheckerHelpers.cpp
+3-2clang/include/clang/StaticAnalyzer/Core/PathSensitive/CheckerHelpers.h
+4-0clang/docs/ReleaseNotes.md
+47-34 files

LLVM/project 21721b9 — mlir/docs ReleaseNotes.md, mlir/lib/CAPI/Dialect CMakeLists.txt

[MLIR][CMake] Remove aggregate generated-header ordering

Remove implicit mlir-headers ordering and redundant per-library edges.
Use generator links for header-only includes and connect generators
whose public wrappers include other generated declarations. Link Func
from MLProgram transforms because its public pass header includes
FuncOps.h.

Keep both aggregate targets available for downstream compatibility. The
full LLVM and MLIR Ninja build passes with no missing dependencies
across 9,742 audited nodes.

Assisted-by: Codex
DeltaFile
+0-32mlir/lib/CAPI/Dialect/CMakeLists.txt
+15-4mlir/lib/Dialect/LLVMIR/CMakeLists.txt
+10-6mlir/lib/Rewrite/CMakeLists.txt
+14-1mlir/lib/Dialect/Arith/IR/CMakeLists.txt
+10-1mlir/lib/Dialect/Tensor/IR/CMakeLists.txt
+10-0mlir/docs/ReleaseNotes.md
+59-44132 files not shown
+140-388138 files

LLVM/project 8b828b3 — mlir/docs CMakeInfrastructure.md, mlir/lib/Dialect/Index/IR CMakeLists.txt

[MLIR][CMake] Stop depending on mlir-generic-headers by default

Remove implicit generic-header prerequisites from library and example
helpers. Keep the aggregate and its registrations for downstream users.

Declare generic interface requirements through owning libraries or exact
generator links. Retain generators owned by IR and OpenMP and the shared
conversion-pass declarations used by standalone conversion libraries.

The complete LLVM and MLIR build and check-mlir pass. Ninja reports no
missing generated-file dependencies across all and check-mlir targets.

Assisted-by: Codex
DeltaFile
+4-5mlir/docs/CMakeInfrastructure.md
+8-1mlir/lib/Dialect/MemRef/IR/CMakeLists.txt
+7-0mlir/lib/Dialect/Utils/CMakeLists.txt
+0-6mlir/lib/Rewrite/CMakeLists.txt
+5-1mlir/lib/Dialect/UB/IR/CMakeLists.txt
+5-1mlir/lib/Dialect/Index/IR/CMakeLists.txt
+29-1423 files not shown
+91-3029 files

LLVM/project 6c5ac6d — mlir/docs CMakeInfrastructure.md, mlir/docs/DefiningDialects AttributesAndTypes.md

[MLIR][docs] Document the CMake infrastructure

Describe TableGen, library helpers, aggregation, exports, and
validation. Explain generated-header propagation through the CMake link
graph and header-only generator links with ordinary visibility.

Assisted-by: Codex
DeltaFile
+347-0mlir/docs/CMakeInfrastructure.md
+1-1mlir/docs/DefiningDialects/AttributesAndTypes.md
+348-12 files

LLVM/project 3ef0594 — llvm/cmake/modules AddLLVM.cmake, llvm/test/CMake generated-header-dependencies.test

[CMake] Propagate generated-header prerequisites through link dependencies

Use linkable TableGen targets and transitive compile properties to
follow actual header requirements. Bridge the evaluated logical-library
closure to object compilation without building provider objects or
archives.

Republish embedded component headers from shared and aggregate
libraries. Keep generators out of ordinary exports and imported MLIR
aggregation metadata. Let post-creation MLIR links use the same header
closure.

Validate clean consumer builds and exports with CMake 3.31.10 and
4.3.0-rc2 on Ninja and Unix Makefiles, including failing provider
sources.

Assisted-by: Codex
DeltaFile
+187-0mlir/test/CMake/header-dependencies.test
+165-0llvm/test/CMake/generated-header-dependencies.test
+55-20llvm/cmake/modules/AddLLVM.cmake
+19-5mlir/cmake/modules/AddMLIR.cmake
+8-0mlir/tools/mlir-shlib/CMakeLists.txt
+7-0mlir/test/CMake/lit.local.cfg
+441-2510 files not shown
+457-2716 files

LLVM/project ed9d43a — llvm/lib/Target/LoongArch LoongArchISelLowering.cpp, llvm/test/CodeGen/LoongArch/lasx splat-extract-var-idx.ll

[LoongArch] Lower splat of variable-index extract to [x]vreplve (#244542)

Lower a splat of a variable-index extract_vector_elt to [x]vreplve. For
256-bit vectors, each 128-bit lane must splat the element at the same
position within the lane, which is the per-lane semantics of xvreplve.

Also, [x]vreplve only uses the low bits of the index, so drop redundant
masking of it.

Assisted-By: LLM
DeltaFile
+25-199llvm/test/CodeGen/LoongArch/lasx/splat-extract-var-idx.ll
+110-0llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
+4-43llvm/test/CodeGen/LoongArch/lsx/splat-extract-var-idx.ll
+139-2423 files

LLVM/project e29a68b — llvm/test/CodeGen/LoongArch/lasx splat-extract-var-idx.ll, llvm/test/CodeGen/LoongArch/lsx splat-extract-var-idx.ll

[LoongArch][NFC] Add tests for splat of variable-index extract (#244541)

Add tests for splatting a vector element selected by a variable index,
for splatting such elements within each 128-bit lane, and for [x]vreplve
intrinsics with a masked index.

Assisted-By: LLM
DeltaFile
+531-0llvm/test/CodeGen/LoongArch/lasx/splat-extract-var-idx.ll
+259-0llvm/test/CodeGen/LoongArch/lsx/splat-extract-var-idx.ll
+790-02 files

LLVM/project 9fb97b8 — llvm/lib/Transforms/Vectorize VPlanTransforms.cpp, llvm/test/Transforms/LoopVectorize/RISCV low-trip-count.ll

[VPlan] Replace reassociateHeaderMask with a combine (#247946)

At the time reassociateHeaderMask was added, header masks weren't region
values and combineRecipes didn't have a worklist. Now that we have both
we can avoid the separate pass and move it into combineRecipes.

This also improves codegen on RISC-V because we now reassociate on every
call to combineRecipes, and after other combines have been applied.
DeltaFile
+11-29llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+9-10llvm/test/Transforms/LoopVectorize/RISCV/low-trip-count.ll
+0-2llvm/test/Transforms/LoopVectorize/VPlan/vplan-print-before-after-all.ll
+20-413 files

LLVM/project bb54224 — llvm/lib/Target/AMDGPU AMDGPUISelDAGToDAG.cpp, llvm/test/CodeGen/AMDGPU llvm.amdgcn.global.load.async.to.lds.ll promote-constOffset-to-imm-gfx12.ll

[AMDGPU] Skip 32-bit addresses in SADDR fallback

Since #245220, SelectGlobalSAddr also accepts 32-bit (AS6) addresses.
The out-of-range offset fallback walked such an address before it was
extended, so a divergent AS6 load with a large constant failed with
"illegal VGPR to SGPR copy", and a wrapping 32-bit add could have been
split. Skip 32-bit addresses there and add a test.

Rename isUniformInVGPRs to isProducedInVGPRs: it asks where a uniform
value lives, not whether it is uniform. Update the async LDS tests for
the new s_wait_xcnt and the multicast mask clamp.
DeltaFile
+72-0llvm/test/CodeGen/AMDGPU/constant-address-space-32bit-vmem.ll
+27-3llvm/test/CodeGen/AMDGPU/llvm.amdgcn.cluster.load.async.to.lds.ll
+12-9llvm/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
+3-0llvm/test/CodeGen/AMDGPU/promote-constOffset-to-imm-gfx12.ll
+1-0llvm/test/CodeGen/AMDGPU/llvm.amdgcn.global.load.async.to.lds.ll
+115-125 files

LLVM/project ae224e7 — llvm/lib/Target/LoongArch LoongArchLASXInstrInfo.td LoongArchLSXInstrInfo.td, llvm/test/CodeGen/LoongArch/lasx guarded-div-rem.ll

[LoongArch] Remove redundant divisor guards from vector div/rem (#244485)

The Rust portable implementations of the [x]vdiv/[x]vmod intrinsics
guard the divisor against zero and signed overflow, e.g.

```
  %bz = icmp eq %b, 0
  %guard = or %bz, (and (icmp eq %a, MIN), (icmp eq %b, -1))
  %d = select %guard, splat (1), %b
  %q = sdiv %a, %d
  %r = select %bz, splat (0), %q
```

The hardware already returns 0 for x / 0 and x % 0, MIN for MIN / -1 and
0 for MIN % -1, so the guards are redundant. Fold them into new
VDIV/VDIV_U/VMOD/VMOD_U nodes to emit a single [x]vdiv/[x]vmod.

Assisted-by: LLM
DeltaFile
+16-146llvm/test/CodeGen/LoongArch/lsx/guarded-div-rem.ll
+16-146llvm/test/CodeGen/LoongArch/lasx/guarded-div-rem.ll
+123-0llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
+11-0llvm/lib/Target/LoongArch/LoongArchLSXInstrInfo.td
+4-0llvm/lib/Target/LoongArch/LoongArchLASXInstrInfo.td
+170-2925 files

LLVM/project 494090d — llvm/test/CodeGen/LoongArch/lasx guarded-div-rem.ll, llvm/test/CodeGen/LoongArch/lsx guarded-div-rem.ll

[LoongArch][NFC] Add tests for vector div/rem with guarded divisors (#244483)

Add tests for vector div/rem whose divisor is guarded against zero and
signed overflow, as produced by portable implementations of the
[x]vdiv/[x]vmod intrinsics.

Assisted-by: LLM
DeltaFile
+551-0llvm/test/CodeGen/LoongArch/lsx/guarded-div-rem.ll
+551-0llvm/test/CodeGen/LoongArch/lasx/guarded-div-rem.ll
+1,102-02 files

LLVM/project 6f68e31 — libcxx/docs/Status Cxx26Papers.csv Cxx29Papers.csv

[libc++][docs] Add WG21 issues and papers voted in 2026-11 Buzios (#247586)

Notably, there are some papers addressing C++26 NB ballot comments, so
presumably they should be treated as C++26 papers. Remaining papers and
LWG issues are considered belonging to C++29.

For LWG4612 which is not yet adopted, GH issue is created and then
closed for the convention.
DeltaFile
+56-1libcxx/docs/Status/Cxx29Issues.csv
+7-0libcxx/docs/Status/Cxx29Papers.csv
+3-0libcxx/docs/Status/Cxx26Papers.csv
+66-13 files

LLVM/project 2bcd4b3 — lldb/source/Plugins/ScriptInterpreter/Python CMakeLists.txt

[cmake][lldb] Use Python3_SABI_LIBRARY_DIRS (#246347)

CMake now requires 3.31.  
Clarified the comment to mention where the pragma comes from since it's now in the LLVM codebase.  
Restructured the code slightly to make the dynamic plugin path use the correct library directory variable. Ditto for the other.
DeltaFile
+6-8lldb/source/Plugins/ScriptInterpreter/Python/CMakeLists.txt
+6-81 files

LLVM/project 602ef35 — llvm/test/CodeGen/AArch64 machine-outliner-retaddr-sign-sp-pc-mod.mir

Fix new test after rebase
DeltaFile
+4-0llvm/test/CodeGen/AArch64/machine-outliner-retaddr-sign-sp-pc-mod.mir
+4-01 files

LLVM/project 5c5faf2 — llvm/lib/Target/AArch64 AArch64InstrInfo.cpp, llvm/test/CodeGen/AArch64 machine-outliner-compatible-candidates.mir machine-outliner-regsave.mir

Determine what CFI to emit by looking at the existing CFI instructions
DeltaFile
+233-27llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
+145-20llvm/test/CodeGen/AArch64/machine-outliner-regsave.mir
+7-2llvm/test/CodeGen/AArch64/machine-outliner-compatible-candidates.mir
+385-493 files

LLVM/project cd8fdad — llvm/test/CodeGen/AArch64 machine-outliner-regsave.mir

Fix machine-outliner-regsave.mir after rebase
DeltaFile
+1-0llvm/test/CodeGen/AArch64/machine-outliner-regsave.mir
+1-01 files

LLVM/project 207ad52 — llvm/lib/Target/AArch64 AArch64MachineFunctionInfo.h AArch64InstrInfo.cpp

Cache CFI analysis result in AArch64FunctionInfo
DeltaFile
+126-120llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
+22-0llvm/lib/Target/AArch64/AArch64MachineFunctionInfo.h
+148-1202 files

LLVM/project 84952f2 — llvm/lib/Target/AArch64 AArch64InstrInfo.cpp, llvm/test/CodeGen/AArch64 machine-outliner-drop-stack.mir machine-outliner-compatible-candidates.mir

[AArch64][MachineOutliner] Handle async CFI for outlined calls

When calling outlined functions from a function that needs asynchronous
unwind information, we need to add extra CFI instructions at the call
site in some cases, depending on how LR is saved in the caller. We have
the following cases:

1. LR doesn't need saving at the call site. In this case we don't need
   any extra CFI instructions.
2. LR is saved in a free register. In this case we need to add
   `.cfi_register w30, wN` and `.cfi_restore w30` around the function
   call. This will make sure that an unwinder can recover the correct LR
   value.
3. LR is saved to the stack. Since this case modifies the value of SP,
   and thus potentially the CFA, we disallow it entirely with
   asynchronous unwind info. We could probably allow some special cases,
   e.g. when the function doesn't use FP, but then we would have to
   reimplement complex functionality from `AArch64FrameLowering`.
DeltaFile
+72-24llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
+26-12llvm/test/CodeGen/AArch64/machine-outliner-regsave.mir
+24-10llvm/test/CodeGen/AArch64/machine-outliner-compatible-candidates.mir
+17-6llvm/test/CodeGen/AArch64/machine-outliner-drop-stack.mir
+139-524 files

LLVM/project 7cde770 — llvm/lib/Target/AArch64 AArch64InstrInfo.cpp, llvm/test/CodeGen/AArch64 machine-outliner-throw2.ll machine-outliner-sp-addsub-fixup.mir

[AArch64][MachineOutliner] Emit async CFI in outlined functions

When requesting asynchronous unwind info, CFI instructions are now added
to the epilogue of outlined functions. The prologue CFI is also modified
to make it compatible with asynchronous unwinding.
DeltaFile
+49-4llvm/test/CodeGen/AArch64/machine-outliner-macho-compact-unwind-frame.mir
+31-7llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
+6-3llvm/test/CodeGen/AArch64/machine-outliner-calls.mir
+7-2llvm/test/CodeGen/AArch64/machine-outliner-macho-compact-unwind-frame-fp.mir
+8-0llvm/test/CodeGen/AArch64/machine-outliner-sp-addsub-fixup.mir
+2-2llvm/test/CodeGen/AArch64/machine-outliner-throw2.ll
+103-186 files

LLVM/project 67fdd12 — llvm/lib/Target/AArch64 AArch64InstrInfo.cpp

Update CFIInstBuilder names to better reflect their function
DeltaFile
+8-7llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
+8-71 files