LLVM/project 6002219 — llvm/lib/Transforms/Vectorize/SandboxVectorizer/Passes LoadStoreVec.cpp, llvm/test/Transforms/SandboxVectorizer/Passes/LoadStoreVec pass_return_value.ll

[SandboxVec][LoadStoreVec] Fix pass return value (#245693)

Failed attempts at vectorization may still modify the IR even if no
vector instructions were emitted, because of scheduling. So in that case
we are currently returning false even though the IR did get modified.
This gets caught with EXPENSIVE_CHECKS.

This patch adds a top-level IR save and restore that will restore the IR
when no vectorization has taken place to make sure the IR is back in its
original state, therefore making sure that the returned value is
correct.
DeltaFile
+19-0llvm/test/Transforms/SandboxVectorizer/Passes/LoadStoreVec/pass_return_value.ll
+10-0llvm/lib/Transforms/Vectorize/SandboxVectorizer/Passes/LoadStoreVec.cpp
+29-02 files

LLVM/project 86d9d74 — lldb/source/Commands CommandObjectDWIMPrint.cpp

[lldb] [NFC] Remove the text test before `print`'s expression path (#245576)

`dwim-print` tries an expression-path step before the expression
evaluator,
and skips it for any expression whose text holds `->`, `*`, `&`, `[` or
`]`.
The reason of the test belongs to the pre-DIL expression-path code,
`StackFrame::LegacyGetValueForVariableExpressionPath`, which split the
string itself and had no notion of an operator. #243651 removed that
code.
`GetValueForVariableExpressionPath` now always lexes and parses the
expression with DIL. `dwim-print` passes `lldb::eDILModeSimple`, whose
lexer accepts only `identifier`, `period` and `eof`.  Each character the
text test looks for lexes to a token that mode rejects, so the
expressions
this now admits to DIL fail there and fall through to the expression
evaluator, which is where the text test sent them before.
DeltaFile
+1-9lldb/source/Commands/CommandObjectDWIMPrint.cpp
+1-91 files

LLVM/project e1da02d — llvm/include/llvm/CodeGen MachineInstr.h, llvm/lib/CodeGen TargetInstrInfo.cpp

[CodeGen] Fix isDef() assert on metadata operands in hasImplicitDef (#239703)

The MachineVerifier allows metadata and MC-symbol operands after an
instruction's explicit operands in
`MachineOperand::isValidExcessOperand()`. These operands appear in
`implicit_operands()`, but `MachineInstr::hasImplicitDef()` assumes
every operand in that range is a register and calls `isDef()` on each
one. An instruction that the verifier accepts can therefore trip the
"Wrong MachineOperand accessor" assertion when a pass asks whether it
has an implicit def.

This PR checks that an operand is a register before querying whether
it's a def, matching the neighbouring `MachineInstr` helpers such as
`allImplicitDefsAreDead()`. It also adds the same check in
`TargetInstrInfo::commuteInstructionImpl()`. Without it, an instruction
with both a metadata operand and an implicit register def would reach an
unchecked `getReg()` call in the loop that updates implicit defs.
DeltaFile
+30-0llvm/test/CodeGen/AMDGPU/machinelicm-undef-use.mir
+19-0llvm/test/CodeGen/X86/coalesce-commutative-implicit-def.mir
+1-1llvm/include/llvm/CodeGen/MachineInstr.h
+2-0llvm/lib/CodeGen/TargetInstrInfo.cpp
+52-14 files

FreeBSD/ports 5d4eb42 — emulators/libspectrum Makefile

emulators/libspectrum: spell "WRKSRC" correctly

Reported by:    pkg-fallout
DeltaFile
+1-1emulators/libspectrum/Makefile
+1-11 files

FreeBSD/src ac0cfa4 — sys/powerpc/powerpc trap.c

powerpc: fix an off-by-one when widening 32-bit syscall arguments

cpu_fetch_syscall_args() widens the arguments a 32-bit syscall passes on
the stack. The loop started at narg instead of narg - 1 and wrote
td_sa.args[narg], one past the end of the eight entry array, which is
td_sigblock_ptr in struct thread. NARGREG is 8, so a plain syscall never
enters the loop, but syscall(2) and __syscall(2) lower the register count
to 7 and 6, and an eight argument syscall made that way, like
freebsd32_sendfile with its two slot off_t, corrupted the pointer.

A 32-bit program calling sendfile through syscall(2) changed its own
td_sigblock_ptr (watched with DTrace on cpu_fetch_syscall_args); it
leaves it alone now.

Reviewed by:    jhibbits
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D61884
DeltaFile
+1-1sys/powerpc/powerpc/trap.c
+1-11 files

FreeNAS/freenas ba6a125 — src/middlewared/middlewared/plugins block_storage.py, src/middlewared/middlewared/plugins/zfs zvol_utils.py

Optimize `get_in_use`
DeltaFile
+16-8src/middlewared/middlewared/plugins/block_storage.py
+2-3src/middlewared/middlewared/plugins/zfs/zvol_utils.py
+18-112 files

FreeBSD/src acc46e3 — sys/amd64/amd64 cpu_switch.S

cpu_switch(): Move 'sw1wait' inside the function block

This code block is unrelated to the resumectx() procedure it was after,
and is referenced only by cpu_switch(), so move it between
ENTRY(cpu_switch) and END(cpu_switch).  This, in particular, puts it
inside a .cfi_startproc/.cfi_endproc block, giving clearer debugging
information should a problem arise there.

Keep it at the end so that jumping to it is initially predicted not
taken.

Reviewed by:    kib
Fixes:          73dd84a7a54d ("amd64: clean up cpu_switch.S")
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D61713
DeltaFile
+9-9sys/amd64/amd64/cpu_switch.S
+9-91 files

FreeBSD/ports d4a45d6 — net/rustconn pkg-plist Makefile

net/rustconn: Update to 0.26.3

- Use SPDX identifiers for LICENSEs

ChangeLog:

1. https://github.com/totoshko88/RustConn/releases/tag/v0.24.9
2. https://github.com/totoshko88/RustConn/releases/tag/v0.24.10
3. https://github.com/totoshko88/RustConn/releases/tag/v0.24.11
4. https://github.com/totoshko88/RustConn/releases/tag/v0.25.0
5. https://github.com/totoshko88/RustConn/releases/tag/v0.25.1
6. https://github.com/totoshko88/RustConn/releases/tag/v0.25.2
7. https://github.com/totoshko88/RustConn/releases/tag/v0.25.3
8. https://github.com/totoshko88/RustConn/releases/tag/v0.25.4
9. https://github.com/totoshko88/RustConn/releases/tag/v0.25.5
10. https://github.com/totoshko88/RustConn/releases/tag/v0.25.6
11. https://github.com/totoshko88/RustConn/releases/tag/v0.26.0
12. https://github.com/totoshko88/RustConn/releases/tag/v0.26.1
13. https://github.com/totoshko88/RustConn/releases/tag/v0.26.2

    [3 lines not shown]
DeltaFile
+191-155net/rustconn/distinfo
+94-76net/rustconn/Makefile.crates
+4-6net/rustconn/Makefile
+1-0net/rustconn/pkg-plist
+290-2374 files

LLVM/project 289c264 — lldb/source/Plugins/Language/Rust RustLanguage.cpp RustVector.cpp, lldb/source/Plugins/TypeSystem/Clang TypeSystemClang.cpp

[LLDB] Add data formatter for Rust vectors. (#239745)

Set up the basic framework for adding Rust data formatters, and add a
data formatter for Rust vector types.
DeltaFile
+158-0lldb/source/Plugins/Language/Rust/RustVector.cpp
+132-0lldb/test/API/lang/rust/vector-formatter/TestRustVectorFormatter.py
+92-3lldb/source/Plugins/Language/Rust/RustLanguage.cpp
+27-3lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
+28-0lldb/test/API/lang/rust/vector-formatter/main.yaml
+27-0lldb/test/API/lang/rust/vector-formatter/main.core.yaml
+464-610 files not shown
+544-816 files

FreeNAS/freenas 4aef967 — src/middlewared/middlewared/alert/source path_used_by_multiple_services.py, src/middlewared/middlewared/plugins/apps/ix_apps host_paths.py

Filesystem consumers compatibility checks
DeltaFile
+490-0tests/api2/test_filesystem_compatibility.py
+224-0src/middlewared/middlewared/plugins/filesystem_/compatibility.py
+105-0src/middlewared/middlewared/pytest/unit/plugins/apps/test_app_host_paths.py
+69-0src/middlewared/middlewared/pytest/unit/api/handler/version/test_app_upgrade_from_previous.py
+45-0src/middlewared/middlewared/plugins/apps/ix_apps/host_paths.py
+38-0src/middlewared/middlewared/alert/source/path_used_by_multiple_services.py
+971-048 files not shown
+1,510-14454 files

NetBSD/pkgsrc-wip 831e2c1 — . Makefile, navidrome PLIST DESCR

navidrome: add new package

untested
DeltaFile
+926-0navidrome/distinfo
+308-0navidrome/go-modules.mk
+46-0navidrome/Makefile
+23-0navidrome/DESCR
+2-0navidrome/PLIST
+1-0Makefile
+1,306-01 files not shown
+1,307-07 files

FreeBSD/src 9508483 — lib/libsysdecode mktables

libsysdecode: Avoid non-portable \> word end boundary in mktables

Whilst we bootstrap our own sed when building on non-FreeBSD, it uses
the system regex(3) implementation, and so inherits its extensions, not
our own. Our implementation and glibc's both include this extension to
POSIX, but macOS's does not, and so even with our bootstrap sed we
cannot use the \> extension when built and run on macOS.

Unfortunately, there is no alternative form we can use; whilst macOS
implements [[:>:]] as an extension that provides this same feature, and
so do we, the regex(3) implementation in glibc does not, and the only
alternative glibc offers is \b, which neither us nor macOS implement.

We could make the form used conditional on the OS, but that starts to
get messy once other Linux libcs enter the picture, which in theory we
somewhat support.

Rewrite both uses to avoid the need for \>. For gen_table, use a pattern
to match the identifier that is precisely the (non-extended) C99

    [25 lines not shown]
DeltaFile
+2-2lib/libsysdecode/mktables
+2-21 files

HardenedBSD/src 7846ccd — sys/geom geom_ctl.c

HBSD: Resolve merge conflict

Signed-off-by:  Shawn Webb <shawn.webb at hardenedbsd.org>
DeltaFile
+1-5sys/geom/geom_ctl.c
+1-51 files

HardenedBSD/src cb1c906 — sys/amd64/linux linux_ioctl.h, sys/arm64/arm64 pmap.c

Merge remote-tracking branch 'rad/freebsd/current/main' into hardened/current/master

Conflicts:
        sys/geom/geom_ctl.c (unresolved)
DeltaFile
+38-151sys/compat/linux/linux_ioctl.h
+152-0sys/compat/linux/linux_termbits.h
+37-28sys/arm64/arm64/pmap.c
+0-34sys/compat/linux/linux_ioctl.c
+15-0sys/arm64/linux/linux_ioctl.h
+15-0sys/amd64/linux/linux_ioctl.h
+257-21315 files not shown
+325-22021 files

LLVM/project ec17d7f — llvm/lib/Target/AMDGPU SIFixSGPRCopies.cpp

[AMDGPU][NFC] Clean up HasUses in SIFixSGPRCopies::processPHINode

Use !MRI->use_empty(PHIRes) instead.

Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+3-4llvm/lib/Target/AMDGPU/SIFixSGPRCopies.cpp
+3-41 files

LLVM/project 8b30e24 — clang/lib/StaticAnalyzer/Checkers PointerArithChecker.cpp, clang/test/Analysis ptr-arith.c

[analyzer] Enable checkDeadSymbols in PointerArithChecker
DeltaFile
+27-0clang/test/Analysis/ptr-arith.c
+2-4clang/lib/StaticAnalyzer/Checkers/PointerArithChecker.cpp
+29-42 files

DragonFlyBSD/src e9a3645 — sys/dev/drm drm_ioctl.c

drm: return a positive errno when drm_ioctl_permit() fails

Since 908aca8817 drm_ioctl() hands drm_ioctl_permit()'s Linux-style
negative error code to userland unchanged, so a refused ioctl sets
errno to -13 (-EACCES) instead of 13. The handler results below are
already negated (retcode = -func(...)). The same commit also changed
"return ENODEV" to "return -ENODEV" for an unplugged device; restore the
positive value (nothing reaches it today, drm_dev_unplug() is only
called from code that is not built).

drmAuthMagic() returns -errno, i.e. +13, which never equals -EACCES,
so libdrm's drmIsMaster() reports non-master fds as master. wlroots
then calls drmDropMaster() on a cloned non-master fd, logs "Failed to
drop master", closes the fd, and the DRM lease manager skips the card.

Negate the value, as is done for the handlers.

Tested on 6.5-DEVELOPMENT (i915): AUTH_MAGIC on a non-master fd now
fails with errno 13 instead of -13, sway no longer logs "Failed to drop
master" or skips the card for leasing, and X starts.
DeltaFile
+2-2sys/dev/drm/drm_ioctl.c
+2-21 files

DragonFlyBSD/src d23da7d — sys/dev/drm drm_file.c

drm: return a positive errno or zero from drm_read()

drm_read() is the d_read method of drm_cdevsw, which returns zero or a
positive errno; the amount read is in uio_resid.  It returned the
Linux-style negative values instead: -EAGAIN for an O_NONBLOCK read
without events, -EFAULT, -EINTR from mutex_lock_interruptible() and
-ERESTARTSYS from wait_event_interruptible().  It also returned the
number of bytes read when the next event did not fit in the buffer;
read(2) then failed with that number as the errno and the events
already copied were lost.

Negate the errno values, map -ERESTARTSYS to EINTR as drm_ioctl() does,
and return zero when data was read.

Tested on 6.5-DEVELOPMENT (i915): an O_NONBLOCK read without events now
fails with errno 35 (EAGAIN) instead of -35, a read interrupted by a
signal with errno 4 (EINTR) instead of -512, and read(2) of 40 bytes
with three 32-byte vblank events queued returns 32 instead of failing
with errno 32 (EPIPE) and losing the event.
DeltaFile
+3-3sys/dev/drm/drm_file.c
+3-31 files

DragonFlyBSD/src 4d09039 — sys/dev/drm drm_file.c

drm: return a positive errno from drm_open()

drm_open() is the d_open method of drm_cdevsw, which returns a
positive errno, but its failure paths return the Linux-style negative
values: -ENODEV from drm_minor_acquire(), -EBUSY for O_EXCL and the
negative errors of drm_open_helper() and drm_setup().  A failed open()
therefore hands a negative errno to userland, as drm_ioctl() did.

Negate the value on both error returns.

Tested on 6.5-DEVELOPMENT (i915): open(2) of /dev/dri/card0 with O_EXCL
now fails with errno 16 (EBUSY) instead of -16.
DeltaFile
+2-2sys/dev/drm/drm_file.c
+2-21 files

DragonFlyBSD/src a993d9b — sys/dev/drm drm_auth.c

drm: remove debug kprintf()s from drm_auth.c

drm_setmaster_ioctl() and drm_dropmaster_ioctl() print unconditional
kprintf()s: every DRM_IOCTL_DROP_MASTER, and every SET_MASTER that does
not return early, leaves a line in dmesg (seen at the end of every sway
session started through seatd). They were added as debugging aids in
4ec80808ee. Remove them; the setmaster workaround itself is unchanged.
DeltaFile
+0-5sys/dev/drm/drm_auth.c
+0-51 files

LLVM/project 41c7abf — llvm/lib/Target/Sparc/MCTargetDesc SparcInstPrinter.cpp, llvm/test/MC/Disassembler/Sparc sparc-v9.txt

[SPARC] Print the full trap number (#245511)

The instruction printer masked the trap number of Tcc with 0x7f. That
came from 52adb575e617, which also added a custom decoder that read
only 7 bits of the trap number. 099001979fe8 removed that decoder, so
the disassembler now decodes the 8-bit field that Tcc encodes, and the
mask cut off bit 7: ta 0x80 printed as ta 0 and ta 0xff as ta 127.

Drop the special case and print the trap number like any other
immediate.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+2-15llvm/lib/Target/Sparc/MCTargetDesc/SparcInstPrinter.cpp
+6-0llvm/test/MC/Sparc/sparc-v9-traps.s
+6-0llvm/test/MC/Disassembler/Sparc/sparc-v9.txt
+14-153 files

LLVM/project 59c0457 — libc/src/__support float_to_string.h, libc/test/src/stdio sprintf_test.cpp

[libc] Fix unsigned underflow in string_to_float.h. (#245745)

`pos_len` is an `int32_t`, but is computed using the difference of
`uint32_t`s. Cast to signed before doing the arithmetic so that clamping
`pos_len` on the following lines works.

Assisted-by: Automated tooling, human reviewed.
DeltaFile
+90-0libc/test/src/stdio/sprintf_test.cpp
+56-2libc/test/src/stdlib/strfroml_test.cpp
+54-0libc/test/src/stdlib/strfromf128_test.cpp
+11-8libc/src/__support/float_to_string.h
+211-104 files

FreeBSD/ports cd7eb27 — lang/rust-nightly Makefile distinfo, lang/rust-nightly/files patch-pr166437

lang/rust-nightly: update 1.102.0.20261110 → 1.102.0.20261122

Approved by:    rust (implicit)
DeltaFile
+41-0lang/rust-nightly/files/patch-pr166437
+15-15lang/rust-nightly/distinfo
+2-2lang/rust-nightly/Makefile
+58-173 files

OpenBSD/src n8h9NU7 — usr.bin/tmux tty-keys.c tty.c

   Send DA last and use it as a marker for "previous requests will not
   arrive" to avoid extending escape time unnecessarily.
VersionDeltaFile
1.504+5-3usr.bin/tmux/tty.c
1.225+3-2usr.bin/tmux/tty-keys.c
+8-52 files

FreeBSD/ports de1489a — net-p2p/xmrig Makefile distinfo

net-p2p/xmrig: Update to 6.27.0
DeltaFile
+3-3net-p2p/xmrig/distinfo
+1-1net-p2p/xmrig/Makefile
+4-42 files

FreeBSD/ports 03333d9 — security/git-credential-gopass Makefile distinfo

security/git-credential-gopass: Update to 1.17.5
DeltaFile
+7-7security/git-credential-gopass/distinfo
+1-2security/git-credential-gopass/Makefile
+8-92 files

LLVM/project 31dd952 — llvm/lib/Transforms/Instrumentation MemProfInstrumentation.cpp AddressSanitizer.cpp, llvm/lib/Transforms/Utils SCCPSolver.cpp

[Transforms] Remove write-only and unused members (NFC) (#245544)

ModuleAddressSanitizer::Recover: Added on November 11, 2015 in commit
d7731988ef44c9417a79bd4db042183a60900f14 without any readers.  This
patch also removes its initializer and the now-unused Recover
constructor parameter.

ModuleMemProfiler::Mapping: Added on August 13, 2020 in commit
7ed8124d46f94601d5f1364becee9cee8538265e without any readers.  This
patch also removes its initializer.

ModuleSanitizerCoverage::FunctionPCsArray: The last readers were removed
on September 13, 2018 in commit
3bea25e5543606758ab10d395b1e7283255be75b.  This patch also removes its
assignments and drops the now-unused return value of CreatePCArray.

SCCPInstVisitor::Ctx: The last reader was removed on June 19, 2023 in
commit 664b7a4cd51d9273888e79688f64cc8bbcbdbe25.  This patch also
removes its initializer and the now-unused Ctx constructor parameter.

    [5 lines not shown]
DeltaFile
+4-9llvm/lib/Transforms/Instrumentation/SanitizerCoverage.cpp
+4-8llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
+3-6llvm/lib/Transforms/Utils/SCCPSolver.cpp
+0-3llvm/lib/Transforms/Vectorize/LoopIdiomVectorize.cpp
+1-2llvm/lib/Transforms/Instrumentation/MemProfInstrumentation.cpp
+12-285 files

LLVM/project 2275fc4 — llvm/lib/Target/ARM ARMLowOverheadLoops.cpp ARMFastISel.cpp

[ARM] Remove write-only private member variables (NFC) (#245543)

ARMFastISel::TM: The last readers were removed on August 20, 2026 in
commit 239b30e2f5bd11df57e7c4a054bf3a9b7b0bd714.  This patch also
removes its initializer.

ARMLowOverheadLoops::MRI: The last reader was removed on September 17,
2019 in commit 36c922278e6e7fb2083dc29dda950dfac73a194c.  This patch
also removes its assignment.

Assisted-by: Antigravity
DeltaFile
+2-4llvm/lib/Target/ARM/ARMFastISel.cpp
+1-4llvm/lib/Target/ARM/ARMLowOverheadLoops.cpp
+3-82 files

LLVM/project ded05df — llvm/include/llvm/Bitstream BitstreamReader.h, llvm/test/Bitcode invalid.test

Bitstream: Decode single-chunk VBR fields inline

Share one decoder between ReadVBR and ReadVBR64, decode the first chunk
inline from a word load, and only call out of line for the remaining
chunks. The inline part is always_inline because GCC otherwise clones
ReadVBR out of line, which made bitcode reading slower.

Instructions in parseIRFile with opt -passes=verify:

              clang 23   GCC 15
  k.bc        -6.17%     -0.14%
  cnf.bc      -5.93%     +0.74%
  sqlite3     -5.02%     -0.38%
  z08.bc      -4.54%     -0.56%

Whole opt -O3 runs: -0.14% to -0.47% with clang, within 0.02% with GCC.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+46-61llvm/include/llvm/Bitstream/BitstreamReader.h
+1-1llvm/test/Bitcode/invalid.test
+47-622 files

LLVM/project bd2f190 — llvm/lib/Target/SPIRV SPIRVInstructionSelector.cpp, llvm/test/CodeGen/SPIRV uitofp-with-bool.ll TruncToBool.ll

[SPIR-V] Use one helper for temp registers in the selector (#241373)

Some temp registers in the selector were made with
createVirtualRegister, which sets the full LLT. For wide vectors this 
LLT is larger than the register class, so builds with assertions fail with
"VReg's low-level type and register class have different sizes", 
for example on uitofp <8 x i1> to <8 x float>.

Add createTempVReg, which sets only the register class and the SPIR-V
type. Use it instead of createVirtualRegister, and in the places that did the
same steps by hand.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+57-113llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp
+20-0llvm/test/CodeGen/SPIRV/TruncToBool.ll
+13-1llvm/test/CodeGen/SPIRV/uitofp-with-bool.ll
+90-1143 files