LLVM/project 2cc40a0 — compiler-rt/lib/ctx_profile CtxInstrProfiling.cpp

Merge branch 'fix-ctxprof-nested-root-lock' into fix-ctxprof-autodetector-sample-lock
DeltaFile
+10-6compiler-rt/lib/ctx_profile/CtxInstrProfiling.cpp
+10-61 files

LLVM/project 8f1ffe7 — compiler-rt/lib/ctx_profile CtxInstrProfiling.cpp

[ctxprof] Assert CurrentRootDepth does not overflow
DeltaFile
+6-2compiler-rt/lib/ctx_profile/CtxInstrProfiling.cpp
+6-21 files

LLVM/project 4d9f45f — compiler-rt/lib/ctx_profile CtxInstrProfiling.cpp

Merge branch 'users/mtrofin/fix-ctxprof-flat-trylock' into fix-ctxprof-nested-root-lock

# Conflicts:
#       compiler-rt/lib/ctx_profile/CtxInstrProfiling.cpp
DeltaFile
+4-4compiler-rt/lib/ctx_profile/CtxInstrProfiling.cpp
+4-41 files

LLVM/project 24c4903 — compiler-rt/lib/ctx_profile CtxInstrProfiling.cpp

Merge branch 'fix-ctxprof-under-context' into users/mtrofin/fix-ctxprof-flat-trylock
DeltaFile
+4-4compiler-rt/lib/ctx_profile/CtxInstrProfiling.cpp
+4-41 files

LLVM/project 86f2f23 — compiler-rt/lib/ctx_profile CtxInstrProfiling.cpp

[ctxprof] Assert UnderContextDepth does not overflow
DeltaFile
+4-4compiler-rt/lib/ctx_profile/CtxInstrProfiling.cpp
+4-41 files

LLVM/project b6e5906 — lld/MachO SyntheticSections.h SyntheticSections.cpp, lld/test/MachO/invalid string-table-too-large.s

[lld][MachO] Error out on string tables over 4 GiB

Symbol string table offsets (`n_strx`) and the table's size (`strsize`) are
32 bits wide, but `StringTableSection` tracks its size in a `size_t` and
silently truncates offsets past 4 GiB, producing a corrupt symbol table.

This PR reports an error once all strings have been added instead. The test
reaches 4 GiB cheaply by linking one object with a 1 MiB local symbol name
4096 times under `-no-deduplicate-symbol-strings`.

Assisted by Claude.
DeltaFile
+13-0lld/test/MachO/invalid/string-table-too-large.s
+5-0lld/MachO/SyntheticSections.cpp
+1-0lld/MachO/SyntheticSections.h
+19-03 files

FreeBSD/src 2f76d2e — sys/netinet6 ip6_output.c

netinet6: limit size of packet options set via setsockopt(2) to MCLBYTES

While soopt_getm() can indeed allocate a chain of mbufs, the control is
then passed to ip6_pcbopts(), that passes to ip6_setpktopts().  And the
latter refuses to work on a chain and returns EINVAL.  This all was true
since KAME import.  Thus, the limit set by aec9c8d5a5ee indeed protects
from a local DoS vector, but it doesn't make a practical sense.  Anything
between MCLBYTES and IPV6_PKTOPTIONS_MBUF_LIMIT would be refused with
EINVAL and freed.

Reviewed by:            pouria
Fixes:                  aec9c8d5a5ee52dd6d19892138ef78fc78ef2210
PR:                     100219
Differential Revision:  https://reviews.freebsd.org/D62252
DeltaFile
+2-12sys/netinet6/ip6_output.c
+2-121 files

LLVM/project 5fa79a4 — llvm/lib/Target/RISCV RISCVExpandPseudoAtomics.cpp, llvm/test/CodeGen/RISCV atomic-masked-merge-zero.ll atomic-cmpxchg-branch-on-result.ll

[RISCV] Remove unnecessary 'and' from masked cmpxchg loop. (#246502)

As noted during review of #240749. loophead has already created a
register that holds 'dest & mask' and newval was already masked.

Assisted-by: Claude
DeltaFile
+256-384llvm/test/CodeGen/RISCV/atomic-cmpxchg.ll
+256-384llvm/test/CodeGen/RISCV/GlobalISel/atomic-cmpxchg.ll
+32-48llvm/test/CodeGen/RISCV/atomic-signext.ll
+16-24llvm/test/CodeGen/RISCV/atomic-cmpxchg-branch-on-result.ll
+10-11llvm/lib/Target/RISCV/RISCVExpandPseudoAtomics.cpp
+6-6llvm/test/CodeGen/RISCV/atomic-masked-merge-zero.ll
+576-8571 files not shown
+578-8607 files

FreeBSD/ports cebf168 — math/octave-forge-datatypes Makefile distinfo

math/octave-forge-datatypes: Update to 1.6.3.
DeltaFile
+3-3math/octave-forge-datatypes/distinfo
+1-1math/octave-forge-datatypes/Makefile
+4-42 files

FreeBSD/ports 88a7689 — math/octave-forge-statistics Makefile distinfo

math/octave-forge-statistics: Update to 2.1.4.
DeltaFile
+3-3math/octave-forge-statistics/distinfo
+1-1math/octave-forge-statistics/Makefile
+4-42 files

FreeBSD/ports ef4aef2 — Mk/Uses zig.mk

Uses/zig: simplify build/install targets

The workaround of building the port while staging is now unnecessary.

Reviewed by:    arrowd, kenrap
Tested by:      kenrap
Differential Revision:  https://reviews.freebsd.org/D60710
DeltaFile
+8-9Mk/Uses/zig.mk
+8-91 files

FreeBSD/src 6d3244e — sys/netinet6 nd6_nbr.c

nd6: Skip periodic DAD while SLAAC can regenerate a stable address

A failed periodic DAD retry probes the same address. Counting it as
another RFC 7217 failure lets a persistent duplicate exhaust the
interface's regeneration budget and prevent SLAAC on other prefixes.

Count only the initial DAD failure for each address. When SLAAC can
generate another stable address, disable periodic DAD for the failed
candidate. The final candidate remains eligible for periodic recovery
if the conflict clears.

Reported by:    llm-postcr
Fixes:          4d5833adfd19 ("nd6: Periodically retry DAD for duplicated IPv6 addresses")
DeltaFile
+6-1sys/netinet6/nd6_nbr.c
+6-11 files

LLVM/project 3b4e767 — clang/test/Driver hip-include-path-preprocess.hip hip-include-path.hip

[HIP] Address review nits: drop unused REQUIRES, add MSVC ordering test

- Drop amdgpu-registered-target from hip-include-path-preprocess.hip
  since both RUN lines are host-only and pass with an X86-only build.
- Add an MSVC target test to hip-include-path.hip verifying that ROCm
  toolkit headers appear before system headers (resource dir / INCLUDE
  env var paths) on Windows, confirming the late-hook ordering is
  intentional on MSVC.

Co-Authored-By: Claude Opus 4.6 <noreply at anthropic.com>
DeltaFile
+11-0clang/test/Driver/hip-include-path.hip
+1-1clang/test/Driver/hip-include-path-preprocess.hip
+12-12 files

LLVM/project 7985e80 — llvm/lib/CodeGen/SelectionDAG DAGCombiner.cpp, llvm/test/CodeGen/X86 select.ll lea-opt2.ll

[DAG][X86] Do not narrow trunc(select) to an undesirable type

DAGCombiner rewrites trunc(select c, a, b) as select c, (trunc a),
(trunc b) when truncating is free. X86 has no 8-bit CMOV, so LowerSELECT
widens an i8 select to i32 through ANY_EXTENDs that become MOVZX
(isolate_msb_i128 in bit-manip-i128.ll):

    orb     $64, %cl              orl     $64, %ecx
    testq   %rsi, %rsi            testq   %rsi, %rsi
    movzbl  %cl, %ecx             cmovneq %rax, %rcx
    cmovnel %eax, %ecx

Gate the fold on isTypeDesirableForOp(ISD::SELECT, VT) and have X86
report i8 as undesirable when CMOV is available. Without CMOV the select
becomes a branch, so nothing changes there. The hook's default rejects
every illegal type, so it is only asked about legal ones and narrowing
to an illegal type is unchanged. A select of two constants is still
narrowed: it becomes i8 setcc arithmetic that needs no zero extension.


    [6 lines not shown]
DeltaFile
+68-55llvm/test/CodeGen/X86/bit-manip-i128.ll
+28-24llvm/test/CodeGen/X86/trunc-select-narrowing.ll
+19-10llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+10-11llvm/test/CodeGen/X86/freeze.ll
+8-8llvm/test/CodeGen/X86/lea-opt2.ll
+3-3llvm/test/CodeGen/X86/select.ll
+136-1112 files not shown
+142-1128 files

FreeBSD/ports d7d4cd9 — net-im/teams Makefile

net-im/teams: Bump port revision after electron45 update (6a1891bd370e)
DeltaFile
+1-1net-im/teams/Makefile
+1-11 files

FreeBSD/ports 6a1891b — devel/electron45 Makefile distinfo, devel/electron45/files patch-electron_shell_browser_ui_views_menu__bar.cc patch-electron_shell_browser_api_electron__api__web__contents.cc

devel/electron45: Update to 45.6.0

Changelog: https://github.com/electron/electron/releases/tag/v45.6.0

Reported by:    GitHub (watch releases)
DeltaFile
+0-45devel/electron45/files/patch-third__party_electron__node_src_compile__cache.cc
+20-20devel/electron45/files/patch-electron_spec_api-browser-window.spec.ts
+13-13devel/electron45/distinfo
+4-4devel/electron45/files/patch-electron_shell_browser_ui_views_menu__bar.cc
+4-4devel/electron45/files/patch-electron_shell_browser_api_electron__api__web__contents.cc
+3-4devel/electron45/Makefile
+44-905 files not shown
+54-10011 files

LLVM/project 08e7f09 — llvm/test/CodeGen/X86 vector-interleaved-store-i64-stride-7.ll vector-deinterleave8-i64.ll

[X86] Enable SlotIndexes compaction by default

Compacting SlotIndexes before greedy allocation drops the entries of
erased instructions, so live range sizes and instruction distances
reflect the code being allocated rather than how much was erased
before it. AMDGPU has done this since #235806; do the same for X86.

Codegen changes only through allocation: no new crashes, verifier
errors or allocation failures in the lit suites, including
EXPENSIVE_CHECKS, and a stage-2 build of LLVM, clang and lld with
-verify-machineinstrs passes its own tests. On llvm-test-suite at -O3,
spills drop 0.3% and .text 0.06%, with compile time unchanged.

Most test updates are regenerated checks. misched-matmul now inserts
20 spills instead of 24. live-debug-vars-stale-slotindexes.mir gets
one more use of %27 so that accumulate_fit still reaches the stale
index path it was written for. reloc-opt.ll gets an NF add that keeps
its source live, because compaction compresses the existing one to the
legacy form. inline-spiller-hoist-folded-copy.ll gets four empty asm

    [2 lines not shown]
DeltaFile
+20,796-20,889llvm/test/CodeGen/X86/vector-interleave7-i16.ll
+17,854-17,989llvm/test/CodeGen/X86/vector-interleave7-i32.ll
+17,166-17,229llvm/test/CodeGen/X86/vector-interleave6-i16.ll
+15,403-15,465llvm/test/CodeGen/X86/vector-interleaved-load-i64-stride-7.ll
+13,433-13,434llvm/test/CodeGen/X86/vector-deinterleave8-i64.ll
+13,329-13,243llvm/test/CodeGen/X86/vector-interleaved-store-i64-stride-7.ll
+97,981-98,249516 files not shown
+672,132-674,638522 files

LLVM/project 43f1197 — compiler-rt/lib/ctx_profile CtxInstrProfiling.cpp, compiler-rt/lib/ctx_profile/tests CtxInstrProfilingTest.cpp

[ctxprof] Write flat profiles for non-rootable functions

Functions that cannot become roots, such as those containing musttail calls, have their CtxRoot field initialized to the non-rootable sentinel. When serializing flat profiles, check whether a function is an active root rather than requiring CtxRoot to be null and rootable, so flat profiles collected for non-rootable functions are not dropped.
DeltaFile
+48-0compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp
+4-4compiler-rt/lib/ctx_profile/CtxInstrProfiling.cpp
+52-42 files

LLVM/project 9484538 — llvm/lib/Target/AMDGPU SIISelLowering.cpp, llvm/test/CodeGen/AMDGPU/GlobalISel postlegalizer-combiner-fcanonicalize.mir

[AMDGPU][GlobalISel] Recognize canonical update.dpp results (#247744)

Teach GlobalISel to recognize canonical `llvm.amdgcn.update.dpp` results
so the post-legalizer combiner can remove redundant `G_FCANONICALIZE`
instructions.

The source must be canonical. If either mask is partial or zero fill is
disabled, the old value must also be canonical because some lanes can
retain it.
DeltaFile
+59-0llvm/test/CodeGen/AMDGPU/GlobalISel/postlegalizer-combiner-fcanonicalize.mir
+19-0llvm/lib/Target/AMDGPU/SIISelLowering.cpp
+78-02 files

Linux/linux 0810bd2 — arch/um Makefile, arch/um/drivers vector_transports.c vector_kern.h

Merge tag 'uml-fixes-7.4-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/uml/linux

Pull uml fixes from Johannes Berg:

 - vector network driver (NAPI, hardening)

 - rust module loading

 - FD initialization in time-travel messages

* tag 'uml-fixes-7.4-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/uml/linux:
  um: time-travel: don't use uninitialized fds from START ACK
  um: vector: Don't clean up NAPI that was never set up
  um: vector: Possible underflow and races fixes
  rust: arch/um: Fix loading Rust modules
DeltaFile
+36-20arch/um/drivers/vector_kern.c
+12-4arch/um/kernel/time.c
+0-3arch/um/drivers/vector_transports.c
+1-2arch/um/drivers/vector_kern.h
+0-2arch/um/Makefile
+49-315 files

LLVM/project 300a2bc — clang/test/CodeGenCXX inheriting-constructor.cpp inalloca-vector.cpp

[clang codegen] Add align attributes to inalloca arguments. (#244740)

There's no reason to let the backend try to infer the alignment here.
DeltaFile
+10-10clang/test/CodeGenCXX/microsoft-abi-sret-and-byval.cpp
+8-8clang/test/CodeGenCXX/microsoft-abi-byval-sret.cpp
+6-6clang/test/CodeGenCXX/microsoft-abi-byval-thunks.cpp
+4-4clang/test/CodeGenCXX/inheriting-constructor.cpp
+4-4clang/test/CodeGenCXX/inalloca-vector.cpp
+4-4clang/test/CodeGenCXX/inalloca-overaligned.cpp
+36-3615 files not shown
+61-6021 files

LLVM/project c8b8641 — llvm/lib/Target/AMDGPU AMDGPUTargetTransformInfo.cpp SIISelLowering.cpp, llvm/test/Analysis/CostModel/AMDGPU packed-fabs.ll

[AMDGPU] Scalarize packed FP math with fabs sources and update cost model (#236584)

Packed math instructions (v_pk_add, v_pk_mul, v_pk_fma, v_pk_min_num and
v_pk_max_num) have no abs source modifier, so an fabs feeding one must
be materialized as a real and per element. Scalarizing the packed operation
instead lets the abs fold back into a source modifier, trading the packed
instruction plus N ands for N scalar instructions.

Update the TTI cost model to match: fabs stays free, and a packed
f32/f64 fadd/fsub/fmul, fma/fmuladd or f64 minimumnum/maximumnum with a
single-use fabs source (looking through fneg) is priced as one scalar instruction
per element instead of a packed instruction. When queried by the SLP vectorizer, the
operands of the scalar instruction representing the lanes are checked.

Fixes: LCOMPILER-2919
---------

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+470-0llvm/test/CodeGen/AMDGPU/fneg-fabs-v2f32.ll
+314-0llvm/test/Transforms/SLPVectorizer/AMDGPU/packed-fabs-cost.ll
+194-0llvm/test/CodeGen/AMDGPU/packed-fp64.ll
+163-0llvm/test/Analysis/CostModel/AMDGPU/packed-fabs.ll
+66-0llvm/lib/Target/AMDGPU/SIISelLowering.cpp
+32-5llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
+1,239-51 files not shown
+1,240-57 files

FreeBSD/src 7a7733f — sys/powerpc/aim aim_machdep.c, sys/powerpc/powerpc vm_machdep.c exec_machdep.c

powerpc: fix single stepping across signal delivery and fork

PT_STEP sets MSR[SE] and trap() clears it again when the trace trap
comes in, but the rest of the kernel treated it as a bit a thread can't
change, which broke stepping in three places.

sendsig() kept it set for the signal handler, so the debugger got a
SIGTRAP on the handler's first instruction. This is what
ptrace__PT_STEP_with_signal in ptrace_test trips over. Clear it for the
handler, like amd64 does with PSL_T.

The context saved for the handler still has it, but set_mcontext()
refused a context whose MSR[SE] no longer matched the frame, so
sigreturn(2) failed and the process exited as soon as the handler
returned. Let a context carry MSR[SE].

cpu_fork() copied it into the child, which nobody traces, so a fork(2)
done while stepping killed the child with SIGTRAP. Clear it there.


    [3 lines not shown]
DeltaFile
+9-0sys/powerpc/powerpc/vm_machdep.c
+9-0sys/powerpc/powerpc/exec_machdep.c
+2-1sys/powerpc/aim/aim_machdep.c
+20-13 files

OpenBSD/ports QijVRNL — lang/node Makefile distinfo, lang/node/patches patch-tools_test_py patch-configure

   lang/node: Update to 24.23.0
VersionDeltaFile
1.19+4-4lang/node/patches/patch-include_node_common_gypi
1.45+4-4lang/node/patches/patch-common_gypi
1.107+4-4lang/node/distinfo
1.180+1-2lang/node/Makefile
1.8+2-1lang/node/patches/patch-configure
1.20+1-1lang/node/patches/patch-tools_test_py
+16-164 files not shown
+20-1910 files

LLVM/project d5ff1be — lldb/source/Core FormatEntity.cpp, lldb/test/API/functionalities/gdb_remote_client TestThreadNameEscaping.py

[lldb] Escape non-printable characters in thread and queue names (#248151)

The inferior sets thread and queue names and can put any bytes in them.
The thread.name and thread.queue format entities printed them verbatim,
so a name could send control sequences to the terminal.

Escape both with StringPrinter, as string summaries already do.
Printable UTF-8 is unchanged, while double quotes and backslashes are
escaped too.

rdar://187191695
Assisted-by: Claude
DeltaFile
+37-0lldb/test/API/functionalities/gdb_remote_client/TestThreadNameEscaping.py
+16-2lldb/source/Core/FormatEntity.cpp
+53-22 files

LLVM/project 7bb0bdf — clang/test/CodeGenHLSL/semantics SV_InnerCoverage.ps.hlsl, clang/test/SemaHLSL/Semantics innercoverage.stages.hlsl innercoverage.ps.hlsl

[HLSL] Add support for SV_InnerCoverage (#237389)

Resolves: https://github.com/llvm/llvm-project/issues/136983

Assisted by: Claude Opus 5.5
DeltaFile
+121-0clang/test/SemaHLSL/Semantics/innercoverage.ps.hlsl
+35-26llvm/unittests/Frontend/HLSLSemanticStagesTest.cpp
+41-0clang/test/CodeGenHLSL/semantics/SV_InnerCoverage.ps.hlsl
+36-0llvm/test/CodeGen/SPIRV/semantics/inner-coverage.ps.ll
+29-0llvm/test/CodeGen/DirectX/ShaderFlags/inner-coverage.ll
+27-0clang/test/SemaHLSL/Semantics/innercoverage.stages.hlsl
+289-2613 files not shown
+400-2819 files

LLVM/project 55996ab — mlir/unittests/Interfaces CMakeLists.txt SideEffectInterfacesTest.cpp

[mlir] Test analysis-aware speculation in the shared interface suite
DeltaFile
+53-0mlir/unittests/Interfaces/SideEffectInterfacesTest.cpp
+2-11mlir/unittests/Interfaces/CMakeLists.txt
+55-112 files

LLVM/project 24a4ee8 — llvm/include/llvm/Transforms/IPO Attributor.h, llvm/lib/Transforms/IPO Attributor.cpp

[Attributor] Fold lookupAAForImpl into lookupAAFor

Also use isAllowed in checkAndQueryIRAttr.

Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+6-14llvm/include/llvm/Transforms/IPO/Attributor.h
+1-1llvm/lib/Transforms/IPO/Attributor.cpp
+7-152 files

LLVM/project 31167e3 — mlir/include/mlir/Interfaces SideEffectInterfaces.h, mlir/include/mlir/Transforms LoopInvariantCodeMotionUtils.h

[mlir] Name the speculation analysis manager am
DeltaFile
+8-8mlir/lib/Transforms/Utils/LoopInvariantCodeMotionUtils.cpp
+6-5mlir/include/mlir/Interfaces/SideEffectInterfaces.h
+5-5mlir/lib/Interfaces/SideEffectInterfaces.cpp
+2-2mlir/unittests/Interfaces/SideEffectInterfacesTest.cpp
+2-2mlir/lib/Transforms/LoopInvariantCodeMotion.cpp
+2-2mlir/include/mlir/Transforms/LoopInvariantCodeMotionUtils.h
+25-241 files not shown
+26-257 files

OpenZFS/src 0317365 — tests/zfs-tests/tests/functional/mmp mmp.kshlib mmp_on_off.ksh

ZTS: mmp_on_off must not leave a suspended pool behind

mmp_on_off runs with zfs_multihost_interval=100 and the default ten
fail intervals, so MMP suspends the pool when no MMP write has
succeeded for one second.  In CI one MMP write took 1.25 s:

    WARNING: MMP writes to pool 'testpool' have not succeeded in
    over 1109 ms; suspending pool

A pool suspended by MMP can't be cleared on its own host (#19033), so
cleanup failed ("pool is imported on a different host") and left it
imported.  The tests after it failed on their zpool create, and
mmp_on_zdb's cleanup destroyed it: zpool destroy -f unmounts the root
dataset, and the unmount waits in zil_commit() for the suspended pool
forever, so the CI job ran into its 300 minute timeout.

mmp_clear_suspended() should have stopped that destroy, but it asks
zpool for the pool's health, and once a cleanup has removed the
hostid, zpool reports the hostid mismatch (ONLINE), not the

    [12 lines not shown]
DeltaFile
+11-0tests/zfs-tests/tests/functional/mmp/mmp_on_off.ksh
+5-1tests/zfs-tests/tests/functional/mmp/mmp.kshlib
+16-12 files