LLVM/project f0205a4 — llvm/include/llvm/CodeGen LiveDebugVariables.h, llvm/lib/CodeGen RegAllocGreedy.cpp LiveDebugVariables.cpp

[LiveDebugVariables] Repair stale SlotIndexes

The analysis keeps its indexes from before the first register allocator
until DBG_VALUEs are emitted, by which point passes in between have
erased some of the instructions they point at. Resolve them at the
start of each allocator run and before emitting.

SlotIndexes can then reclaim the entries of erased instructions without
sparing the ones held here, which would have made generated code depend
on -g. Emitted locations are unchanged, except that intervals resolving
to one position now emit a single DBG_VALUE rather than identical
consecutive ones.
DeltaFile
+140-0llvm/lib/CodeGen/LiveDebugVariables.cpp
+63-0llvm/test/DebugInfo/AMDGPU/live-debug-vars-stale-slot-indexes.ll
+8-4llvm/test/DebugInfo/MIR/X86/live-debug-vars-unused-arg-debugonly.mir
+8-0llvm/include/llvm/CodeGen/LiveDebugVariables.h
+5-2llvm/test/CodeGen/X86/debug-spilled-snippet.ll
+7-0llvm/lib/CodeGen/RegAllocGreedy.cpp
+231-61 files not shown
+236-87 files

LLVM/project 9a998ee — clang/include/clang/Basic Diagnostic.h, clang/lib/Basic Diagnostic.cpp

[clang] Add a one-entry cache to DiagStateMap::getFile() (#228956)

Once a TU has seen a `#pragma clang diagnostic` (libc++ has them in most
headers), every DiagnosticsEngine::isIgnored() / getDiagnosticSeverity()
call with a location looks up the location's FileID in a
std::map<FileID, File>. The map has an entry for every FileID a state
was ever looked up for, including macro expansions, so it gets large.
For blink's logical_box_fragment.cc, it has 60755 entries, and 92.4% of
the 3.28M lookups are for the same FileID as the previous lookup.

std::map has stable addresses, so remember the result of the last
lookup.

For 60 random Chromium TUs (linux x64, -O2) picked with probability
proportional to their compile time, sum over all TUs:

    CPU time: 192.6 s => 191.4 s, -0.65%
    instructions: 1903.0e9 => 1888.3e9, -0.77%


    [3 lines not shown]
DeltaFile
+12-0clang/lib/Basic/Diagnostic.cpp
+7-0clang/include/clang/Basic/Diagnostic.h
+19-02 files

LLVM/project af37a65 — llvm/lib/Target/SPIRV SPIRVBuiltins.td SPIRVInstrInfo.td, llvm/test/CodeGen/SPIRV/transcoding enqueue_kernel.ll

[SPIR-V] Lower OpenCL get_kernel_* queries to OpGetKernel* instructions (#227455)

Lower __get_kernel_work_group_size_impl,
__get_kernel_preferred_work_group_size_multiple_impl,
__get_kernel_sub_group_count_for_ndrange_impl and
__get_kernel_max_sub_group_size_for_ndrange_impl
DeltaFile
+61-33llvm/lib/Target/SPIRV/SPIRVBuiltins.cpp
+40-0llvm/test/CodeGen/SPIRV/transcoding/enqueue_kernel.ll
+29-9llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp
+8-0llvm/lib/Target/SPIRV/SPIRVInstrInfo.td
+4-0llvm/lib/Target/SPIRV/SPIRVBuiltins.td
+142-425 files

LLVM/project 2e11873 — llvm/lib/CodeGen/SelectionDAG TargetLowering.cpp, llvm/test/CodeGen/AMDGPU llvm.amdgcn.mul.i24.ll rotl.ll

[SelectionDAG] Handle constants in SimplifyMultipleUseDemandedBits

Replace a non-zero constant with zero when none of its set bits are
demanded.

This allows users of `SimplifyMultipleUseDemandedBits` to eliminate
irrelevant constant bits while preserving the convention that a null
SDValue indicates no simplification.
DeltaFile
+38-45llvm/test/CodeGen/AMDGPU/rotl.ll
+3-6llvm/test/CodeGen/AMDGPU/llvm.amdgcn.mul.i24.ll
+3-4llvm/test/CodeGen/PowerPC/ppc-rotate-clear.ll
+2-4llvm/test/CodeGen/SystemZ/shift-08.ll
+2-4llvm/test/CodeGen/SystemZ/shift-04.ll
+6-0llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+54-634 files not shown
+58-7110 files

LLVM/project 0fc11eb — llvm/lib/Target/AMDGPU AMDGPUISelLowering.cpp, llvm/test/CodeGen/AMDGPU llvm.amdgcn.mul.i24.ll

[AMDGPU] Fold mul24 with an operand whose low 24 bits are zero (#224537)

mul24 only reads the low 24 bits of each operand. Try
`SimplifyDemandedBits`
before `SimplifyMultipleUseDemandedBits` so that a single use operand
such as
`(x & 0xff000000)` is simplified to zero, then fold the multiply to zero
when
either operand is a zero constant.

This folds cases such as:
```
  mul24(x & 0xff000000, y) -> 0
  mul24(x, 0) -> 0
```
DeltaFile
+62-27llvm/test/CodeGen/AMDGPU/llvm.amdgcn.mul.i24.ll
+13-10llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
+75-372 files

LLVM/project 770cb00 — lldb/test/API/functionalities/process_save_core_minidump TestProcessSaveCoreMinidump.py

[lldb][test] Correct register validity check in TestProcessSaveCoreMinidump.py (#229059)

This API will never return None, instead it will be an invalid SBValue.
I noticed this because I'm checking what can be run on an AArch64 host,
and this part of the test passed due to this mistake.
DeltaFile
+35-9lldb/test/API/functionalities/process_save_core_minidump/TestProcessSaveCoreMinidump.py
+35-91 files

FreeNAS/freenas 21ca657 — src/middlewared/middlewared/test/integration/assets pool.py

NAS-144204 / 28.0.0-BETA.1 / Remove `delete_delay`, it is not used (#19936)
DeltaFile
+0-4src/middlewared/middlewared/test/integration/assets/pool.py
+0-41 files

LLVM/project bb878a6 — lldb/source/Plugins/SymbolFile/NativePDB UdtRecordCompleter.cpp PdbAstBuilderClang.cpp, lldb/test/Shell/SymbolFile/NativePDB local-variables.cpp ast-functions.cpp

[lldb][NativePDB] Route expression function calls through FunctionCallLabel (#227021)

`NativePDB` creates function and method decls without an asm label or
with the public symbol name as the label. The expression evaluator then
has to find the callee by the name Clang mangles for the decl, which
fails whenever that name is not in the symbol table:

- Methods of class template specializations: the record is a plain
`CXXRecordDecl` named `"A<int>"`, so Clang mangles `?foo at A<int>@@...`
instead of `?foo@?$A at H@@...`.
- Functions with internal linkage, which have no `S_PUB32`.
- Functions renamed with `__asm__`.

All of the above fail with:

```
error: Couldn't look up symbols:
  int A<int>::foo(void)
```

    [26 lines not shown]
DeltaFile
+142-22lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp
+25-3lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.h
+10-10lldb/source/Plugins/SymbolFile/NativePDB/PdbAstBuilderClang.cpp
+6-2lldb/source/Plugins/SymbolFile/NativePDB/UdtRecordCompleter.cpp
+5-2lldb/test/Shell/SymbolFile/NativePDB/local-variables.cpp
+5-2lldb/test/Shell/SymbolFile/NativePDB/ast-functions.cpp
+193-419 files not shown
+211-4615 files

LLVM/project 959ae27 — flang/lib/Optimizer/Builder FIRBuilder.cpp, flang/lib/Optimizer/Transforms SimplifyIntrinsics.cpp

[flang] Build 128-bit MIN/MAX identity constants from APInt (#228513)

The MIN/MAX reduction identities were computed with
`APInt::getSigned{Min,Max}Value(bits).getSExtValue()`
and passed to `createIntegerConstant(int64_t)`. For INTEGER(16) that
value does not fit in `int64_t`.
An assertions build aborts at `-O1` on any
`MINVAL`/`MAXVAL`/`MINLOC`/`MAXLOC` of an INTEGER(16)
array, and on OpenMP `reduction(min:)`/`reduction(max:)` of INTEGER(16)
at any `-O`. A release
build zero-extends the low 64 bits instead. The identity becomes
`2**64-1` or `0`, so empty and
fully masked reductions return the wrong value.

This adds an `APInt` overload of `FirOpBuilder::createIntegerConstant`
and uses it at the four
affected sites: `SimplifyHLFIRIntrinsics`, the MAXVAL and MINLOC/MAXLOC
`init` lambdas in
`SimplifyIntrinsics`, and `ReductionProcessor::getReductionInitValue`.

    [3 lines not shown]
DeltaFile
+27-0flang/test/Transforms/simplifyintrinsics.fir
+23-0flang/test/Lower/OpenMP/wsloop-reduction-min-max-i128.f90
+18-0flang/lib/Optimizer/Builder/FIRBuilder.cpp
+15-0flang/test/HLFIR/simplify-hlfir-intrinsics-minval.fir
+15-0flang/test/HLFIR/simplify-hlfir-intrinsics-maxval.fir
+4-5flang/lib/Optimizer/Transforms/SimplifyIntrinsics.cpp
+102-55 files not shown
+132-1311 files

LLVM/project 13401af — llvm/include/llvm/IR RuntimeLibcalls.td, llvm/test/CodeGen/SystemZ zos-intrinsics.ll

[SystemZ][z/OS] Add the missing libm entry points to the libcall table (#228587)

The z/OS runtime libcall table maps most math libcalls to the IEEE entry
points of the C runtime (e.g. `cos` -> `@@FCOS at B`, `pow` -> `@@WPOW at B`),
but `tan`, `asin`, `acos`, `atan`, `atan2`, `sinh`, `cosh` and `tanh`
had no entries. Calls generated for the corresponding intrinsics then
used the plain names (`atan2f` etc.), which bind to entry points that
cannot be used in IEEE mode: a program fails at run time with `CEE3728S
The use of a function, which is not supported by this release of
Language Environment was detected.` Reproducer and details are in
#228584.

This adds the F32/F64/F128 entry points for these eight functions, with
the names the z/OS C headers map them to in IEEE mode, and three more
cases to `zos-intrinsics.ll`.

Tests: the same change on a branch based on 85ac560262, with SystemZ as
the only target: `llvm-lit test/CodeGen/SystemZ` passes (1282 tests),
and five programs of the NIST FORTRAN 77 test suite that failed with

    [9 lines not shown]
DeltaFile
+27-0llvm/test/CodeGen/SystemZ/zos-intrinsics.ll
+24-0llvm/include/llvm/IR/RuntimeLibcalls.td
+51-02 files

FreeBSD/src dcab585 — secure ssh.mk, secure/lib/libssh Makefile

secure: Rearrange Makefile SRCS to match upstream Makefile.in

SRCS entries are kept in the same order and with the same line breaks as
upstream, to make comparison easier.

No functional change intended.

Reviewed by:    emaste
Approved by:    emaste (mentor)
Differential Revision:  https://reviews.freebsd.org/D49793

(cherry picked from commit 9440aad19dca73fdd224b128ac2dc2e78191ff15)
DeltaFile
+16-7secure/lib/libssh/Makefile
+2-2secure/libexec/sftp-server/Makefile
+1-2secure/usr.bin/sftp/Makefile
+1-1secure/usr.bin/scp/Makefile
+1-1secure/libexec/ssh-pkcs11-helper/Makefile
+2-0secure/ssh.mk
+23-131 files not shown
+24-147 files

LLVM/project 45b3c4c — 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 9d103f4 — 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 b22f056 — 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
+4-1clang/test/CodeGen/systemz-charset.cpp
+2-1clang/lib/Lex/TextEncoding.cpp
+3-0clang/lib/Basic/TargetInfo.cpp
+2-0clang/include/clang/Basic/TargetInfo.h
+21-25 files

LLVM/project 04e0393 — clang-tools-extra/clang-tidy/utils FormatStringConverter.cpp, clang/lib/AST PrintfFormatString.cpp ScanfFormatString.cpp

Add isNoop to avoid conversion code in ActOnGCCAsmStmtString
DeltaFile
+41-31clang/lib/AST/FormatStringParsing.h
+31-31clang/lib/AST/FormatString.cpp
+20-20clang/lib/Sema/SemaChecking.cpp
+14-24clang/lib/AST/ScanfFormatString.cpp
+4-22clang/lib/AST/PrintfFormatString.cpp
+4-5clang-tools-extra/clang-tidy/utils/FormatStringConverter.cpp
+114-1336 files not shown
+127-13912 files

LLVM/project 8882fbf — clang/lib/AST FormatString.cpp ScanfFormatString.cpp

change char literals to u8'' to preserve behaviour in the case the
compiler is compiled with a different fexec-charset
DeltaFile
+44-44clang/lib/AST/PrintfFormatString.cpp
+28-28clang/lib/AST/ScanfFormatString.cpp
+28-27clang/lib/AST/FormatString.cpp
+100-993 files

LLVM/project e0af163 — 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
+3-2clang/lib/Lex/TextEncoding.cpp
+12-112 files

LLVM/project dbffdb8 — clang/lib/AST ScanfFormatString.cpp PrintfFormatString.cpp, llvm/include/llvm/Support TextEncoding.h

rename char conversion function to convertBasicChar
DeltaFile
+18-17clang/lib/AST/FormatString.cpp
+12-12clang/lib/AST/PrintfFormatString.cpp
+3-5clang/lib/AST/ScanfFormatString.cpp
+3-1llvm/include/llvm/Support/TextEncoding.h
+36-354 files

LLVM/project 457a69b — clang/include/clang/AST FormatString.h, clang/lib/AST ScanfFormatString.cpp PrintfFormatString.cpp

do not convert character by character
DeltaFile
+34-31clang/lib/AST/FormatString.cpp
+28-26clang/lib/AST/FormatStringParsing.h
+20-18clang/lib/Sema/SemaChecking.cpp
+8-5clang/lib/AST/PrintfFormatString.cpp
+4-4clang/lib/AST/ScanfFormatString.cpp
+2-2clang/include/clang/AST/FormatString.h
+96-866 files

LLVM/project 0707522 — clang/lib/AST FormatStringParsing.h ScanfFormatString.cpp, clang/lib/Sema SemaChecking.cpp

Add format string handling
DeltaFile
+82-39clang/lib/AST/PrintfFormatString.cpp
+46-40clang/lib/AST/FormatString.cpp
+41-24clang/lib/Sema/SemaChecking.cpp
+28-14clang/lib/AST/ScanfFormatString.cpp
+25-11clang/lib/AST/FormatStringParsing.h
+19-0llvm/lib/Support/TextEncoding.cpp
+241-1289 files not shown
+272-14615 files

LLVM/project 8951bc8 — clang/include/clang/Lex TextEncoding.h, clang/lib/Lex TextEncoding.cpp

rename CA_ToSystemEncoding to CA_ToLiteralEncodingForAsm
DeltaFile
+1-1clang/lib/Parse/Parser.cpp
+1-1clang/lib/Lex/TextEncoding.cpp
+1-1clang/include/clang/Lex/TextEncoding.h
+3-33 files

LLVM/project 6ba4a68 — utils/bazel/llvm-project-overlay/llvm BUILD.bazel

[Bazel] Fixes 0e7e59d (#229085)

This fixes 0e7e59dcf4ac70f055195782cf88e637655f6fa3 (#222031).

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

Co-authored-by: Google Bazel Bot <google-bazel-bot at google.com>
DeltaFile
+4-0utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
+4-01 files

FreeBSD/src 412c3a0 — sys/arm64/arm64 gicv5_acpi.c

arm64/gicv5: Use ArmMpidr to find the correct CPU

The GICv5 ACPI code uses CpuInterfaceNumber to as the CPU ID. This a
GICv5 CPU ID and may not be the same as the appropriate FreeBSD value.

It is also possible the target CPU is disabled, e.g. when the hw.ncpu
tunable is uses to limit CPUs. If this is the case we don't want to
enable the CPU in the cpu set as it is offline so cannot handle
interrupts.

Switch to use ArmMpidr to find which pcpu to use when finding which
CPUs the IRS is attached to.

Fixes:  9556306213e1 ("arm64: Add ACPI support to GICv5 driver")
Differential Revision:  https://reviews.freebsd.org/D59993
Sponsored by:   Arm Ltd
DeltaFile
+14-3sys/arm64/arm64/gicv5_acpi.c
+14-31 files

FreeBSD/ports 0b76328 — net-im/nchat Makefile distinfo, net-im/nchat/files patch-CMakeLists.txt patch-lib_tgchat_src_tgchat.cpp

net-im/nchat: update from 5.17.26 to 5.19.18

ChangeLog:      https://github.com/d99kris/nchat/compare/v5.17.26...v5.19.18

Sponsored by:   tipi.work
DeltaFile
+14-0net-im/nchat/files/patch-lib_tgchat_src_tgchat.cpp
+5-5net-im/nchat/files/patch-CMakeLists.txt
+3-3net-im/nchat/distinfo
+2-1net-im/nchat/Makefile
+24-94 files

LLVM/project f8d8ad7 — libsycl/src/detail program_manager.hpp program_manager.cpp, libsycl/unittests/program_manager register_and_unregister.cpp

[libsycl] Take MDataCollectionMutex in getDeviceKernelInfo() (#228099)

getDeviceKernelInfo() searched MDeviceKernelInfoMap without holding
MDataCollectionMutex, so a kernel launch could race with the
registerFatBin() or unregisterFatBin(). Fixing it by addition of lock.

Report an unknown kernel name with sycl::errc::runtime instead of
asserting. Unlike registration, which runs from a module's static
initialization where nothing can catch, this runs from a user kernel
submission, so the exception reaches the user's handler.

Assited-by: Claude Code.

Signed-off-by: Tikhomirova, Kseniya <kseniya.tikhomirova at intel.com>
DeltaFile
+20-0libsycl/unittests/program_manager/register_and_unregister.cpp
+5-1libsycl/src/detail/program_manager.cpp
+3-0libsycl/src/detail/program_manager.hpp
+28-13 files

FreeBSD/src 128e91e — libexec/rc/rc.d nuageinit_user_data_script

nuageinit: Allow the userdata script to run before firstboot* rc services

Allowing nuageinit user scripts to run before these makes it possible to
customize official BASIC-CI and BASIC-CLOUDINIT FreeBSD images.

This was requested by KDE for their CI.

Approved by:    cperciva
Pull-Request:   https://ron-dev.freebsd.org/FreeBSD/src/pulls/60

(cherry picked from commit 16e47f317c4ce2be5fed530bf8a9af9f9bf55364)
DeltaFile
+1-0libexec/rc/rc.d/nuageinit_user_data_script
+1-01 files

LLVM/project 44a5566 —

[libclc][test] Fix a regression in libclc/test/work-item/get_group_id.cl (#228621)

Add a missing noundef in libclc/test/work-item/get_group_id.cl from a
recent commit.

Fixes: 552ea17e0a93 ([ValueTracking] Handle zext/sext in
computeConstantRange (#227726), 2026-09-30)
DeltaFile
+0-00 files

OPNSense/plugins dc4d496 — net/frr pkg-descr

net/frr: Update changelog
DeltaFile
+2-0net/frr/pkg-descr
+2-01 files

LLVM/project bbe249a — libsycl/include/sycl/__impl index_space_classes.hpp, libsycl/test/basic index_space_classes.cpp

[libsycl] Fix and test sycl::item conversion (#227692)

Assisted-by: Claude Code.

Signed-off-by: Tikhomirova, Kseniya <kseniya.tikhomirova at intel.com>
DeltaFile
+37-0libsycl/test/basic/index_space_classes.cpp
+7-3libsycl/include/sycl/__impl/index_space_classes.hpp
+44-32 files

FreeBSD/src fdd3f6f — share/mk sys.mk bsd.lib.mk

bsd.lib.mk: only ctfmerge if objfiles have a CTF section

PR:             299013
Reported by:    Trond.Endrestol at ximalas.info
Reviewed by:    emaste
Fixes:          222210c6a822 ("libgcc_s: add libgcc_s_asneeded.so wrapper for gcc 16")
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D60252
DeltaFile
+1-1share/mk/sys.mk
+1-1share/mk/bsd.lib.mk
+2-22 files