LLVM/project 4207032 — llvm/lib/CodeGen MLRegAllocEvictAdvisor.cpp, llvm/test/CodeGen/MLRegAlloc dev-mode-logging.ll

[MLGO] Do not cap evictions when logging default advisor decisions (#230502)

Otherwise trace collection hits the Regs[CandidatePos].second assertion
on large functions (ones with many evictions)
DeltaFile
+7-0llvm/test/CodeGen/MLRegAlloc/dev-mode-logging.ll
+4-2llvm/lib/CodeGen/MLRegAllocEvictAdvisor.cpp
+11-22 files

LLVM/project abcdf64 — llvm/docs LangRef.md

[LangRef] Clarify poison input elements give poison in llvm.mask.beforefirst

This matches #223935 and reflects the generic expansion.
DeltaFile
+2-0llvm/docs/LangRef.md
+2-01 files

FreeNAS/freenas 1d30f2a — src/middlewared/middlewared/utils origin.py

NAS-144374 / 27.0.0 / Restrict HA node authentication to the heartbeat listener (by yocalebo) (#19975)

A connection was treated as coming from the other HA controller whenever
its source address was a heartbeat address and its source port was below
1024. Both of those are chosen by the client, so an adjacent attacker or
a local container could present them and be granted a full admin
session. The connection now must also have arrived on this node's own
heartbeat listener on port 6000, and the source address must differ from
the local address. Only the real peer controller can meet those
conditions. Nginx never proxies to that listener, so ordinary API and UI
traffic cannot match.

Original PR: https://github.com/truenas/middleware/pull/19973

---------

Co-authored-by: caleb <yocalebo at gmail.com>
(cherry picked from commit 5d8aa52195a74762f1ef9e1ac3aed02a291d5f06)
DeltaFile
+9-2src/middlewared/middlewared/utils/origin.py
+9-21 files

LLVM/project 51941c4 — llvm/test/Verifier sat-intrinsics.ll scatter_gather.ll

[Verifier][NFC] Merge negative intrinsic signature tests into a single file (#230160)

See the comment
https://github.com/llvm/llvm-project/pull/229880#pullrequestreview-5447604943.

Aided by DeepSeek-V4.1-Flash.
DeltaFile
+740-0llvm/test/Verifier/invalid_intrinsic_signatures.ll
+0-172llvm/test/Verifier/intrinsic-bad-arg-type1.ll
+0-101llvm/test/Verifier/invalid-vp-intrinsics.ll
+0-79llvm/test/Verifier/intrinsic-arg-overloading-struct-ret.ll
+0-67llvm/test/Verifier/scatter_gather.ll
+0-44llvm/test/Verifier/sat-intrinsics.ll
+740-46328 files not shown
+741-91034 files

FreeNAS/freenas 5d8aa52 — src/middlewared/middlewared/utils origin.py, tests/unit test_origin.py

NAS-144374 / 27.0.0 / Restrict HA node authentication to the heartbeat listener (by yocalebo) (#19975)

A connection was treated as coming from the other HA controller whenever
its source address was a heartbeat address and its source port was below
1024. Both of those are chosen by the client, so an adjacent attacker or
a local container could present them and be granted a full admin
session. The connection now must also have arrived on this node's own
heartbeat listener on port 6000, and the source address must differ from
the local address. Only the real peer controller can meet those
conditions. Nginx never proxies to that listener, so ordinary API and UI
traffic cannot match.

Original PR: https://github.com/truenas/middleware/pull/19973

---------

Co-authored-by: caleb <yocalebo at gmail.com>
DeltaFile
+23-0tests/unit/test_origin.py
+8-1src/middlewared/middlewared/utils/origin.py
+31-12 files

FreeNAS/freenas 56a72ae — src/middlewared/middlewared/utils origin.py, tests/unit test_origin.py

NAS-144374 / 28.0.0-BETA.1 / Restrict HA node authentication to the heartbeat listener (#19973)

A connection was treated as coming from the other HA controller whenever
its source address was a heartbeat address and its source port was below
1024. Both of those are chosen by the client, so an adjacent attacker or
a local container could present them and be granted a full admin
session. The connection now must also have arrived on this node's own
heartbeat listener on port 6000, and the source address must differ from
the local address. Only the real peer controller can meet those
conditions. Nginx never proxies to that listener, so ordinary API and UI
traffic cannot match.
DeltaFile
+23-0tests/unit/test_origin.py
+8-1src/middlewared/middlewared/utils/origin.py
+31-12 files

LLVM/project c90b641 — llvm/cmake/modules MLGOLower.cmake, llvm/lib/Analysis CMakeLists.txt

[mlgo] Allow passing pre-emitc-ed models (#227941)

Support pre-lowering models and then passing them via the exact same mechanism - i.e. `LLVM_MLGO_MODELS`. The extension for the pre-generated ones needs to be `.inc`. High level, this just skips trying to run the mlir toolchain over those. Mixing `.inc` and `.mlir` is supported. The mlir toolchain isn't required unless `.mlir` are passed in the list.

  
As a result we can test the AOT case in regular builds. We just always append to the `LLVM_MLGO_MODELS`list the test models, with an "ugly" command line flag (a `_test` prefix). Each pass just lists the mlir test model and its corresponding .inc as part of the call to `MLGOLower`.

The bulk of the change is changing tests accordingly, and the addition of the same models we use in the mlir case, but EmitC-ed.

A subsequent change will remove listing the mlir models in llvm-zorg, since they now get auto-appended to the list when the mlir tools are specified. In the interim (after this change lands but before we change zorg) the ml-rel bot won't get red because we register the models under a dfferent name on zorg.

Issue #199007
DeltaFile
+79-58llvm/cmake/modules/MLGOLower.cmake
+98-0llvm/lib/Analysis/models/inline-oz-test-model.inc
+49-0llvm/lib/Analysis/models/regalloc-eviction-test-model.inc
+13-12llvm/lib/CodeGen/CMakeLists.txt
+13-12llvm/lib/Analysis/CMakeLists.txt
+3-21llvm/lib/CodeGen/MLRegAllocEvictAdvisor.cpp
+255-10320 files not shown
+324-19526 files

LLVM/project d5804b8 — mlir/lib/Dialect/X86/Utils X86Utils.cpp, mlir/test/Dialect/X86/AMX vector-contract-to-tiled-dp.mlir

[mlir][x86] Fix result tracing through loops (#230229)

Fixes the search for the write of a contraction result in the AMX
lowering when the result is passed through loop args.

The value was followed to the wrong loop result, which either found the
wrong write or crashed when the loop has few results.

Assisted-by: Claude
DeltaFile
+192-0mlir/test/Dialect/X86/AMX/vector-contract-to-tiled-dp.mlir
+4-2mlir/lib/Dialect/X86/Utils/X86Utils.cpp
+196-22 files

FreeNAS/freenas 3b1394c — src/middlewared/middlewared/test/integration/utils call.py client.py, tests/api2 test_twofactor_auth.py test_rate_limit.py

Reset rate limit before each new integration tests client connection
DeltaFile
+2-7tests/api2/test_auth_login_ex.py
+4-4tests/api2/test_rate_limit.py
+0-7tests/unit/test_login_with_api_key.py
+1-6tests/api2/test_twofactor_auth.py
+5-2src/middlewared/middlewared/test/integration/utils/client.py
+1-1src/middlewared/middlewared/test/integration/utils/call.py
+13-276 files

LLVM/project f5bd08d — llvm/lib/Target/AArch64 AArch64InstrAtomics.td

[AArch64] Reduce AddedComplexity value on atomic hint patterns (NFC) (#230478)

Also removes the GISelPredicateCode and replaces it with GISelShouldIgnore
until support is added for the atomic hint instructions in GlobalISel.

Improves CTMark geomean by -0.12% on aarch64-O0-g:

https://llvm-compile-time-tracker.com/compare.php?from=5c31fc696c2dca47458b0da7a05d0b487386242b&to=671900e9ad62a3221d5de0ff05fa9099aa5f7a0b&stat=instructions:u
DeltaFile
+1-4llvm/lib/Target/AArch64/AArch64InstrAtomics.td
+1-41 files

FreeBSD/src 24d5194 — . Makefile.inc1

build: Emit a warning for build targets run as root

Build targets should generally be run as an unprivileged user.  Even
though building as root is discouraged many users do so, so just start
with a warning.

Reviewed by:    brooks
Differential Revision: https://reviews.freebsd.org/D50352
DeltaFile
+4-0Makefile.inc1
+4-01 files

LLVM/project a5d2f05 — mlir/lib/Conversion/ArithToLLVM ArithToLLVM.cpp, mlir/test/Conversion/ArithToLLVM constant-index-bitwidth.mlir index-bitwidth.mlir

[mlir][ArithToLLVM] Fix index lowering for addui_extended (#223265)

Lowering `arith.addui_extended` with `index` operands fails because the
LLVM
result struct uses the unconverted sum type, even though the operands
have
already been converted.

Convert the sum type before constructing the LLVM result struct. Extend
the
existing index-bitwidth tests to cover `arith.addui_extended` at 32-,
64-, and
128-bit widths, reusing their RUN lines. Rename
`constant-index-bitwidth.mlir`
to `index-bitwidth.mlir` to reflect the broader coverage.

This preserves the operation's existing `index` support and uses the
converted
index width for the overflow intrinsic. Related discussion of `index`

    [12 lines not shown]
DeltaFile
+81-0mlir/test/Conversion/ArithToLLVM/index-bitwidth.mlir
+0-67mlir/test/Conversion/ArithToLLVM/constant-index-bitwidth.mlir
+2-1mlir/lib/Conversion/ArithToLLVM/ArithToLLVM.cpp
+83-683 files

FreeBSD/src 406a74f — usr.sbin/bhyve/aarch64 bhyverun_machdep.c

bhyve: Use the new spelling of MPIDR_Aff*

Fixes:  6bf6fe1d70e7 ("arm64: Fix the MPIDR_EL1 field names")
 Sponsored by:  Arm Ltd
DeltaFile
+3-3usr.sbin/bhyve/aarch64/bhyverun_machdep.c
+3-31 files

LLVM/project b676f4b — lldb/source/Plugins/SymbolFile/NativePDB SymbolFileNativePDB.cpp, lldb/test/API/functionalities/target_var TestTargetVar.py

[lldb][NativePDB] Only list a compile unit's own global variables (#230126)

`SymbolFileNativePDB::ParseVariablesForCompileUnit` adds every global
data symbol of the globals stream to whichever compile unit it's asked
about. The globals stream covers the whole PDB, so every compile unit
reports all globals of the program, including the CRT's, and target
variable list hundreds of them.

This patch only keeps the variables whose owning compile unit is the one
being parsed.

Requires:
- https://github.com/llvm/llvm-project/pull/230132

Fixes `TestTargetVar` with PDB debug info.

rdar://189620344
DeltaFile
+2-1lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp
+2-0lldb/test/API/functionalities/target_var/TestTargetVar.py
+4-12 files

FreeBSD/src 87f0db8 — . Makefile.inc1

Makefile.inc1: Update comment wrt world build targets

The utility targets described by this comment are in fact related to
building (buildworld), not installing (which is included in
`make world`).

Reviewed by:    brooks
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D56715
DeltaFile
+2-2Makefile.inc1
+2-21 files

FreeNAS/freenas a5cd96a — src/middlewared/middlewared job.py

Make `send_job_event` cache more concise
DeltaFile
+8-11src/middlewared/middlewared/job.py
+8-111 files

LLVM/project d962cab — lldb/source/Plugins/SymbolFile/NativePDB SymbolFileNativePDB.cpp, lldb/test/API/lang/cpp/class_static TestStaticVariables.py

[lldb][NativePDB] Look up global variables by qualified name (#230134)

`SymbolFileNativePDB::FindGlobalVariables` looks the name up in an index
keyed by basename, so a qualified name such as `A::g_points` never
matches (`target variable A::g_points` fails with `"can't find global
variable"`).

This patch splits the name with
`CPlusPlusLanguage::ExtractContextAndIdentifier`, looks up the basename,
and when the name was qualified only keeps variables whose qualified
name contains it, as `SymbolFileDWARF::FindGlobalVariables` does.

Fixes `TestStaticVariables` with PDB debug info.

rdar://189618458
DeltaFile
+11-1lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp
+2-0lldb/test/API/lang/cpp/class_static/TestStaticVariables.py
+13-12 files

LLVM/project 362016a — lldb/source/Plugins/SymbolFile/NativePDB SymbolFileNativePDB.cpp, lldb/test/API/lang/cpp/function_refs TestFunctionRefs.py main.cpp

[lldb][NativePDB] Use the public symbol as the mangled name of globals (#230132)

`CreateGlobalVariable` passes `"::" + name` as the mangled name of every
global, and `Variable::GetName` prefers the mangled name, so every
global shows a leading `:: ((int) ::C::abc = 123, (&::ref = ...)`,
SBValue::GetName() returning "::i")`.

This patch uses the `S_PUB32` at the variable's address as the mangled
name when there is one, and no mangled name otherwise, which matches
what lldb shows for MSVC ABI globals with DWARF. NativePDB shell tests
are updated, and `TestFunctionRefs` now accepts both forms (the DWARF
output depends on the C++ ABI), which also removes its Windows XFAIL.

rdar://189620487
DeltaFile
+60-60lldb/test/Shell/SymbolFile/NativePDB/globals-fundamental.cpp
+12-12lldb/test/API/lang/cpp/function_refs/main.cpp
+9-5lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp
+4-4lldb/test/Shell/SymbolFile/NativePDB/function-types-builtins.cpp
+1-3lldb/test/API/lang/cpp/function_refs/TestFunctionRefs.py
+1-1lldb/test/Shell/SymbolFile/NativePDB/udt-layout.test
+87-856 files

LLVM/project f77d267 — bolt/test/AArch64 relax-calls.s relax-calls-large-binary.s

[BOLT][AArch64] Shrink large binary call relaxation test (#230526)

The test intermittently times out on the bolt-aarch64-ubuntu-nfc
builder, so I am making the input binary a tad smaller.
DeltaFile
+0-81bolt/test/AArch64/relax-calls.s
+81-0bolt/test/AArch64/relax-calls-large-binary.s
+81-812 files

FreeBSD/src ac90931 — sys/amd64/amd64 support.S

x86: Fix retpoline capitalization

Fixes: 74d971fe1561 ("x86: Add external retpoline thunk")
DeltaFile
+1-1sys/amd64/amd64/support.S
+1-11 files

LLVM/project 477b9ad — offload/include/OpenMP OffloadRTL.h, offload/libomptarget OffloadRTL.cpp

add fullstops
DeltaFile
+1-1offload/libomptarget/OffloadRTL.cpp
+1-1offload/include/OpenMP/OffloadRTL.h
+2-22 files

LLVM/project 1d38b0b — offload/include PluginManager.h, offload/include/OpenMP OffloadRTL.h

[offload][nfc] Pull OpenMP's InteropTbl out of PluginManager

PluginManager is shared with OpenACC, so the OpenMP interop table moves
to OmpPluginManager in libomptarget. The OpenMP PM is defined there, and
interop cleanup is registered from initRuntime.
DeltaFile
+12-4offload/libomptarget/OffloadRTL.cpp
+10-1offload/include/OpenMP/OffloadRTL.h
+0-7offload/libompaccsupport/PluginManager.cpp
+0-5offload/include/PluginManager.h
+22-174 files

LLVM/project 97f3dc8 — offload/include PluginManager.h, offload/include/OpenMP OffloadRTL.h

make loadImagesOntoDevice a member

wip
DeltaFile
+7-7offload/libompaccsupport/PluginManager.cpp
+3-6offload/include/PluginManager.h
+6-0offload/include/OpenMP/OffloadRTL.h
+16-133 files

LLVM/project d32e4b7 — llvm/lib/Target/AMDGPU GCNVOPDUtils.cpp, llvm/test/CodeGen/AMDGPU vopd-dot2-commute-imm-src1.mir

[AMDGPU] Address review comments

Co-Authored-By: Claude <noreply at anthropic.com>
DeltaFile
+9-5llvm/lib/Target/AMDGPU/GCNVOPDUtils.cpp
+1-1llvm/test/CodeGen/AMDGPU/vopd-dot2-commute-imm-src1.mir
+10-62 files

LLVM/project 9a547a8 — llvm/lib/Target/AMDGPU SIInstrInfo.h GCNCreateVOPD.cpp, llvm/test/CodeGen/AMDGPU llvm.amdgcn.fdot2.f32.bf16.ll llvm.amdgcn.fdot2.ll

[AMDGPU] Form VOPD dot2 pairs with a literal in src1

A V_DOT2 with a register in src0 and a literal in src1 is matched as if
commuted, and commuted when the VOPD pair is built. This recovers the
pairs lost once MachineCSE stopped leaving those literals in src0.

Co-Authored-By: Claude <noreply at anthropic.com>
DeltaFile
+149-0llvm/test/CodeGen/AMDGPU/vopd-dot2-commute-imm-src1.mir
+54-19llvm/lib/Target/AMDGPU/GCNVOPDUtils.cpp
+12-35llvm/test/CodeGen/AMDGPU/llvm.amdgcn.fdot2.ll
+3-6llvm/test/CodeGen/AMDGPU/llvm.amdgcn.fdot2.f32.bf16.ll
+9-0llvm/lib/Target/AMDGPU/GCNCreateVOPD.cpp
+2-2llvm/lib/Target/AMDGPU/SIInstrInfo.h
+229-621 files not shown
+232-627 files

LLVM/project 5154ba0 — llvm/test/CodeGen/AMDGPU fsub.f16.ll fmul.f16.ll, llvm/test/CodeGen/AMDGPU/GlobalISel fshr.ll fshl.ll

[AMDGPU] Update tests from main for literal commute

Co-Authored-By: Claude <noreply at anthropic.com>
DeltaFile
+24-24llvm/test/CodeGen/AMDGPU/GlobalISel/fptosi.bf16.ll
+22-22llvm/test/CodeGen/AMDGPU/GlobalISel/fshr.ll
+22-22llvm/test/CodeGen/AMDGPU/GlobalISel/fshl.ll
+12-12llvm/test/CodeGen/AMDGPU/cvt_f32_ubyte.ll
+4-4llvm/test/CodeGen/AMDGPU/fmul.f16.ll
+2-2llvm/test/CodeGen/AMDGPU/fsub.f16.ll
+86-866 files

FreeBSD/src 74d971f — sys/amd64/amd64 support.S, sys/i386/i386 support.S

x86: Add external retpoline thunk

This allows use of -mindirect-branch=thunk-extern, and is only a few
bytes of dead code if not used.

Reviewed by:    kib
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D60524
DeltaFile
+10-0sys/i386/i386/support.S
+10-0sys/amd64/amd64/support.S
+20-02 files

FreeBSD/src 81b5b22 — usr.sbin/makefs/tests makefs_zfs_tests.sh, usr.sbin/makefs/zfs fs.c

makefs/zfs: count "." in the link count and size of dataset roots

The root directory of a dataset is populated from an fsnode that is the
"." entry of the staging directory, and its children are the siblings of
that node, so the loop that computes the link count and the size of the
directory (which expects "." among the children, as the nodes of the
other directories have) never counts it.  The link count of the root of
every dataset is one less than it should be (1 for an empty dataset
instead of 2, 19 instead of 20 for a root with 18 subdirectories), and
so is its size.

fts(3) trusts the link count of the directories of ZFS when called with
FTS_NOSTAT and FTS_PHYSICAL: it stops looking for subdirectories once it
has seen as many as the link count says, and does not descend into the
ones it did not look at.  As a result find(1), and rm(1) when it does
not need to stat the entries, silently skip directories of a pool made
by makefs.  On a root filesystem made by makefs, find / does not list
/etc at all.


    [11 lines not shown]
DeltaFile
+54-0usr.sbin/makefs/tests/makefs_zfs_tests.sh
+4-3usr.sbin/makefs/zfs/fs.c
+58-32 files

LLVM/project 1f0b9c8 — llvm/test/CodeGen/AMDGPU fptrunc.f16.ll

[AMDGPU] Update fptrunc.f16.ll for literal commute

Co-Authored-By: Claude <noreply at anthropic.com>
DeltaFile
+72-72llvm/test/CodeGen/AMDGPU/fptrunc.f16.ll
+72-721 files

LLVM/project 2ea71da — llvm/lib/Target/AMDGPU SIInstrInfo.h GCNCreateVOPD.cpp, llvm/test/CodeGen/AMDGPU llvm.amdgcn.fdot2.f32.bf16.ll llvm.amdgcn.fdot2.ll

[AMDGPU] Move the VOPD dot2 changes to a separate PR

Co-Authored-By: Claude <noreply at anthropic.com>
DeltaFile
+0-149llvm/test/CodeGen/AMDGPU/vopd-dot2-commute-imm-src1.mir
+19-54llvm/lib/Target/AMDGPU/GCNVOPDUtils.cpp
+35-12llvm/test/CodeGen/AMDGPU/llvm.amdgcn.fdot2.ll
+0-9llvm/lib/Target/AMDGPU/GCNCreateVOPD.cpp
+6-3llvm/test/CodeGen/AMDGPU/llvm.amdgcn.fdot2.f32.bf16.ll
+2-2llvm/lib/Target/AMDGPU/SIInstrInfo.h
+62-2291 files not shown
+62-2327 files