LLVM/project 1b5bd3c — llvm/lib/Target/AMDGPU SIInsertWaitcnts.cpp, llvm/test/CodeGen/AMDGPU waitcnt-vavdst-loop-header.mir

[AMDGPU] Defer S_WAITCNT_DEPCTR erasure and updates in expert mode

A pre-existing S_WAITCNT_DEPCTR was erased, or had its VA_VDST and
VM_VSRC fields relaxed, as soon as the incoming state made those waits
look redundant. In a loop header that happens on the first visit, before
the backedge adds the instructions of the loop body. The wait is then
lost when the header is visited again with them pending.

Keep the original operand of every S_WAITCNT_DEPCTR, including
duplicates, while iterating to the fixed point, and only apply the final
encoding or erase the instruction at the end of the pass.

Also reset the VA_VDST field of a duplicate S_WAITCNT_DEPCTR to "no
wait" once its wait has been folded into the first one, instead of
leaving a redundant copy of the combined wait behind.

Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+34-36llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
+6-4llvm/test/CodeGen/AMDGPU/waitcnt-vavdst-loop-header.mir
+40-402 files

LLVM/project 271d2a8 — llvm/lib/Target/AMDGPU SIInsertWaitcnts.cpp

[AMDGPU] Reuse waitcnt operand update helper
DeltaFile
+15-19llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
+15-191 files

LLVM/project be6cbb4 — llvm/test/CodeGen/AMDGPU waitcnt-vavdst-loop-header.mir

[AMDGPU] Precommit test for S_WAITCNT_DEPCTR in loop headers (NFC)

Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+205-0llvm/test/CodeGen/AMDGPU/waitcnt-vavdst-loop-header.mir
+205-01 files

LLVM/project bb7358b — llvm/test/CodeGen/PowerPC vec_conv_fp64_to_i16_elts.ll vec_conv_fp64_to_i8_elts.ll

[PowerPC] Enable SlotIndexes compaction by default

Greedy measures live ranges in slot indexes, and instructions erased
before allocation (by PHI elimination, two-address lowering and the
coalescer) leave entries behind that make ranges look longer than
they are. Opt PowerPC in to dropping them, as AMDGPU and ARM do, so
allocation works with real distances. Passing
-greedy-compact-slot-indexes=false restores the old behaviour.

On CTMark (pwr8, pwr10, AIX, ppc32), .text and llc compile time move
by less than 0.03% and evictions drop by 1.5-5.8%.

The test updates are register allocation changes; csr-split.ll gets
back the live range split it was written to check.
DeltaFile
+1,589-1,644llvm/test/CodeGen/PowerPC/clmul-vector.ll
+279-279llvm/test/CodeGen/PowerPC/all-atomics.ll
+192-192llvm/test/CodeGen/PowerPC/vec_conv_fp32_to_i16_elts.ll
+165-165llvm/test/CodeGen/PowerPC/more-dq-form-prepare.ll
+142-142llvm/test/CodeGen/PowerPC/vec_conv_fp64_to_i8_elts.ll
+132-132llvm/test/CodeGen/PowerPC/vec_conv_fp64_to_i16_elts.ll
+2,499-2,55437 files not shown
+3,490-3,54243 files

FreeBSD/ports 7db7103 — benchmarks/netperfmeter Makefile distinfo

benchmarks/netperfmeter: Update 2.0.16 => 2.0.18

Changelog:
https://github.com/dreibh/netperfmeter/blob/netperfmeter-2.0.18/ChangeLog

Commit log:
https://github.com/dreibh/netperfmeter/compare/netperfmeter-2.0.16...netperfmeter-2.0.18

PR:     301148
DeltaFile
+3-3benchmarks/netperfmeter/distinfo
+1-1benchmarks/netperfmeter/Makefile
+4-42 files

FreeBSD/ports 75bdaab — databases/qdrant distinfo Makefile

databases/qdrant: fix build on powerpc64*

The 1.20.1 update dropped the patches from qdrant PR #11321, which is
still open, so the build fails again in lib/quantization/build.rs.
Bring them back. The telemetry fix and the sysinfo patch stay gone,
1.20.1 and sysinfo 0.40.1 have them.
DeltaFile
+5-1databases/qdrant/distinfo
+6-0databases/qdrant/Makefile
+11-12 files

FreeBSD/ports a81ecfa — math/sdpa/files patch-mumps_Makefile

math/sdpa: fix build with CPUTYPE

The bundled MUMPS reads the compiler flags with cut -f2 -d=, which stops
at the next '='. With CPUTYPE=power9 it ends up calling cc with a bare
-mcpu. Use cut -f2- like etc/Makefile already does.

Approved by:    portmgr (blanket)
DeltaFile
+3-3math/sdpa/files/patch-mumps_Makefile
+3-31 files

FreeBSD/ports 58403c8 — biology/bifrost Makefile

biology/bifrost: fix build with CPUTYPE

COMPILATION_ARCH ends up as -march=, so the build breaks when CPUTYPE
isn't a valid -march value, like power9 on powerpc64le. CPUTYPE is
already in CFLAGS through bsd.cpu.mk, so just turn it off.
DeltaFile
+1-1biology/bifrost/Makefile
+1-11 files

FreeBSD/ports ccddaa1 — net/stu/files patch-cargo-crates_aws-lc-sys-0.27.1_aws-lc_crypto_fipsmodule_cpucap_cpu__ppc64le.c

net/stu: fix build on powerpc64le

The bundled aws-lc-sys calls getauxval(), which FreeBSD doesn't have.
Backport aws-lc commit 2d68e783e3f8, which uses elf_aux_info() instead.
DeltaFile
+16-0net/stu/files/patch-cargo-crates_aws-lc-sys-0.27.1_aws-lc_crypto_fipsmodule_cpucap_cpu__ppc64le.c
+16-01 files

FreeBSD/ports b28a09b — security/snort3 pkg-plist

security/snort3: fix plist without HYPERSCAN

The 3.13.2.0 update lost the %%HYPERSCAN%% markers on the hyper_* headers.
They are only installed with Hyperscan, so packaging fails when the option
is off, which is the default everywhere except amd64.

Fixes:  eaab43165ef2 ("security/snort3: Update version 3.12.4.0=>3.13.2.0")
DeltaFile
+2-2security/snort3/pkg-plist
+2-21 files

FreeBSD/ports d846eb7 — devel/libunwind-devel distinfo Makefile

devel/libunwind-devel: fix build on powerpc64*

Pull in the upstream fixes for the ppc64 build and for unwinding from
core files, which didn't work on FreeBSD at all. Coredump support now
builds on powerpc64* too, only powerpc keeps it disabled.

Approved by:    portmgr (blanket)
DeltaFile
+7-1devel/libunwind-devel/distinfo
+7-1devel/libunwind-devel/Makefile
+14-22 files

FreeBSD/ports d861ab6 — games/anki distinfo Makefile

games/anki: fix build on powerpc64le

Since 92401c33b734 the node modules archive has the architecture in its
name, so the one for powerpc64le is missing from distinfo. It's the same
file as the amd64 one, so add it under its own name.

Approved by:    portmgr (blanket)
DeltaFile
+4-3games/anki/Makefile
+2-0games/anki/distinfo
+6-32 files

NetBSD/pkgsrc-wip dc146ad — chawan distinfo DESCR

chawan: update to 0.5.3
DeltaFile
+45-0chawan/PLIST
+31-0chawan/Makefile
+9-0chawan/COMMIT_MSG
+6-0chawan/DESCR
+5-0chawan/distinfo
+96-05 files

FreeBSD/ports f02d11e — net-im/tuwunel distinfo Makefile, net-im/tuwunel/files patch-rust-rocksdb_librocksdb-sys_rocksdb_utilities_fault__injection__fs.h

net-im/tuwunel: enable on powerpc64*

tuwunel sizes its database thread pool by the number of CPUs and fails to
start when that goes over FreeBSD's per-process thread limit, which
happens on bigger machines, amd64 included. Cap it at
kern.threads.max_threads_per_proc. Also drop a little-endian assert from a
rocksdb test helper that breaks the build on powerpc64.

Approved by:    portmgr (blanket)
DeltaFile
+11-0net-im/tuwunel/files/patch-rust-rocksdb_librocksdb-sys_rocksdb_utilities_fault__injection__fs.h
+5-1net-im/tuwunel/Makefile
+3-1net-im/tuwunel/distinfo
+19-23 files

FreeBSD/ports b93b9aa — devel/llvm20/files patch-llvm_lib_CodeGen_SelectionDAG_LegalizeTypes.h patch-llvm_lib_CodeGen_SelectionDAG_LegalizeFloatTypes.cpp

devel/llvm20: backport fix for crashes on half freeze

LLVM 20 aborts with "Do not know how to promote this operator's result!"
when it has to promote a freeze of a half value, which happens on targets
without native half support like powerpc64. Julia's Float16 code runs
into it.

Approved by:    portmgr (blanket)
Obtained from:  https://github.com/llvm/llvm-project/commit/5b6b4fdb4b07e1d0d9a647f40a30d47f26178e09
DeltaFile
+32-0devel/llvm20/files/patch-llvm_lib_CodeGen_SelectionDAG_LegalizeFloatTypes.cpp
+13-0devel/llvm20/files/patch-llvm_lib_CodeGen_SelectionDAG_LegalizeTypes.h
+45-02 files

NetBSD/pkgsrc-wip b8b4628 — nim Makefile PLIST

lang/nim: add missing binaries back in
DeltaFile
+4-1nim/PLIST
+2-1nim/Makefile
+6-22 files

HardenedBSD/ports f566eec — devel/gprbuild Makefile, devel/plan9port Makefile

HBSD: Resolve merge conflicts

Signed-off-by:  Shawn Webb <shawn.webb at hardenedbsd.org>
DeltaFile
+1-5devel/gprbuild/Makefile
+0-4games/chocolate-doom/Makefile
+1-3net-im/nheko/Makefile
+1-3misc/mc/Makefile
+1-3devel/ptlib/Makefile
+1-3devel/plan9port/Makefile
+5-218 files not shown
+8-4914 files

LLVM/project 63d50c2 — mlir/lib/CAPI/ExecutionEngine CMakeLists.txt, mlir/lib/ExecutionEngine CMakeLists.txt

[mlir][ExecutionEngine] Move the OpenMP translation dependency to the C API

`MLIRExecutionEngine` linked `MLIROpenMPToLLVMIRTranslation` although
the execution engine never uses OpenMP. Every C++ JIT user therefore
pulled in the OpenMP dialect.
The only user of the translation is the C API, which registers it
since db7cc0348c9a.

Link it from `MLIRCAPIExecutionEngine` instead.

Co-authored-by: Claude <noreply at anthropic.com>
DeltaFile
+0-1mlir/lib/ExecutionEngine/CMakeLists.txt
+1-0mlir/lib/CAPI/ExecutionEngine/CMakeLists.txt
+1-12 files

HardenedBSD/ports c52f2eb — devel/gitlab-runner distinfo, graphics/rustgis Makefile Makefile.crates

Merge remote-tracking branch 'rad/freebsd/main' into hardenedbsd/main

Conflicts:
        devel/gprbuild/Makefile (unresolved)
        devel/plan9port/Makefile (unresolved)
        devel/ptlib/Makefile (unresolved)
        games/chocolate-doom/Makefile (unresolved)
        misc/mc/Makefile (unresolved)
        net-im/nheko/Makefile (unresolved)
        net/igmpproxy/Makefile (unresolved)
        net/proxychains-ng/Makefile (unresolved)
        net/zerotier/Makefile (unresolved)
        security/afl++/Makefile (unresolved)
        security/keepassxc/Makefile (unresolved)
        security/pdfcrack/Makefile (unresolved)
        sysutils/fluent-bit/Makefile (unresolved)
        x11/cde-devel/Makefile (unresolved)
DeltaFile
+1,557-0graphics/rustgis/distinfo
+831-0www/tor-browser/files/patch-ppc64-103-gfx-be-rendering
+777-0graphics/rustgis/Makefile.crates
+53-0security/vuxml/vuln/2026.xml
+34-0graphics/rustgis/Makefile
+9-9devel/gitlab-runner/distinfo
+3,261-9639 files not shown
+5,253-672645 files

FreeBSD/src e70868a — sys/dev/mmc mmc.c, sys/dev/sdhci sdhci.c

mmc: Allow HS400ES with HS400 at a single I/O voltage

mmc_host_timing() allows HS400ES only if the host supports HS400 at
both 1.2 V and 1.8 V.  A host with only 1.8 V I/O, such as the Zhihe
A210, gets plain HS400 instead, which needs tuning in HS200 first.

Accept HS400 at either voltage, as the plain HS400 check does, and use
the same rule in the sdhci capability printout.

Signed-off-by:  Han Gao <gaohan at iscas.ac.cn>
Reviewed by:    imp
MFC after:      1 week
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2523
DeltaFile
+2-4sys/dev/sdhci/sdhci.c
+3-2sys/dev/mmc/mmc.c
+5-62 files

LLVM/project 8cd56b0 — clang/test/CIR/CodeGen unary.cpp, clang/test/CIR/CodeGenBuiltins builtin-object-size.c

[CIR] Return the dominating store to the return slot directly

At -O0, classic codegen returns the value stored to the return slot
directly when that store dominates the return, and then drops the slot
(findDominatingStoreToReturnValue in CGCall.cpp). CIR always lowered the
slot to alloca, store, load and ret, so most scalar-returning functions
differed from classic codegen.

Add a cir-forward-return-store function pass. In a function with a single
cir.return of a load from the return slot, it returns the stored value
when the only store to the slot dominates the load (checked with
DominanceInfo), or when the store immediately precedes the load. It runs
before LLVM lowering, after FlattenCFG and ABI lowering, so -emit-cir
output does not change. Volatile, atomic, record, array and complex slots
are left alone.

The tests change only in their LLVM checks. In files where the LLVM and
OGCG checks of a function are now identical, they share the LLVM prefix.

Assisted-by: Claude Code (claude-opus-5-5).
DeltaFile
+101-213clang/test/CIR/CodeGenBuiltins/X86/avx512bw-builtins.c
+37-253clang/test/CIR/CodeGenBuiltins/X86/avx512f-builtins.c
+44-187clang/test/CIR/CodeGen/unary.cpp
+176-0clang/test/CIR/Transforms/forward-return-store.cir
+6-163clang/test/CIR/CodeGenBuiltins/builtin-object-size.c
+6-153clang/test/CIR/CodeGenBuiltins/X86/cmp-builtins.c
+370-96995 files not shown
+841-2,292101 files

FreeBSD/src c0ca537 — sys/riscv/include cpu.h, sys/riscv/riscv identcpu.c

riscv: Add the T-Head C908 and C920v2 marchid values

Older T-Head cores report a zero marchid, but the C908 and C920v2 have
their own: 0x8000000009140d00 and 0x80000000090c0d00, as read on the
Zhihe A210, whose firmware also uses them to tell its two clusters
apart.  Add them so that these cores are named instead of "Unknown".

Signed-off-by:  Han Gao <gaohan at iscas.ac.cn>
Reviewed by:    mhorne
MFC after:      1 week
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2584
DeltaFile
+7-1sys/riscv/riscv/identcpu.c
+4-0sys/riscv/include/cpu.h
+11-12 files

FreeBSD/src a644aba — sys/riscv/riscv locore.S

riscv: Fence after enabling the MMU in locore

Writing satp doesn't flush cached translations. If the kernel is entered
with translation already on, the hart may keep using the firmware's
mappings after locore switches page tables if they share an ASID.

Add an sfence.vma after each satp write in locore.

Signed-off-by:  Han Gao <gaohan at iscas.ac.cn>
Reviewed by:    mhorne
MFC after:      1 week
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2522
DeltaFile
+3-0sys/riscv/riscv/locore.S
+3-01 files

FreeBSD/src 608eb81 — sys/riscv/riscv locore.S identcpu.c

riscv: Apply the T-HEAD errata only to early cores

The XTheadMae page attributes and the vendor cache operations are needed
by the early T-HEAD cores (C906, C910, C920), which report zero marchid
and mimpid. Later cores such as the C908 and C920v2 report non-zero
values and implement the standard Svpbmt and Zicbom extensions instead.
Setting the T-HEAD memory attribute bits there makes the early page
tables use reserved PBMT encodings.

Check marchid and mimpid before applying the quirks, both in
handle_thead_quirks() and in the early PTE setup in locore.

Signed-off-by:  Han Gao <gaohan at iscas.ac.cn>
Reviewed by:    mhorne
MFC after:      1 week
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2522
DeltaFile
+7-6sys/riscv/riscv/identcpu.c
+5-0sys/riscv/riscv/locore.S
+12-62 files

LLVM/project 68df0fd — llvm/utils/gn/secondary/libcxx/include BUILD.gn

[gn] port b81d386eb2f0 (#246437)
DeltaFile
+1-0llvm/utils/gn/secondary/libcxx/include/BUILD.gn
+1-01 files

LLVM/project f78d7a7 — llvm/utils/gn/secondary/libcxx/include BUILD.gn

[gn] port f4561f13c0de (#246436)
DeltaFile
+0-2llvm/utils/gn/secondary/libcxx/include/BUILD.gn
+0-21 files

HardenedBSD/src 013bff2 — sys/powerpc/powerpc elf64_machdep.c

HBSD: Resolve merge conflict

Signed-off-by:  Shawn Webb <shawn.webb at hardenedbsd.org>
DeltaFile
+0-4sys/powerpc/powerpc/elf64_machdep.c
+0-41 files

LLVM/project ab751d1 — llvm/utils/gn/secondary/llvm/lib/UBAwareInterpreter BUILD.gn, llvm/utils/gn/secondary/llvm/tools/llubi BUILD.gn

[gn] port 6e144d9372f2 (UBAwareInterpreter) (#246435)
DeltaFile
+17-0llvm/utils/gn/secondary/llvm/lib/UBAwareInterpreter/BUILD.gn
+0-15llvm/utils/gn/secondary/llvm/tools/llubi/lib/BUILD.gn
+1-1llvm/utils/gn/secondary/llvm/tools/llubi/BUILD.gn
+18-163 files

HardenedBSD/src d6d678c — share/man/man7 arch.7, sys/powerpc/include vmparam.h

Merge remote-tracking branch 'rad/freebsd/15-stable/main' into hardened/15-stable/main

Conflicts:
        sys/powerpc/powerpc/elf64_machdep.c (unresolved)
DeltaFile
+204-27sys/powerpc/powerpc/elf64_machdep.c
+85-3sys/powerpc/powerpc/vm_machdep.c
+31-15usr.bin/elfctl/elfctl.c
+27-11usr.bin/proccontrol/proccontrol.c
+20-5share/man/man7/arch.7
+22-3sys/powerpc/include/vmparam.h
+389-649 files not shown
+446-7815 files

FreeBSD/ports 9357532 — x11-wm/mango pkg-plist Makefile

x11-wm/mango: Update to 0.19.2

ChangeLog:

1. https://github.com/mangowm/mango/releases/tag/0.19.0
2. https://github.com/mangowm/mango/releases/tag/0.19.1
3. https://github.com/mangowm/mango/releases/tag/0.19.2

Reported by:    "DreamMaoMao" <notifications at github.com>
DeltaFile
+3-3x11-wm/mango/distinfo
+1-1x11-wm/mango/Makefile
+1-0x11-wm/mango/pkg-plist
+5-43 files