LLVM/project c752e12clang/lib/Sema SemaAMDGPU.cpp, clang/test/SemaHIP amdgpu-global-load-lds-template.hip

[AMDGPU] Fix builtin crash with template parameter size argument (#175767)

## Summary

`__builtin_amdgcn_global_load_lds` and related builtins crash when the
size argument is a template parameter. The semantic checker calls
`VerifyIntegerConstantExpression` without first checking if the
expression is value-dependent, causing an assertion failure.

**Affected builtins:**
- `__builtin_amdgcn_global_load_lds`
- `__builtin_amdgcn_raw_ptr_buffer_load_lds`
- `__builtin_amdgcn_struct_ptr_buffer_load_lds`
- `__builtin_amdgcn_load_to_lds`

**Reproducer:**
```cpp
template<int N>
__device__ void load(void* src, __shared__ void* dst) {

    [21 lines not shown]
DeltaFile
+97-0clang/test/SemaHIP/amdgpu-global-load-lds-template.hip
+4-0clang/lib/Sema/SemaAMDGPU.cpp
+101-02 files

FreeBSD/src c1376acsys/netpfil/ipfw ip_fw_table.c

ipfw: find_tentry method is defined for any table algorithm

The error path is never taken.  Also the path was leaking a lock.

Noticed by:     ae
DeltaFile
+1-7sys/netpfil/ipfw/ip_fw_table.c
+1-71 files

LLVM/project 1c305aellvm/lib/Transforms/Scalar SROA.cpp, llvm/test/Transforms/SROA vector-promotion.ll vector-conversion.ll

[SROA] Use shufflevector instead of select for vector blend (#175756)

A patch from May 2013, commit 1e211913b56f390, changed SROA into using a
select instruction to perform vector blend. Idea was that using a select
was the canonical form, and that we optimize select better than
shufflevector.

This patch is changing SROA back into using shufflevector instead of
select when doing the blend (inserting a smaller vector into a larger
vector).

Motivation:
Nowadays InstCombine is canonicalizing this kind of vector blends, using
vector select instructions, into a shufflevector instruction. So it is
assumed that shufflevector is the canonical form now. It is also assumed
that we are better at optimizing shufflevector today, compared to back
in 2013.

Commit f26710d97d9c272be8a55 includes links to a discussion from 2016
(https://discourse.llvm.org/t/ir-canonicalization-vector-select-or-shufflevector/42257/6)
about picking shufflevector as the canonical form.
DeltaFile
+22-22llvm/test/Transforms/SROA/vector-promotion.ll
+17-19llvm/lib/Transforms/Scalar/SROA.cpp
+4-4llvm/test/Transforms/SROA/vector-conversion.ll
+1-2llvm/test/Transforms/SROA/slice-width.ll
+1-1llvm/test/Transforms/SROA/scalable-vectors-with-known-vscale.ll
+45-485 files

FreeBSD/ports 3bd6aa4www/element-web pkg-plist distinfo

www/element-web: Update to 1.12.8

Approved by:    maintainer (implicit, version bump, as per PR 258262)
DeltaFile
+58-93www/element-web/pkg-plist
+3-3www/element-web/distinfo
+2-2www/element-web/Makefile
+63-983 files

LLVM/project 2e45831llvm/test/Transforms/NaryReassociate/AMDGPU nary-add-uniform.ll

[NaryReassociate][AMDGPU] Pre-commit test for uniformity-aware reassociation (NFC)
DeltaFile
+319-0llvm/test/Transforms/NaryReassociate/AMDGPU/nary-add-uniform.ll
+319-01 files

LLVM/project 9b13647llvm/include/llvm/Transforms/Scalar NaryReassociate.h, llvm/lib/Transforms/Scalar NaryReassociate.cpp

[NaryReassociate] Make uniformity-aware to prefer grouping uniform values
DeltaFile
+97-3llvm/lib/Transforms/Scalar/NaryReassociate.cpp
+5-5llvm/test/Transforms/NaryReassociate/AMDGPU/nary-add-uniform.ll
+6-3llvm/test/CodeGen/AMDGPU/llc-pipeline.ll
+3-1llvm/include/llvm/Transforms/Scalar/NaryReassociate.h
+111-124 files

LLVM/project d2a5217llvm/include/llvm/ADT STLForwardCompat.h STLExtras.h, llvm/unittests/ADT STLForwardCompatTest.cpp STLExtrasTest.cpp

[ADT] Introduce bind_{front,back}, [not_]equal_to (#175056)

Introduce a llvm::bind_front and llvm::bind_back. To demonstrate its
utility, we pose the problem of shortening a common idiom where we use
an STL algorithm like all_of or any_of, and check the members of the
range against a value: we introduce llvm::{equal_to, not_equal_to} in
terms of llvm::bind_{front, back}.

---------

Co-authored-by: Jakub Kuderski <jakub at nod-labs.com>
Co-authored-by: Yanzuo Liu <zwuis at outlook.com>
DeltaFile
+319-0llvm/unittests/ADT/STLForwardCompatTest.cpp
+135-0llvm/include/llvm/ADT/STLForwardCompat.h
+22-0llvm/unittests/ADT/STLExtrasTest.cpp
+14-0llvm/include/llvm/ADT/STLExtras.h
+490-04 files

LLVM/project 8784816clang/lib/AST ExprConstant.cpp, clang/lib/AST/ByteCode InterpBuiltin.cpp

[ADT] Add APInt::truncSSatU truncation from signed to unsigned variant (#175603)

This matches the behaviour of ISD::TRUNCATE_SSAT_U and X86ISD::PACKUS
truncations: saturate signed input to unsigned result -
`truncate(smin(smax(x, 0), C))`

Add unit test coverage and update existing PACKUS constant folding to
use the APInt helper
DeltaFile
+12-1llvm/lib/Support/APInt.cpp
+9-1llvm/include/llvm/ADT/APInt.h
+10-0llvm/unittests/ADT/APIntTest.cpp
+1-6clang/lib/AST/ByteCode/InterpBuiltin.cpp
+1-6llvm/lib/Target/X86/X86ISelLowering.cpp
+1-6clang/lib/AST/ExprConstant.cpp
+34-206 files

LLVM/project 2dca9aallvm/test/CodeGen/RISCV rda-stack.mir

[RISCV][test] Fix `rda-stack.mir` test. (#175788)

It was using `BEQ $x0, $x0, ...` which is treated as conditional branch.
The intent of the test was to use unconditional branch. Replace it with
`PseudoBR ...`.
DeltaFile
+4-6llvm/test/CodeGen/RISCV/rda-stack.mir
+4-61 files

LLVM/project c461d3cllvm/lib/Transforms/InstCombine InstCombineAndOrXor.cpp, llvm/test/Transforms/InstCombine xor-and-or.ll

[profcheck][InstCombine] Preserve weights for xor statements (#175678)

When simplifying an xor statement with logical boolean operands, we may
be able to preserve branch weight data if the simplified instruction's
conditional was the first operand of one of the two logical boolean
inputs.

Tracking issue: #147390
DeltaFile
+23-13llvm/test/Transforms/InstCombine/xor-and-or.ll
+7-2llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
+30-152 files

NetBSD/pkgsrc Y3Uw6xWdoc CHANGES-2026

   doc: Updated x11/libxfce4windowing to 4.20.5
VersionDeltaFile
1.311+2-1doc/CHANGES-2026
+2-11 files

NetBSD/pkgsrc yzEQFpcx11/libxfce4windowing distinfo PLIST

   libxfce4windowing: update to 4.20.5

   4.20.5 (2025-12-29)
   ======
   - I18n: Update po/LINGUAS list
   - build: Fix typo in optimization level
   - XfwWorkspaceWayland: Add missing sanity check
   - I18n: Update po/LINGUAS list
   - XfwWindowX11: Readjust entire monitor list when one is added/removed
   - I18n: Update po/LINGUAS list
   - autotools-build: Add *-docs.xml.in to EXTRA_DIST
   - Translation Updates:
     Arabic, Czech, Danish, Esperanto, Italian, Norwegian Bokmål, Occitan
     (post 1500), Portuguese (Brazil), Slovenian, Swedish, Thai, Uyghur,
     Vietnamese
VersionDeltaFile
1.6+4-4x11/libxfce4windowing/distinfo
1.6+5-1x11/libxfce4windowing/PLIST
1.18+2-3x11/libxfce4windowing/Makefile
+11-83 files

FreeBSD/ports c536fdfdatabases/ldb25 Makefile

databases/ldb25: fix build with python 3.12

PR:             285957
DeltaFile
+1-0databases/ldb25/Makefile
+1-01 files

FreeBSD/ports da4cba9deskutils/presage Makefile

deskutils/presage: fix build with python 3.12

PR:             285957
DeltaFile
+2-1deskutils/presage/Makefile
+2-11 files

FreeBSD/ports ce0f22fchinese/pycangjie Makefile

chinese/pycangjie: fix build with python 3.12

PR:             285957
DeltaFile
+1-0chinese/pycangjie/Makefile
+1-01 files

FreeBSD/ports 99fa178devel/fungw Makefile

devel/fungw: fix build with python 3.12

PR:             285957
DeltaFile
+1-0devel/fungw/Makefile
+1-01 files

FreeBSD/ports f8ba202devel/py-dbt-extractor Makefile

devel/py-dbt-extractor: fix build with python 3.12

PR:             285957
DeltaFile
+2-1devel/py-dbt-extractor/Makefile
+2-11 files

FreeBSD/ports 710440edevel/py-zfp Makefile

devel/py-zfp: fix build with python 3.12

PR:             285957
DeltaFile
+2-1devel/py-zfp/Makefile
+2-11 files

FreeBSD/ports d91cff0games/py-fife Makefile

games/py-fife: fix build with python 3.12

PR:             285957
DeltaFile
+2-1games/py-fife/Makefile
+2-11 files

FreeBSD/ports 9964012misc/py-SoapySDR Makefile

misc/py-SoapySDR: fix build with python 3.12

PR:             285957
DeltaFile
+2-1misc/py-SoapySDR/Makefile
+2-11 files

FreeBSD/ports a0fb555finance/odoo18 pkg-plist

finance/odoo18: fix packaging with python 3.12

PR:             285957
DeltaFile
+1-1finance/odoo18/pkg-plist
+1-11 files

FreeBSD/ports fa4e169finance/odoo17 pkg-plist

finance/odoo17: fix packaging with python 3.12

PR:             285957
DeltaFile
+1-1finance/odoo17/pkg-plist
+1-11 files

FreeBSD/ports fea6aa3finance/odoo16 pkg-plist

finance/odoo16: fix packaging with python 3.12

PR:             285957
DeltaFile
+1-1finance/odoo16/pkg-plist
+1-11 files

LLVM/project 18c5225llvm/test/CodeGen/AArch64/Atomics aarch64-atomic-load-rcpc_immo.ll, llvm/test/CodeGen/AArch64/GlobalISel arm64-pcsections.ll

[AArch64] Regenerate arm64-pcsections.ll and aarch64-atomic-load-rcpc_immo.ll. NFC
DeltaFile
+46-46llvm/test/CodeGen/AArch64/Atomics/aarch64-atomic-load-rcpc_immo.ll
+32-32llvm/test/CodeGen/AArch64/GlobalISel/arm64-pcsections.ll
+78-782 files

FreeNAS/freenas 021c243src/middlewared/middlewared/etc_files/ctdb ctdb.conf.mako nodes.mako, src/middlewared/middlewared/plugins etc.py smb.py

Add clustered SMB state

This commit adds working configuration for stateful SMB HA failover:

* reclock helper script - determines which node holds the cluster
  mutex lock based on presence of data pool system dataset.

* ctdb-related etc files. We can hard-code the nodes config based
  on our known HA nodes (this significantly eases past problems with
  gluster that we saw with dynamic nodes and ctdb stability).

* smbd will remain stopped on standby controller until it becomes
  standby.

* keepalived will continue to manage virtual IPs
DeltaFile
+83-0src/middlewared/middlewared/scripts/ctdb_ha_reclock.py
+22-0src/middlewared/middlewared/etc_files/ctdb/ctdb.conf.mako
+11-0src/middlewared/middlewared/utils/ctdb.py
+11-0src/middlewared/middlewared/plugins/etc.py
+11-0src/middlewared/middlewared/etc_files/ctdb/nodes.mako
+5-3src/middlewared/middlewared/plugins/smb.py
+143-36 files not shown
+163-812 files

LLVM/project a05f603flang/lib/Lower/OpenMP Clauses.cpp ClauseProcessor.cpp, llvm/include/llvm/Frontend/OpenMP ClauseT.h

[flang][Lower] Lower OmpDependClause to Depend or Doacross (#175772)

The clause::Depend class was a variant that either held a TaskDep class
or a Doacross clause. This mirrors the OmpDependClause in the AST, which
due to changes in the OpenMP spec can contain two different forms.

This is not actually necessary, and we can save some complexity by
having clause::Depend only represent task dependence, and lowering
OmpDependClause to either clause:Depend or clause::Doacross.
DeltaFile
+30-31flang/lib/Lower/OpenMP/Clauses.cpp
+3-12llvm/include/llvm/Frontend/OpenMP/ClauseT.h
+3-9flang/lib/Lower/OpenMP/ClauseProcessor.cpp
+36-523 files

FreeBSD/src 34c94bestand/efi/loader main.c

loader.efi: Only use SPCR if enabled.

SerialPort in the SPCR is zeroed when serial redirection is disabled,
rather than the SPCR being omitted from the ACPI tables ony many
systems. Check to see that SerialPort.Address is non-zero before using.

FreeBSD would fail to boot on systems that could have a serial port
redireciton, but don't have it enabled because the loader would create a
bogus hw.uart.console. While one could unset this value to boot, you
couldn't do that automatically very easily. Instead, don't even look
at the SPCR table if the SerialPort is zero'd.

PR: 292206
MFC After: 3 days
Sponsored by: Netflix
Co-authored-by: Warner Losh <imp at FreeBSD.org>
Closes:  https://github.com/freebsd/freebsd-src/pull/1948

(cherry picked from commit d82698ac68c23d856716dc9f6524b9ef363d7eba)
DeltaFile
+9-5stand/efi/loader/main.c
+9-51 files

LLVM/project fb2c5b1llvm/utils/lit/lit TestRunner.py, llvm/utils/lit/tests shtest-shell.py

[lit] Remove error message for %T (#175782)

We left an error message for users of %T through the LLVM 22 branch
point to hopefully make it easier for anyone migrating versions rather
than having the checks silently fail with a %T ending up in the executed
command. Now that 22 has branched, we can remove this check as we all
downstream users should have seen the error by this point.
DeltaFile
+0-8llvm/utils/lit/lit/TestRunner.py
+1-5llvm/utils/lit/tests/shtest-shell.py
+0-2llvm/utils/lit/tests/Inputs/shtest-shell/capital-t-error-message.txt
+1-153 files

FreeBSD/src efa7807stand/common disk.c

stand: Try to parse vdisk correctly

PR:                     289306
Sponsored by:           Netflix
Reviewed by:            dab
MFC After:              5 days
Differential Revision:  https://reviews.freebsd.org/D52500

(cherry picked from commit d18ed8e19c3cb264340987bdc191615108d8413a)
DeltaFile
+12-1stand/common/disk.c
+12-11 files

NetBSD/pkgsrc gTtCNNsdoc CHANGES-2026

   doc: updated www/firefox140 and www/firefox140-l10n to 140.7
VersionDeltaFile
1.310+3-1doc/CHANGES-2026
+3-11 files