LLVM/project afdd331 — libcxx/src CMakeLists.txt, libcxx/src/pstl statpart.cpp std_thread_sched.h

[libc++][pstl] Add a task scheduler based on std::thread (#237313)

This PR adds a simple task scheduler for PSTL.
With that, `std::execution::par` makes algorithms run in parallel on
non-Apple platforms (Apple platforms keep using `libdispatch`).

The implementation uses only the threading facilities provided by the
C++ Standard and contains no platform-specific code.
This code is intended to be a replaceable implementation detail of
libc++, which is not exported and can only be accessed via the
`std::__pstl::__statpart::__apply()` proxy.
The design prioritises correctness and simplicity over peak performance,
while still performing reasonably for typical usage (comparable to
`dispatch_apply_f()` from GCD).
DeltaFile
+317-0libcxx/src/pstl/std_thread_sched.h
+19-3libcxx/src/pstl/statpart.cpp
+1-0libcxx/src/CMakeLists.txt
+337-33 files

LLVM/project 80989c8 — llvm/lib/Target/SPIRV SPIRVLowerDynamicLocalMemory.cpp, llvm/test/CodeGen/SPIRV/dynamic-local-memory ctor-dtor-order.ll array-lowering.ll

[SPIRV][Offload] Implement `DynSharedMemory` for L0 (#231160)

This PR implements SLM for Level Zero backend. Every kernel in a module
lowered by the new SPIR-V pass receives a trailing `__local` argument,
including kernels that do not use SLM.

In order to support existing code that uses offload, the PR adds an
additional pass to SPIRV backend. The idea is that the pass is searching
for all extern unsized workgroup arrays and then it converts them to a
global variable that is initialized by an additional kernel argument to
every kernel in the module, including kernels that do not reference the
array.

The pass closes the gap between cuda/hsa and level_zero handling of the
dynamically sized workgroup memory, because level_zero (and openCL) only
support the local memory sized through kernel arguments compared to cuda
which configures it during kernel launch. It was inspired by existing
code in intel's fork of llvm.


    [9 lines not shown]
DeltaFile
+278-0llvm/lib/Target/SPIRV/SPIRVLowerDynamicLocalMemory.cpp
+249-0llvm/test/CodeGen/SPIRV/dynamic-local-memory/array-lowering.ll
+82-0llvm/test/CodeGen/SPIRV/dynamic-local-memory/ctor-dtor-order.ll
+52-0offload/test/offloading/dyn_groupprivate_spmd.cpp
+37-12offload/liboffload/plugins/level_zero/src/L0Kernel.cpp
+40-4offload/unittests/OffloadAPI/kernel/olLaunchKernel.cpp
+738-1612 files not shown
+850-2718 files

LLVM/project c173c2c — llvm/lib/CodeGen/SelectionDAG DAGCombiner.cpp TargetLowering.cpp, llvm/test/CodeGen/AArch64 vector-shuffle-var.ll

[DAG] SimplifyDemandedVectorElts - add ISD::VECTOR_SHUFFLE_VAR handling (#244921)

Simplify the demanded elements of the mask operand using DemandedElts,
and use the mask's constant range to limit the demanded source elements.

The InstCombine part is in #245249.

Fixes #244310

AI Note: I've used Claude Code to help me understand `SelectionDAG`
concepts and the codebase. The implementation and tests are my own.
DeltaFile
+319-24llvm/test/CodeGen/X86/vector-shuffle-var.ll
+36-0llvm/test/CodeGen/AArch64/vector-shuffle-var.ll
+32-0llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+0-16llvm/test/CodeGen/X86/vector-shuffle-var-legalize.ll
+9-0llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+396-405 files

LLVM/project 4d07c01 — llvm/lib/Target/X86 X86ISelLowering.cpp, llvm/test/CodeGen/X86 pr209714.ll

[X86] Fix miscompile of srl(xor(y, vecreduce_umax(x)), bw-1) (#244835)

In the signbit reduction fold added in #210281, `X` is initialized to
`N0` as the fallback for a failed `m_Not` match, but `sd_match`
overwrites `X` while trying the `xor` operands, even when the match
fails. If the last operand tried is `vecreduce_umax(x)`, the `xor` is
dropped and the shift is lowered to a `MOVMSK` test of `x`.

Set the fallback only after the match fails.

Fixes #244613
Fixes #244753

Assisted-by: Claude Opus 5.5
DeltaFile
+257-0llvm/test/CodeGen/X86/pr209714.ll
+4-1llvm/lib/Target/X86/X86ISelLowering.cpp
+261-12 files

LLVM/project d67e3cb — llvm/lib/CodeGen/SelectionDAG DAGCombiner.cpp, llvm/test/CodeGen/X86 load-combine-masked.ll

[DAGCombiner] Bail out in MatchLoadCombine when no bytes come from load (#244857)

Since #200247, calculateByteProvider returns ConstantZero for bytes
masked by AND with 0. This could make `Loads` empty in MatchLoadCombine
and triggers assertion.

Fix by early return when `Loads` is empty.

Fixes: https://github.com/llvm/llvm-project/issues/244804

Assisted-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+18-0llvm/test/CodeGen/X86/load-combine-masked.ll
+3-2llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+21-22 files

FreeBSD/ports 3f6533e — audio/ncspot Makefile Makefile.crates

audio/ncspot: update 1.5.0 -> 1.5.1

Changelog: https://github.com/hrkfdn/ncspot/releases/tag/v1.5.1

PR:             300827
Reported by:    eacrawford02 at gmail.com
DeltaFile
+61-61audio/ncspot/distinfo
+29-29audio/ncspot/Makefile.crates
+1-2audio/ncspot/Makefile
+91-923 files

LLVM/project 7774bfc — llvm/lib/ExecutionEngine/IntelJITProfiling jitprofiling.c

[NFC][ExecutionEngine] Fix calloc argument order in jitprofiling.c (#245189)

calloc takes (nmemb, size); the arguments were swapped. No functional
change, but it silences -Wcalloc-transposed-args on newer compilers.

---------

Co-authored-by: Claude <noreply at anthropic.com>
DeltaFile
+1-1llvm/lib/ExecutionEngine/IntelJITProfiling/jitprofiling.c
+1-11 files

LLVM/project 524f6f9 — clang/lib/CIR/CodeGen CIRGenExpr.cpp, clang/test/CIR/CodeGenHLSL scalar-swizzles.hlsl

[CIR] HLSL Scalar swizzles with non vector dest type (#245069)

Implement support for HLSL Scalar swizzles with non-vector destination
type
DeltaFile
+34-0clang/test/CIR/CodeGenHLSL/scalar-swizzles.hlsl
+7-3clang/lib/CIR/CodeGen/CIRGenExpr.cpp
+41-32 files

FreeBSD/src 5775048 — sys/dev/acpica/Osd OsdSchedule.c

acpi: Tasks: Ensure taskqueue is running before allowing to drain

In AcpiOsWaitEventsComplete(), fix the test controlling whether to call
taskqueue_drain_all(): That must happen only if threads to process the
taskqueue have been created.

In the initial code, there is a very small window where
'acpi_boot_tasks_nb' could be 0 but some task was concurrently enqueued
(e.g., by an interrupt), leading to a call to taskqueue_drain_all()
which would wait forever in the absence of threads processing the
taskqueue.

Reported by:    llm-postcr
Sponsored by:   The FreeBSD Foundation
DeltaFile
+5-8sys/dev/acpica/Osd/OsdSchedule.c
+5-81 files

FreeNAS/freenas f1f9ffe — src/middlewared/middlewared/plugins/zettarepl_ state.py

Simplify even more
DeltaFile
+3-12src/middlewared/middlewared/plugins/zettarepl_/state.py
+3-121 files

LLVM/project afc286b — mlir/lib/Dialect/OpenACC/Transforms ACCCGToGPU.cpp, mlir/test/Dialect/OpenACC acc-cg-to-gpu-reduction-array.mlir acc-cg-to-gpu-private-local-cast.mlir

[MLIR][OpenACC] Keep private stores of array reductions on one lane (#245438)

Two fixes in the acc-cg-to-gpu lowering of privatized arrays:

- The walk that finds the acc.private_local behind a memref followed
every operand of the defining op. A memref.reinterpret_cast whose
dynamic sizes come from a different private descriptor was therefore
attributed to that descriptor. Scalar operands (sizes, strides, offsets,
indices) only shape an access, so the walk now follows only the view
source, the base entity of a partial access, or non-scalar operands.

- The per-thread partials of an array reduction are combined across the
accumulate's thread dimensions. Storing the reduction identity is safe
on every lane and initializes each partial. Any other store into a
partial is an update, and it is no longer made active on every thread:
it stays on one lane. Previously such an update ran on every lane, so
its contribution was combined once per lane.
DeltaFile
+95-5mlir/lib/Dialect/OpenACC/Transforms/ACCCGToGPU.cpp
+58-0mlir/test/Dialect/OpenACC/acc-cg-to-gpu-private-local-cast.mlir
+57-0mlir/test/Dialect/OpenACC/acc-cg-to-gpu-reduction-array.mlir
+210-53 files

LLVM/project 0a69631 — llvm/lib/Transforms/Vectorize VPlanTransforms.cpp VPlanUtils.h

[VPlan] Tighten usecase of findRecipe (NFC) (#236810)

Rename findRecipe to findUserRecursively for clarity, noticing that it
is only ever necessary in epilogue-based reasoning, which falls outside
VPlan modeling. Migrate one user to getSingleUser, and improve code
around remaining two users that do epilogue-based reasoning.
DeltaFile
+8-12llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+5-5llvm/lib/Transforms/Vectorize/VPlanPatternMatch.h
+3-6llvm/lib/Transforms/Vectorize/VPlanConstruction.cpp
+2-4llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+3-3llvm/lib/Transforms/Vectorize/VPlanUtils.h
+21-305 files

FreeBSD/ports 81d9440 — devel/glab pkg-plist Makefile

devel/glab: update to 1.133.0

Changes:        https://gitlab.com/gitlab-org/cli/-/releases
DeltaFile
+5-5devel/glab/distinfo
+2-2devel/glab/Makefile
+1-0devel/glab/pkg-plist
+8-73 files

FreeBSD/ports d4b53eb — misc/hermes-agent Makefile

misc/hermes-agent: remove the venv's lib64 symlink

CPython's venv creates lib64 as a symlink to lib on 64-bit.  The
plist is built with find -type f / -type d, which never enumerates a
symlinked directory, so check-plist reports the path as orphaned --
and an @dir entry for it fails the type comparison, so it is then
reported as both orphaned and missing.

The symlink is a pure compatibility alias: the wrapper invokes the
venv interpreter directly and the stdlib resolves to lib.  Remove it
in do-install alongside the other unneeded venv artifacts.

PR:             300998
DeltaFile
+10-6misc/hermes-agent/Makefile
+10-61 files

LLVM/project 75d3a6c — llvm/test/Transforms/LoopVectorize first-order-recurrence-tail-folding.ll

[LV] Increase test coverage of FOR-tail-folding (#238318)

Fix missing test coverage for the case when first-order-recurrences have
no in-loop users in the tail-folding case.

Assisted-by: llm
DeltaFile
+282-0llvm/test/Transforms/LoopVectorize/first-order-recurrence-tail-folding.ll
+282-01 files

LLVM/project b18c8e0 — lld/ELF Writer.cpp, lld/test/ELF relocatable-redundant-symtabshndx.s

[LLD][ELF] Always finalize a .symtab_shndx section. (#245334)

The SymtabShndxSection::isNeeded depends on the number of Output
Sections. In removeEmptySyntheticSections isNeeded may return true, but
later after adjustOutputSections the number of Output Sections can drop
to below SHN_LORESERVE, meaning that finalizeSynthetic will skip the
SymtabShndxSection::finalize.

This results in a redundant .symtab_shndx section with a sh_link of 0,
which prevents the ELF file from being used by some tools including lld.

Removing the Output Section containing .symtab_shndx after
adjustOutputSections is possible, but requires quite a lot of extra code
that handles edge cases that might happen with a linker script to be
repeated.

For now, always run the finalize when we are going to write the
.symtab_shndx section, which will produce a redundant, but benign extra
section.

fixes: #244372
DeltaFile
+48-0lld/test/ELF/relocatable-redundant-symtabshndx.s
+5-1lld/ELF/Writer.cpp
+53-12 files

LLVM/project 8b3ed7e — llvm/lib/Transforms/Scalar GVN.cpp, llvm/test/Transforms/GVN pre-no-hoist-across-lifetime.ll

[GVN] Treat possibly overlapping `lifetime.start` as a clobber in MSSA-path (#245978)

Mirroring 5f88e49e8c24c5b799872b4331d35b5406d3c213, ensure that a
`lifetime.start` that partially or possibly overlaps the memory location
of the load being analyzed is treated as clobber in the MSSA-based walk
as well. A PartialAlias overlap may be handled as a definition in the
future.
DeltaFile
+7-2llvm/lib/Transforms/Scalar/GVN.cpp
+2-1llvm/test/Transforms/GVN/pre-no-hoist-across-lifetime.ll
+9-32 files

LLVM/project de6d882 — utils/bazel/llvm-project-overlay/mlir/test BUILD.bazel, utils/bazel/llvm-project-overlay/mlir/unittests BUILD.bazel

[Bazel] Fixes d71acc8 (#245991)

This fixes d71acc8f3779399a1027df43422d2a6e430204a3 (#244443).

Buildkite error link:
https://buildkite.com/llvm-project/upstream-bazel/builds?commit=d71acc8f3779399a1027df43422d2a6e430204a3

---------

Co-authored-by: Google Bazel Bot <google-bazel-bot at google.com>
DeltaFile
+10-13utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel
+1-0utils/bazel/llvm-project-overlay/mlir/unittests/BUILD.bazel
+11-132 files

LLVM/project ee27101 — lldb/packages/Python/lldbsuite/test decorators.py

[lldb][test] Cache the result of _get_macos_sdk_version (#245955)

_get_macos_sdk_version runs 'xcrun --sdk macosx --show-sdk-version' on
every call. It is called for every decorator evaluation on macOS, so
loading a test file spawns one xcrun process per decorated test method.
For example, loading TestConstStaticIntegralMember.py runs xcrun 30
times, which takes ~0.5s on a good day.

The SDK version can't change during a test run, so cache the result.

assisted-by: claude
DeltaFile
+2-0lldb/packages/Python/lldbsuite/test/decorators.py
+2-01 files

LLVM/project 3e30ba3 — clang/lib/CIR/Dialect/IR CIRDialect.cpp, clang/test/CIR/Transforms vector-shuffle-dynamic-fold.cir vector-ternary-fold.cir

[CIR] Fix crashes in the vector constant folders

A constant vector can hold elements that are not integer or
floating-point literals, such as undef and poison. Folding a
`cir.vec.shuffle` with a -1 index produces one. The folders of
`cir.vec.cmp`, `cir.vec.fcmp`, `cir.vec.ternary` and
`cir.vec.shuffle.dynamic` cast every element they evaluate to a literal
and asserted on such a vector. They now leave the operation alone. This
also covers a `cir.vec.ternary` whose condition is a constant vector of
bool, which is still not folded.

Two more assertions in the same folders are fixed the same way:

- The `true` and `false` shortcut of `cir.vec.fcmp` built a constant
  from the fixed size of the result type and asserted on a scalable
  vector.
- `cir.vec.shuffle.dynamic` indexed past the end of a vector whose
  element count is not a power of two.


    [4 lines not shown]
DeltaFile
+61-0clang/test/CIR/Transforms/vector-cmp-fold.cir
+28-0clang/lib/CIR/Dialect/IR/CIRDialect.cpp
+26-0clang/test/CIR/Transforms/vector-ternary-fold.cir
+25-0clang/test/CIR/Transforms/vector-shuffle-dynamic-fold.cir
+140-04 files

OpenBSD/xenocara sKsrZV8 — app/cwm kbfunc.c

   fix cycling-in-class for when a client doesn't supply a WM_CLASS property

   report from, and validation with, Tomas Rippl.
VersionDeltaFile
1.177+4-3app/cwm/kbfunc.c
+4-31 files

FreeNAS/freenas 85cdf16 —

Empty commit to create PR on github.

You should reset it
DeltaFile
+0-00 files

FreeNAS/freenas 728ab3b — src/middlewared/middlewared/plugins/alert __init__.py oneshot.py, src/middlewared/middlewared/plugins/ups __init__.py

NAS-145410 / 28.0.0-BETA.1 / Make `alert.oneshot_replace` reuse existing alerts (#20297)

This is necessary for future work (conflicting paths alerts).

With `reuse`, an instance that matches an existing alert (same class and
key) continues that alert.

Without `reuse`, the method runs `oneshot_delete` with no query, then
`oneshot_create` for every instance. Each step sends its own changes.
DeltaFile
+31-3src/middlewared/middlewared/plugins/alert/oneshot.py
+25-0tests/api2/test_alert_oneshot.py
+16-4src/middlewared/middlewared/plugins/alert/__init__.py
+1-1src/middlewared/middlewared/plugins/ups/__init__.py
+73-84 files

FreeNAS/freenas 463b608 — src/middlewared/middlewared/test/integration/assets ftp.py

Fix flaky FTP tests

(cherry picked from commit 237e9f85fb24a34d652e31432628a09e8ec5137f)
DeltaFile
+10-4src/middlewared/middlewared/test/integration/assets/ftp.py
+10-41 files

FreeNAS/freenas 4760bfb — src/middlewared/middlewared/test/integration/assets ftp.py

Fix flaky FTP tests

(cherry picked from commit 237e9f85fb24a34d652e31432628a09e8ec5137f)
DeltaFile
+10-4src/middlewared/middlewared/test/integration/assets/ftp.py
+10-41 files

FreeNAS/freenas f5a2141 — tests/api2 test_path_safety.py

NAS-145420 / 28.0.0-BETA.1 / Fix broken path security tests (#20305)
DeltaFile
+7-6tests/api2/test_path_safety.py
+7-61 files

FreeNAS/freenas 01bf061 — src/middlewared/middlewared/test/integration/assets ftp.py

NAS-145422 / 28.0.0-BETA.1 / Fix flaky FTP tests (#20306)

Preserving configs from previous test runs made tests unstable as they
became dependent on unrelated and uncontrollable environment.
DeltaFile
+10-4src/middlewared/middlewared/test/integration/assets/ftp.py
+10-41 files

FreeNAS/freenas dbf4a18 — src/middlewared/middlewared/plugins/datastore filter.py, src/middlewared/middlewared/pytest/unit/plugins test_datastore_json_valid.py

Fix queries like `["event_data.method", "in", ["network.configuration.update", "smb.update"]]`

(cherry picked from commit 8c9f61a7a960e9114aeff95acc53669050cb7f71)
DeltaFile
+13-5src/middlewared/middlewared/plugins/datastore/filter.py
+15-0src/middlewared/middlewared/pytest/unit/plugins/test_datastore_json_valid.py
+28-52 files

FreeNAS/freenas 8bb2e23 — src/middlewared/middlewared/plugins/datastore filter.py, src/middlewared/middlewared/pytest/unit/plugins test_datastore_json_valid.py

NAS-145423 / 28.0.0-BETA.1 / Fix queries like `["event_data.method", "in", ["network.configuration.update", "smb.update"]]` (#20307)

It failed with TypeError: 'in <string>' requires string as left operand,
not NoneType at plugins/datastore/filter.py:13.

Not used by any of the current code, it was found by an agent
investigating an unrelated bug.

*Cause*: for JSON-path filters, filter.py turns a list or dict value
into one JSON string. That is right for `=`, as in
`["event_data.params", "=", [1]]`. But `in` and `nin` got the whole list
as one string, so `in_()` failed. This was added in f8bf3b9578. Before
that commit, in on a JSON path worked, so this is a regression.
DeltaFile
+13-5src/middlewared/middlewared/plugins/datastore/filter.py
+15-0src/middlewared/middlewared/pytest/unit/plugins/test_datastore_json_valid.py
+28-52 files

FreeBSD/ports 65ad345 — www/py-parallel-web Makefile distinfo

www/py-parallel-web: update to 1.5.0
DeltaFile
+3-3www/py-parallel-web/distinfo
+1-1www/py-parallel-web/Makefile
+4-42 files