FreeBSD/src 5ddfe1e — lib/libc/stdlib tsearch.3

tsearch.3: Clarify node vs. key and improve markup

Pull in clarifications from Apple's libc: describe the comparison
function's arguments as key pointers, refer to the nodes returned by
tfind() and tsearch() rather than to the "datum", explain how to get a
node's key, note that the action function is called only once for leaf
nodes, and note about how VISIT names don't map to the usual traversal
order nomenclature.

The paragraph about the first member of a node being a pointer to its
key was rewritten, as Apple's wording was not strictly accurate.

Apple's Libc also has a paragraph describing what each traversal order
does, but it is mostly redundant, so it is not included here.

While here, mark up NULL and the VISIT values with .Dv, move the VISIT
typedef into a literal block, and fix mandoc lint warnings.

MFC after:      3 days

    [4 lines not shown]
DeltaFile
+52-13lib/libc/stdlib/tsearch.3
+52-131 files

FreeBSD/src 09bd51a — lib/libc/stdlib tsearch.3

tsearch.3: Fix tdestroy(3) entries in NAME and SYNOPSIS

Add tdestroy to the NAME section, remove a stray opening parenthesis
from its node_free argument in the SYNOPSIS, and small grammar fix in
STANDARDS.

Fixes:          b0d4b059cf84 ("tdestroy(3) man page")
MFC after:      3 days
Sponsored by:   Klara, Inc.
DeltaFile
+5-4lib/libc/stdlib/tsearch.3
+5-41 files

LLVM/project 4a9b4d9 — llvm/lib/Transforms/Vectorize VPlanConstruction.cpp, llvm/test/Transforms/LoopVectorize reduction-inloop-min-max.ll

[VPlan] Erase dead compares of in-loop min/max reduction links. (#243826)

When converting a chain of min/max selects to in-loop reductions, each
select is replaced by a VPReductionRecipe appended to the end of the
block. The compare feeding the next select is skipped, but still uses
the replaced value, so with multiple links in the same block it ends up
using the reduction before its definition, triggering the VPlan
verifier.

The compare is dead once its select is replaced, so erase it together
with the select.
DeltaFile
+72-0llvm/test/Transforms/LoopVectorize/reduction-inloop-min-max.ll
+7-0llvm/lib/Transforms/Vectorize/VPlanConstruction.cpp
+79-02 files

FreeBSD/ports 756d77c — www/ot-recorder Makefile distinfo

www/ot-recorder: Update to 1.0.6

https://github.com/owntracks/recorder/releases/tag/1.0.6
DeltaFile
+3-3www/ot-recorder/distinfo
+1-1www/ot-recorder/Makefile
+4-42 files

Illumos/gate ffa650e — usr/src/test .gitignore

18757 new bhyve tests not in .gitignore
Reviewed by: Andy Fiddaman <illumos at fiddaman.net>
Approved by: Dan McDonald <danmcd at oxide.computer>
DeltaFile
+2-0usr/src/test/.gitignore
+2-01 files

LLVM/project a5ec621 — mlir/lib/Dialect/Vector/Transforms VectorUnroll.cpp, mlir/test/Dialect/Vector vector-transfer-unroll.mlir

[mlir][Vector] Bail out on rank mismatch in transfer_read unroll (#242293)

Mirror the existing transfer_write guard so UnrollTransferReadPattern
does not rewrite when the source vector rank differs from the target
shape, which previously reused rank-mismatched permutation_map attrs.

Fixes #239698
DeltaFile
+13-0mlir/test/Dialect/Vector/vector-transfer-unroll.mlir
+7-0mlir/lib/Dialect/Vector/Transforms/VectorUnroll.cpp
+20-02 files

DragonFlyBSD/src 7ee46dd — sbin/mount_fuse mount_fusefs.c

mount_fusefs(8): accept and ignore the "nempty" option

ntfs-3g mounts with "nonempty" by default and libfuse passes it to
mount_fusefs.  getmntopts() treats the leading "no" as negation and
looks up "nempty", which is not in the option table, so the mount fails
with "-o nempty: option not supported".  Add the ignore entry that
FreeBSD's mount_fusefs(8) has.

Bug: https://bugs.dragonflybsd.org/issues/3459
DeltaFile
+3-1sbin/mount_fuse/mount_fusefs.c
+3-11 files

LLVM/project 6fdd1ca — libc/src/__support/net/linux CMakeLists.txt netlink.h, libc/src/net/if/linux if_nameindex_impl.h

[libc] Move the netlink dump code out of if_nameindex (NFC) (#243771)

getifaddrs needs to talk to the kernel the same way as if_nameindex (it
needs to dump interfaces and addresses over a NETLINK_ROUTE socket), so
this patch moves the parts which aren't specific to if_nameindex into
src/__support/net/linux/netlink.h:
- NetlinkSocket, which owns the socket. Its dump function sends the
request and passes the reply messages to a callback, taking care of
NLMSG_DONE and NLMSG_ERROR along the way. If the kernel reports that the
dump was interrupted, it still reads it to the end, and returns
DumpResult::Interrupted so that the caller can retry (up to
MAX_DUMP_ATTEMPTS times, which moves here as well).
- get_nlmsg_header and for_each_rtattr for parsing the messages.
- parse_ifname, which getifaddrs will also use for IFA_LABEL.

The receive buffer handling changes a bit: the stack buffer is now local
to the dump function, and the socket only owns the large buffer, once we
need it. This keeps the socket object small, and makes it easy to keep
using the large buffer for any following dumps (getifaddrs will do two).

    [26 lines not shown]
DeltaFile
+338-0libc/src/__support/net/linux/netlink.h
+46-175libc/src/net/if/linux/if_nameindex_impl.h
+30-173libc/test/src/net/if/linux/if_nameindex_test.cpp
+199-0libc/test/src/__support/net/linux/netlink_test_support.h
+20-0libc/test/src/__support/net/linux/CMakeLists.txt
+20-0libc/src/__support/net/linux/CMakeLists.txt
+653-3484 files not shown
+666-36010 files

DragonFlyBSD/src 053116c — sys/vfs/fuse fuse_vnops.c

fuse: fix a lost wakeup in the I/O helper

fuse_io_thread() slept first and drained the queue only after waking.
After draining it released helper_spin and called tsleep()
unconditionally.  fuse_vop_strategy() queues a bio under helper_spin,
drops the lock and then calls wakeup(), so a wakeup that arrived
between that final spin_unlock() and the interlock taken inside
tsleep() was lost.  The helper then slept forever with the bio queued
and the caller hung in biowait().

Hold helper_spin while checking the queue and use ssleep(), which
takes the sleep-queue interlock and drops the spinlock in one step,
so the wakeup cannot be lost.

Bug: https://bugs.dragonflybsd.org/issues/3459
DeltaFile
+4-1sys/vfs/fuse/fuse_vnops.c
+4-11 files

DragonFlyBSD/src 222a25d — sys/vfs/fuse fuse_vnops.c

fuse: honor an explicit ftruncate() size

An earlier write extension sets fnp->sizeoverride, which made
fuse_set_attr() keep the old size and ignore an explicit
ftruncate().  Clear the override for FATTR_SIZE setattrs.

Bug: https://bugs.dragonflybsd.org/issues/3459
DeltaFile
+2-0sys/vfs/fuse/fuse_vnops.c
+2-01 files

DragonFlyBSD/src 5174c27 — sys/vfs/fuse fuse_vnops.c

fuse: zero-fill the tail of a short read

A short FUSE_READ reply copied only the returned bytes into the 4 KiB
BIO buffer, leaving the rest stale, so an mmap read of an unwritten
hole returned old data.  Clamp the copy to b_bcount and zero the
remainder.

Bug: https://bugs.dragonflybsd.org/issues/3459
DeltaFile
+10-2sys/vfs/fuse/fuse_vnops.c
+10-21 files

FreeBSD/ports 37fb85c — net/cloudquery Makefile distinfo

net/cloudquery: update to version 6.51.1

This is a security update, see the release notes at:

https://github.com/cloudquery/cloudquery/releases#release-cli-v6.51.0
https://github.com/cloudquery/cloudquery/releases#release-cli-v6.51.1

The change to a SPDX license code has been prepared, but could not be
completed due to a missing definition in the license DB.

This port is published under a Mozilla-2.0 license with exclusion of
secondary licenses (e.g. GPL) and includes MIT licensed Go modules
from other projects.
DeltaFile
+5-5net/cloudquery/distinfo
+3-2net/cloudquery/Makefile
+8-72 files

LLVM/project 88658a4 — utils/bazel/llvm-project-overlay/mlir BUILD.bazel

[Bazel] Fixes 965d543 (#243825)

This fixes 965d54395147af74db488f34076382d88daad921 (#242307).

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

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

OpenBSD/src Vr5ZVye — usr.sbin/rpki-client rrdp.h rrdp_snapshot.c

   rpki-client: rework publish_done()

   Always invalidate the ->pxml member of the caller since this function
   frees it unconditionally.

   with/ok claudio
VersionDeltaFile
1.4+8-3usr.sbin/rpki-client/rrdp_util.c
1.14+2-3usr.sbin/rpki-client/rrdp_snapshot.c
1.18+2-3usr.sbin/rpki-client/rrdp_delta.c
1.10+2-2usr.sbin/rpki-client/rrdp.h
+14-114 files

DragonFlyBSD/src 84e673f — sys/vfs/fuse fuse.h fuse_vnops.c

fuse: treat a zero file handle as a valid handle

ntfs-3g returns file handle 0 for regular files.  The driver used
fh == 0 as its "no handle" state, so it reopened the file on every
open and skipped FUSE_RELEASE and FUSE_FSYNC.  The userspace daemon
then still considered the file open and renamed unlinked files to
.fuse_hidden*.

Add an explicit fh_valid flag to struct fuse_node and use it instead
of the fh value.

Bug: https://bugs.dragonflybsd.org/issues/3459
DeltaFile
+6-4sys/vfs/fuse/fuse_vnops.c
+1-0sys/vfs/fuse/fuse.h
+7-42 files

LLVM/project b130624 — llvm/docs PCSectionsMetadata.md, llvm/include/llvm/IR Metadata.h

[Local] Preserve !pcsections when merging instructions (#243076)

combineMetadata dropped !pcsections as unknown metadata, so any merge of
two instructions, such as SimplifyCFG hoisting or sinking common
instructions, lost it.

When an IR transformation merges two instructions into one, the merged
instruction stands for both, so its PC belongs in every section either
requested, with each request's auxiliary data. Add
MDNode::getMergedPCSectionsMetadata, which returns the union of two
!pcsections nodes: the requests (a section name and its auxiliary
tuples) of A, followed by those of B not already in A. Use it in
combineMetadata, including when only J has the metadata, and document
the rule for IR transformations.

Keeping only one of the two nodes, as documented for machine IR, loses
information when the merged instruction stands for distinct requests,
e.g. when the stores of several states of a state machine sink into one
store and each store's auxiliary data identifies its state.

    [5 lines not shown]
DeltaFile
+157-0llvm/test/Transforms/SimplifyCFG/merge-pcsections-metadata.ll
+33-0llvm/lib/IR/Metadata.cpp
+26-0llvm/unittests/IR/MetadataTest.cpp
+13-3llvm/lib/Transforms/Utils/Local.cpp
+5-0llvm/docs/PCSectionsMetadata.md
+3-0llvm/include/llvm/IR/Metadata.h
+237-36 files

OpenBSD/ports wgfjJWu — cad/qelectrotech distinfo Makefile, cad/qelectrotech/patches patch-qelectrotech_pro

   Update qelectrotech to 0.200.1pre0

   Tweak and OK landry@
VersionDeltaFile
1.5+1,746-730cad/qelectrotech/pkg/PLIST
1.12+27-21cad/qelectrotech/Makefile
1.4+6-2cad/qelectrotech/distinfo
1.4+0-0cad/qelectrotech/patches/patch-qelectrotech_pro
+1,779-7534 files

LLVM/project 88057ea — libc/src/__support/regex CMakeLists.txt regex_expr_pool.cpp, libc/test/src/__support/regex matcher_test.cpp

[libc][NFC] Clean up regex tables, headers, and CMake deps (#243759)

Integer-only baremetal targets cannot rely on floating-point helpers
just to size a hash table, and PIE builds should keep constant lookup
tables in shared read-only memory rather than dirtying copy-on-write
.data.rel.ro pages with dynamic relocations at startup. In addition,
subarchive builds linking regcomp or regexec without regfree miss
operator delete because collect_object_file_deps skips header libraries,
and POSIX requires <regex.h> to export size_t directly.

Switch ExprPool::max_hashtable_nodes() to integer 7/10 arithmetic and
store inline class names in pure .rodata tables behind a [[nodiscard]]
add_posix_class helper, avoiding both 32-byte copies and raw nullable
pointers while shrinking regex_parser.cpp.o by 725 bytes at -O2 and 775
bytes at -Os with zero relocations. Export size_t in regex.yaml, add
direct libc.src.__support.CPP.new dependencies, clear preg before delete
so teardown never exposes a dangling pointer, and tighten internal
assert and static_assert guards.


    [4 lines not shown]
DeltaFile
+36-22libc/src/__support/regex/regex_charclass.h
+10-8libc/src/__support/regex/regex_expr_pool.h
+8-9libc/src/__support/regex/regex_parser.cpp
+9-5libc/src/__support/regex/regex_expr_pool.cpp
+13-0libc/test/src/__support/regex/matcher_test.cpp
+6-3libc/src/__support/regex/CMakeLists.txt
+82-476 files not shown
+93-4912 files

LLVM/project f20eeaf — llvm/lib/Analysis ScalarEvolution.cpp, llvm/test/Analysis/ScalarEvolution max-backedge-taken-count-guard-info-rewrite-expressions.ll

[SCEV] Apply loop guard rewrites to mul expressions. (#243622)

Also rewrite SCEVMulExpr in SCEVLoopGuardRewriter.

This mostly improves constant BTCs, leading to additional unrolling in a
number of cases end-to-end, as well as additional simplifications, like
removing minimum iteration checks created by LoopVectorize:
https://github.com/dtcxzyw/llvm-opt-benchmark-nightly/pull/2067

In a few cases (linux/scatterlist, ibwebp/pnmdec, abc/cadical_kitten)
there are minor regressions of SCEV expansions.

After recent SCEV improvements, compile-time geomean increases are in
the noise. ClamAV compile-time increases by 0.03% - 0.04%Per workload:

https://llvm-compile-time-tracker.com/compare.php?from=4d669bea8878d02f94e427f1e41014f6480e4f23&to=1b9138a3b36ce7c369f70e12d8cafce76a0ba614&stat=instructions:u

PR: https://github.com/llvm/llvm-project/pull/243622
DeltaFile
+103-0llvm/test/Analysis/ScalarEvolution/max-backedge-taken-count-guard-info-rewrite-expressions.ll
+2-2llvm/lib/Analysis/ScalarEvolution.cpp
+105-22 files

LLVM/project c5def9b — llvm/test/CodeGen/ARM fpclamptosat.ll fpclamptosat_vec.ll, llvm/test/CodeGen/RISCV fpclamptosat.ll

[SelectionDAG] Convert soft-promoted f16 to wide integers without a libcall (#235259)

#230779 converts `f16` to the half-width integer type and extends it
when the result of `fp_to_[su]int` must be expanded, but only when `f16`
is legal. When `f16` is soft-promoted (e.g. RISC-V with F but without
Zfh, ARM with VFP but without fullfp16), the conversion still calls
`__fixsfti`, `__fixsfdi`, `__aeabi_f2lz` or their unsigned variants.

Take the same path when `f16` is soft-promoted and `f32` is legal; the
narrower conversion extends the operand to `f32`. The conversion keeps
`f16` as its source type, so that the second expansion of `i128` on
32-bit targets also takes this path. Targets without `f32` keep the
libcall.

Assisted-by: Claude Opus 5.5
DeltaFile
+654-660llvm/test/CodeGen/ARM/fpclamptosat_vec.ll
+224-305llvm/test/CodeGen/RISCV/rvv/fpclamptosat_vec.ll
+111-245llvm/test/CodeGen/WebAssembly/fpclamptosat_vec.ll
+85-90llvm/test/CodeGen/ARM/fpclamptosat.ll
+84-87llvm/test/CodeGen/RISCV/fpclamptosat.ll
+33-133llvm/test/CodeGen/WebAssembly/fpclamptosat.ll
+1,191-1,5208 files not shown
+1,323-1,69314 files

LLVM/project 7662450 — llvm/lib/Target/AArch64 AArch64TargetTransformInfo.cpp, llvm/test/Transforms/LoopVectorize/AArch64 interleave-for-latency.ll interleaved_latency_cost.ll

[AArch64] Implement latency costs for interleaved loads (#236428)

This is done by moving the existing code for getting the latency of
plain loads out into a separate function and calling that.
DeltaFile
+726-0llvm/test/Transforms/LoopVectorize/AArch64/interleaved_latency_cost.ll
+121-6llvm/test/Transforms/LoopVectorize/AArch64/interleave-for-latency.ll
+71-25llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
+918-313 files

LLVM/project a444609 — llvm/lib/Transforms/Utils LoopUtils.cpp, llvm/test/Transforms/LoopVectorize runtime-checks-difference-rmw-hoist.ll runtime-checks-hoist.ll

[LoopUtils] Check the first outer iteration for co-moving pointer groups

When runtime checks are hoisted out of the outer loop, the range of each
pointer group is widened to cover all iterations of the outer loop. If both
groups of a check advance by the same step in the outer loop, e.g. two rows
of the same image:

```cpp
for (y = 0; y < H; y += 2)
  for (x = 0; x < n; x++) {
    img[y*S + 3*x]     = ...;
    img[(y+1)*S + 3*x] = ...;
  }
```

the widened ranges overlap as soon as the outer loop runs twice, so the
check always fails and the vector loop never runs.

If all bounds of both groups are affine AddRecs of the outer loop with the

    [7 lines not shown]
DeltaFile
+63-15llvm/test/Transforms/LoopVectorize/AArch64/low_trip_memcheck_cost.ll
+22-29llvm/test/Transforms/LoopVectorize/runtime-checks-hoist-same-outer-step.ll
+18-14llvm/test/Transforms/LoopVectorize/runtime-checks-hoist.ll
+22-5llvm/lib/Transforms/Utils/LoopUtils.cpp
+2-3llvm/test/Transforms/PhaseOrdering/AArch64/matrix-extract-insert.ll
+2-3llvm/test/Transforms/LoopVectorize/runtime-checks-difference-rmw-hoist.ll
+129-696 files

LLVM/project fe539dc — llvm/test/Transforms/LoopVectorize runtime-checks-hoist-same-outer-step.ll

[LV] Add pre-commit tests (NFC)
DeltaFile
+633-0llvm/test/Transforms/LoopVectorize/runtime-checks-hoist-same-outer-step.ll
+633-01 files

OpenBSD/ports VnceESM — shells/dash Makefile distinfo

   Update to dash-0.5.13.6
VersionDeltaFile
1.19+2-2shells/dash/distinfo
1.25+1-1shells/dash/Makefile
+3-32 files

FreeBSD/src 8b74781 — usr.bin/man man.sh

man.sh: fix variable typo in debug output

MFC after:      3 days

(cherry picked from commit f6bd24546c27fc4592290c626f837c92181ae23c)
DeltaFile
+1-1usr.bin/man/man.sh
+1-11 files

LLVM/project 7376d08 — flang/lib/Optimizer/Transforms MIFOpConversion.cpp, flang/test/Fir/MIF event_query03.mlir event_query01.mlir

[flang][MIF] Add lowering for EVENT_QUERY (#237317)

This PR adds lowering support for the `EVENT_QUERY` intrinsic. It is
lowered to a new `mif.event_query` operation, which is then converted to
the corresponding PRIF call.

---------

Co-authored-by: Dan Bonachea <dobonachea at lbl.gov>
DeltaFile
+643-0flang/test/Fir/MIF/event_query02.mlir
+266-0flang/test/Lower/MIF/event_query02.f90
+241-0flang/test/Fir/MIF/event_query01.mlir
+127-0flang/test/Lower/MIF/event_query01.f90
+50-11flang/lib/Optimizer/Transforms/MIFOpConversion.cpp
+50-0flang/test/Fir/MIF/event_query03.mlir
+1,377-116 files not shown
+1,444-1312 files

LLVM/project aeac368 — llvm/lib/Transforms/Utils LoopUtils.cpp

[LoopUtils] Factor out the same-step check of runtime check bounds (NFC)

The follow-up change uses four SCEV expressions for this type of change
so it also generalizes it to take an array.
DeltaFile
+37-28llvm/lib/Transforms/Utils/LoopUtils.cpp
+37-281 files

LLVM/project f04e8be — flang/lib/Lower MultiImageFortran.cpp, flang/lib/Optimizer/Transforms MIFOpConversion.cpp

[flang][MIF] Fix STAT= specifier handling in coarray allocation #231248 (#237327)

`ALLOCATE `of a coarray with `STAT=` did not handle the result of
`prif_allocate_coarray `correctly:

The result of the allocation was never checked if STAT is specified, so
the descriptor update the base_addr, the default initialization and
`prif_sync_all `ran even when the allocation failed.

Fixes #231248.

---------

Co-authored-by: Dan Bonachea <dobonachea at lbl.gov>
Co-authored-by: Eugene Epshteyn <eepshteyn at nvidia.com>
DeltaFile
+275-0flang/test/Fir/MIF/coarray_alloc_with_stat_check.mlir
+65-0flang/test/Lower/MIF/coarray_alloc_stat.f90
+44-4flang/lib/Optimizer/Transforms/MIFOpConversion.cpp
+2-0flang/lib/Lower/MultiImageFortran.cpp
+386-44 files

LLVM/project 5dbe0c8 — llvm/lib/Target/LoongArch LoongArchISelLowering.cpp, llvm/test/CodeGen/LoongArch bstrins_w.ll bstrins_d.ll

[LoongArch] Match BSTRINS when an OR operand is already a BSTRPICK

performANDCombine rewrites (and X, mask) into BSTRPICK, or into
(shl (BSTRPICK X, msb, lsb), lsb) for a shifted mask. The BSTRINS
patterns in performORCombine only match ISD::AND, so they miss an OR
whose AND operand was rewritten before the OR was combined. In the
default order this happens when the operand only becomes an AND after
the OR was combined, e.g. in an expanded funnel shift. With
-combiner-topological-sorting (#83422), which visits operands before
their users, it happens for any OR. The OR is then selected as separate
bstrpick, shift and or instructions.

Before matching, turn such operands back into the AND they came from,
and build the result from the original operands. The pattern conditions
are unchanged.

In the default order this shortens the funnel shift tests. In a sample
of real-world bitcode compiled for loongarch64, 7 functions get shorter
and none longer, e.g. a byte inserted into the top of an i64 and vXi1

    [3 lines not shown]
DeltaFile
+47-5llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
+3-7llvm/test/CodeGen/LoongArch/bstrins_d.ll
+2-3llvm/test/CodeGen/LoongArch/bstrins_w.ll
+52-153 files

LLVM/project ed83a5d — llvm/test/CodeGen/LoongArch bstrins_w.ll bstrins_d.ll

[LoongArch] Add BSTRINS tests with an OR built from a funnel shift (NFC)

Expanding the funnel shift creates the OR first. Its operand only
becomes an AND, which performANDCombine turns into BSTRPICK, after the
OR has been combined, so no BSTRINS pattern matches when the OR is
combined again.

Assisted-by: Claude Code (Claude Opus 5.5)
DeltaFile
+30-0llvm/test/CodeGen/LoongArch/bstrins_d.ll
+16-0llvm/test/CodeGen/LoongArch/bstrins_w.ll
+46-02 files