LLVM/project f609a16 — llvm/include/llvm/CodeGen LiveIntervals.h, llvm/lib/CodeGen LiveIntervals.cpp

CodeGen: Simplify def segment extension in shrinkToUses (#242869)

During extendSegmentsToUses, Segments holds only one def segment per
value, and none extend past their block. Live-in segments are kept
separately in LiveIns. To extend a def to a use, find the last segment
starting before the use, check that it starts in the use's block, and
move its end to the use. This replaces extendInBlock, whose general
search and merging of overlapped segments never applies here.

Also combine the per-block live-out and live-in tables into one struct.

llc instructions:u:
  CTMark x86_64: -0.07%
  CTMark arm64:  -0.10%
  AMDGPU sample: -0.27%

Largest AMDGPU improvements:
  rocprim warp_sort (gfx1100):                    -1.89%
  rocsolver stedc (gfx942):                       -1.70%

    [4 lines not shown]
DeltaFile
+25-26llvm/lib/CodeGen/LiveIntervals.cpp
+14-8llvm/include/llvm/CodeGen/LiveIntervals.h
+39-342 files

FreeBSD/ports 0cebc01 — www/firefox Makefile distinfo

www/firefox: update to 160.0.1

Release Notes (soon):
  https://www.firefox.com/en-US/firefox/160.0.1/releasenotes/

(cherry picked from commit abfded0b9e23ca68ef591fcd8b481b81473e4f83)
DeltaFile
+3-3www/firefox/distinfo
+1-1www/firefox/Makefile
+4-42 files

FreeBSD/ports abfded0 — www/firefox Makefile distinfo

www/firefox: update to 160.0.1

Release Notes (soon):
  https://www.firefox.com/en-US/firefox/160.0.1/releasenotes/
DeltaFile
+3-3www/firefox/distinfo
+1-1www/firefox/Makefile
+4-42 files

LLVM/project 23db3be — lldb/test/Shell/DAP TestHelp.test, lldb/tools/lldb-dap/tool Options.td lldb-dap.cpp

[lldb-dap] Hide internal options from --help (#243124)

Hide internal options for lldb-dap launcher and debugging options. These
are not stable options and may change in future versions.
DeltaFile
+28-11lldb/test/Shell/DAP/TestHelp.test
+16-9lldb/tools/lldb-dap/tool/lldb-dap.cpp
+12-1lldb/tools/lldb-dap/tool/Options.td
+56-213 files

LLVM/project 348d6bf — llvm/lib/CodeGen ExecutionDomainFix.cpp

[ExecutionDomainFix] Ignore regmasks in early-exit check (NFC) (#242997)

Calls clobber registers in RC with regmasks, preventing the early exit
in functions that do not use them.

CTMark instructions:u geomean (x86_64): O3 -0.05%, ThinLTO -0.03%.
DeltaFile
+1-1llvm/lib/CodeGen/ExecutionDomainFix.cpp
+1-11 files

LLVM/project 440bf15 — flang/test/Lower/OpenMP declare-simd.f90, mlir/include/mlir/Dialect/OpenMP OpenMPOps.td

[mlir][OpenMP] Update declare SIMD lowering for upstream APIs

Add the property dictionary required by strict assembly formats and update declare SIMD tests to use canonical property syntax. Use the OpenMP translation helper instead of the removed ModuleTranslation builder accessor.

Co-authored-by: Copilot <223556219+Copilot at users.noreply.github.com>
DeltaFile
+8-8mlir/test/Target/LLVMIR/openmp-declare-simd-aarch64-wds.mlir
+8-8flang/test/Lower/OpenMP/declare-simd.f90
+4-4mlir/test/Dialect/OpenMP/ops.mlir
+4-1mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
+2-2mlir/test/Target/LLVMIR/openmp-declare-simd-aarch64-nds.mlir
+1-1mlir/test/Target/LLVMIR/openmp-declare-simd-aarch64-01.mlir
+27-242 files not shown
+29-268 files

NetBSD/pkgsrc-wip 5da7705 — rust1100 distinfo Makefile

rust1100: remove the "no_atomic" setting for NetBSD/mipsel.

Thanks to the hints in
  https://github.com/crossbeam-rs/crossbeam/issues/1349
and
  https://github.com/rust-lang/rust/issues/164512

this setting is (no longer?) actually needed, and now produces
a cross-built rust compiler + std lib.
DeltaFile
+0-5rust1100/Makefile
+0-2rust1100/distinfo
+0-72 files

FreeBSD/src 125b88f — sys/amd64/vmm/io vrtc.c

vmm: release the lock when vrtc_snapshot() fails

The error path of the SNAPSHOT_*_OR_LEAVE() macros jumped past
VRTC_UNLOCK() and returned with the vrtc lock held.

Signed-off-by: Wanpeng Qian <wanpengqian at gmail.com>

Reviewed by:    bnovkov, markj, jhb
Sponsored by:   keelos.dev
Differential Revision:  https://reviews.freebsd.org/D60232
DeltaFile
+1-2sys/amd64/vmm/io/vrtc.c
+1-21 files

FreeBSD/src 018bd70 — sys/amd64/vmm/io vrtc.c

vmm: do not let the RTC's periodic interrupt drift

The callout of the periodic interrupt was rearmed from its handler with
a timeout of one period from the time the handler ran.  Each period was
longer than programmed by the latency of the callout, so the interrupt
came at a lower rate than the guest asked for.  A guest that counts
these interrupts to keep its time runs slow.

Give the callout absolute deadlines one period apart, as vatpit does.
If a deadline has already passed when it is computed, for instance
after the VM was paused, start again from the current time.

Signed-off-by: Wanpeng Qian <wanpengqian at gmail.com>

Reviewed by:    jhb
Sponsored by:   keelos.dev
Differential Revision:  https://reviews.freebsd.org/D60233
DeltaFile
+21-7sys/amd64/vmm/io/vrtc.c
+21-71 files

LLVM/project e333da5 — llvm/lib/Target/AMDGPU SIOptimizeExecMaskingPreRA.cpp, llvm/test/CodeGen/AMDGPU optimize-exec-masking-pre-ra.mir

AMDGPU: Update physreg LiveIntervals accurately in SIOptimizeExecMaskingPreRA (#242860)

Instead of dropping the exec/vcc/scc register unit ranges after any
change, remove all physreg defs of the instruction. This fixes the
redundant exec copy fold leaving a stale def in the exec range for
COPY $exec, implicit-def $exec, which was hidden by always
recomputing.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+55-0llvm/test/CodeGen/AMDGPU/optimize-exec-masking-pre-ra.mir
+17-13llvm/lib/Target/AMDGPU/SIOptimizeExecMaskingPreRA.cpp
+72-132 files

FreeNAS/freenas 8517905 — src/middlewared/middlewared/api/v27_1_0 mail.py

Add `validate_certificate` to `27.1.0` API
DeltaFile
+1-0src/middlewared/middlewared/api/v27_1_0/mail.py
+1-01 files

LLVM/project 3116482 — mlir/include/mlir/Dialect/Linalg/TransformOps LinalgTransformOps.h, mlir/include/mlir/Dialect/MemRef/Transforms Passes.h

[mlir] Remove forward and friend declarations of non-existent types (NFC) (#242851)

This patch removes forward and friend declarations of classes and
structs that are not defined anywhere in the codebase or do not exist
in their respective namespaces.

Assisted-by: Antigravity
DeltaFile
+0-5mlir/include/mlir/Dialect/MemRef/Transforms/Passes.h
+0-2mlir/include/mlir/Dialect/Linalg/TransformOps/LinalgTransformOps.h
+0-72 files

OPNSense/core 3c977ab — src/opnsense/mvc/app/library/OPNsense/System StaticRoute.php

System: Routes: rename 'if' to 'device' for clarity

for https://github.com/opnsense/core/issues/10578
DeltaFile
+7-7src/opnsense/mvc/app/library/OPNsense/System/StaticRoute.php
+7-71 files

LLVM/project 1367462 — lldb/source/Core Disassembler.cpp, lldb/unittests/Disassembler CMakeLists.txt

[lldb] Treat calls that do not return as branches when stepping over (#243115)

A Wasm return_call is a call and a barrier, so the breakpoint that
step-over put after it was never reached.
DeltaFile
+68-0lldb/unittests/Disassembler/WebAssembly/TestWebAssemblyDisassembly.cpp
+6-0lldb/unittests/Disassembler/CMakeLists.txt
+3-1lldb/source/Core/Disassembler.cpp
+77-13 files

LLVM/project 07a94e6 — llvm/lib/Transforms/Scalar ConstraintElimination.cpp, llvm/test/Transforms/ConstraintElimination uadd-with-overflow.ll usub-with-overflow.ll

[ConstraintElim] Add guarded add/sub.with.overflow results as EQ facts (#227820)

If every use of the result of an add/sub.with.overflow is dominated by
the no-overflow edge, the result equals the non-wrapping operation at
its uses, so decompose it as LHS +/- RHS.

https://alive2.llvm.org/ce/z/ethELd         positive example

ir diff: minor much -- but note, IR corpus does not have too many
examples of this intinsic.
https://github.com/dtcxzyw/llvm-opt-benchmark-nightly/pull/1799 

compile time: geomean +0.10% 
https://github.com/dtcxzyw/llvm-opt-benchmark-nightly/pull/1800

compile time impact is minimal on compile-time-tracker:
https://llvm-compile-time-tracker.com/compare.php?from=d00363a120dbbe34ad171a0e5f7ffdf9bd3a8cfc&to=b302aad82a80342d04b638d675faaf47194c4294&stat=instructions:u
DeltaFile
+249-0llvm/test/Transforms/ConstraintElimination/sadd-with-overflow.ll
+35-0llvm/test/Transforms/ConstraintElimination/ssub-with-overflow.ll
+28-4llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
+31-0llvm/test/Transforms/ConstraintElimination/usub-with-overflow.ll
+30-0llvm/test/Transforms/ConstraintElimination/uadd-with-overflow.ll
+373-45 files

LLVM/project 7ad9ff5 — llvm/utils/git github-automation.py

[Workflow] Post comment on llvm:instcombine + missed-optimization issues (#242661)

Closes https://github.com/llvm/llvm-project/issues/219415.

Aided by DeepSeek-V4.1-Flash-1017.
DeltaFile
+25-0llvm/utils/git/github-automation.py
+25-01 files

OPNSense/core 50016f0 — contrib/ieee oui.csv

netaddr / mac vendor mapping - update oui.csv, closes https://github.com/opnsense/core/pull/11220
DeltaFile
+3,359-837contrib/ieee/oui.csv
+3,359-8371 files

LLVM/project 9e0cfac — clang/include/clang/DependencyScanning DependencyScanningService.h InProcessModuleCache.h, clang/lib/DependencyScanning InProcessModuleCache.cpp

[clang][deps] Flush the in-process module cache on a background thread

The in-process module cache keeps every PCM built during the lifetime of the
dependency scanning service in memory, and flushes them to disk at the end.
Long-running builds that scan many variants of modules (e.g. with different
search paths or macro definitions) accumulate tens of gigabytes worth of
scanning PCMs this way. Moreover, the final flush is single-threaded and
happens after all scanning work is done.

This PR makes the service start a background thread that flushes each PCM to
disk as soon as it's written, and then replaces its in-memory buffer with the
memory-mapped file. Readers of the in-memory buffer keep it alive on their own
(shared ownership), and importers of the freshly built PCM never wait for the
IO, since the file gets written without holding the entry lock. Reads and
timestamps are still served from memory. The final flush is kept, but only
writes PCMs the background thread failed to write. With
`-no-flush-module-cache`, nothing changes.

I tried several approaches, all measured on a scan of the macOS SDK where

    [52 lines not shown]
DeltaFile
+96-7clang/lib/DependencyScanning/InProcessModuleCache.cpp
+53-0clang/unittests/DependencyScanning/InProcessModuleCacheTest.cpp
+50-0clang/test/ClangScanDeps/module-cache-flush-in-background.c
+38-1clang/include/clang/DependencyScanning/InProcessModuleCache.h
+7-2clang/include/clang/DependencyScanning/DependencyScanningService.h
+2-1clang/test/ClangScanDeps/logging-simple.c
+246-112 files not shown
+249-138 files

LLVM/project 5833794 — clang/lib/Frontend CompilerInstance.cpp

[clang] Extract built PCMs from their container without copying

When a module is built implicitly, the importing instance extracts the AST
file from the module cache's view of the written PCM and stores a copy of it
in its `InMemoryModuleCache`. That's an extra heap copy of every built PCM,
kept alive for the lifetime of the translation unit.

This PR resolves the FIXME by storing a buffer that keeps the written PCM
alive and exposes just the AST file: the `__clangast` section for PCMs
wrapped in an object file (`-gmodules`), or the whole PCM otherwise. The
in-process module cache now shares the memory of its entry with the
importing instance, and the cross-process module cache gives it the
memory-mapped file.

For a regular implicit modules build importing Foundation and friends, this
reduces peak memory footprint from ~150 MB to ~100 MB. For a TU importing
Foundation with `-gmodules` (31 PCMs), the copy increased the peak memory
footprint by 12-17%.
DeltaFile
+27-7clang/lib/Frontend/CompilerInstance.cpp
+27-71 files

LLVM/project 112b619 — clang/include/clang/Serialization ModuleCache.h, clang/lib/DependencyScanning InProcessModuleCache.cpp

[clang] Use the module cache's view of built PCMs (#242383)

When building a module implicitly, the compiler hands the PCM contents
to
`ModuleCache::write()` and then extracts the AST file from the PCH
container
of its own buffer, storing a copy of it in the `InMemoryModuleCache` of
the
importing instance.

This PR makes `ModuleCache::write()` return a buffer with the written
contents, which the importing instance now extracts the AST file from.
The
in-process module cache returns a buffer sharing ownership of its entry,
the
cross-process module cache returns the written file, read back from the
same
file descriptor it was written through (memory-mapped for all but small
files). This is a prerequisite for storing the module cache's view in

    [15 lines not shown]
DeltaFile
+39-1clang/unittests/DependencyScanning/InProcessModuleCacheTest.cpp
+25-1clang/unittests/Serialization/ModuleCacheTest.cpp
+19-6clang/lib/Serialization/ModuleCache.cpp
+16-5clang/include/clang/Serialization/ModuleCache.h
+9-8clang/lib/DependencyScanning/InProcessModuleCache.cpp
+6-4clang/lib/Frontend/CompilerInstance.cpp
+114-256 files

LLVM/project b743533 — clang/test/CIR/CodeGenOpenMP device-array-subscript.c

[CIR] Address reviewer feedback

Assisted-by: Cursor / Claude Opus 5.5
DeltaFile
+18-18clang/test/CIR/CodeGenOpenMP/device-array-subscript.c
+18-181 files

LLVM/project e1a9efb — llvm/lib/Transforms/Scalar ConstraintElimination.cpp, llvm/test/Transforms/ConstraintElimination add-nsw.ll

stop runaway recursion in getKnownSign with a reentrancy guard

Fixes the bug @nathanchance reported here: https://github.com/llvm/llvm-project/pull/235159#issuecomment-6883770908
DeltaFile
+33-0llvm/test/Transforms/ConstraintElimination/add-nsw.ll
+13-0llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
+46-02 files

LLVM/project 3247756 — llvm/lib/Transforms/Scalar ConstraintElimination.cpp, llvm/test/Transforms/ConstraintElimination add-nsw.ll

drop add_neg_via_known_bits's nsw to recover more compile time

(cherry picked from commit 987c008c84af4092696e57297a5b29ab5c04ba25)
DeltaFile
+1-2llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
+2-1llvm/test/Transforms/ConstraintElimination/add-nsw.ll
+3-32 files

LLVM/project e4e8f6f — llvm/lib/Transforms/Scalar ConstraintElimination.cpp, llvm/test/Transforms/ConstraintElimination add-nsw.ll sadd-with-overflow.ll

[ConstraintElim] Address compile-time regressions from getKnownSign. NFC

As a follow-up to PR235159, re-order some of the checks to reduce compile time
impact, and add early bail-outs for ConstantInt's where we can to avoid
KnownBits queries.

(cherry picked from commit feb4e0f5b8d9efe1a206ee932af8035db9f8d616)
DeltaFile
+48-0llvm/test/Transforms/ConstraintElimination/sadd-with-overflow.ll
+18-18llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
+11-0llvm/test/Transforms/ConstraintElimination/add-nsw.ll
+77-183 files

LLVM/project 1b9f386 — llvm/lib/Transforms/Scalar ConstraintElimination.cpp, llvm/test/Transforms/ConstraintElimination add-nsw.ll sadd-with-overflow.ll

Reapply "[ConstraintElim] A signed sum of operands with opposite signs cannot …"

This reverts commit 0eaa3c85b2f5c7232016409ab968e752f8f09450.
DeltaFile
+62-0llvm/test/Transforms/ConstraintElimination/sadd-with-overflow.ll
+25-9llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
+3-6llvm/test/Transforms/ConstraintElimination/add-nsw.ll
+90-153 files

LLVM/project 831eef4 — llvm/test/Transforms/ConstraintElimination vector-with-overflow.ll

Revert "Fix new test from 1d28c37d after the revert"

This reverts commit 7b881a6f9db173fb9311848f95a3f7dfb479cdc7.
DeltaFile
+1-3llvm/test/Transforms/ConstraintElimination/vector-with-overflow.ll
+1-31 files

LLVM/project b845c7d — llvm/lib/Target/SystemZ/MCTargetDesc SystemZHLASMAsmStreamer.cpp

Update formatting
DeltaFile
+1-1llvm/lib/Target/SystemZ/MCTargetDesc/SystemZHLASMAsmStreamer.cpp
+1-11 files

LLVM/project 710a1a6 — llvm/include/llvm/CodeGen LiveIntervalCalc.h LiveInterval.h, llvm/lib/CodeGen LiveIntervalCalc.cpp LiveIntervals.cpp

Reapply "CodeGen: Create register unit dead defs in slot order (#242577)" (#243143) (#243171)

This reverts commit cf1cd3d96bfbd1f3542c6dd1aef80227bae1d5e3.

Fix conflict with other recent LiveInterval compile time patches.
DeltaFile
+0-92llvm/lib/CodeGen/LiveInterval.cpp
+10-15llvm/lib/CodeGen/LiveIntervals.cpp
+1-21llvm/include/llvm/CodeGen/LiveInterval.h
+0-12llvm/lib/CodeGen/LiveIntervalCalc.cpp
+0-5llvm/include/llvm/CodeGen/LiveIntervalCalc.h
+11-1455 files

FreeBSD/src 611046b — sbin/ipfw nat.c, tests/sys/netpfil/ipfw Makefile nat.sh

ipfw: print the log, not the config, for "nat <name> show log"

Add a test too.

Reviewed by:    ae
Fixes:          d6164b77f8b7 ("Make ipfw_nat module use IP_FW3 codes.")
Found with:     Claude Opus 4.8
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D61588
DeltaFile
+66-0tests/sys/netpfil/ipfw/nat.sh
+4-1sbin/ipfw/nat.c
+1-0tests/sys/netpfil/ipfw/Makefile
+71-13 files

FreeBSD/src 1c8725c — sys/netpfil/ipfw ip_fw_nat.c, tests/sys/netpfil/ipfw Makefile nat_getlog.c

ipfw_nat: fix the buffer length check in IP_FW_NAT44_XGETLOG

nat44_get_log() compared the user buffer length against the request
header plus another ipfw_obj_header instead of the request header plus
the log buffer.  A buffer that passed this check but was shorter than
the full reply left too little room in the sockopt window, so
ipfw_get_sopt_space() returned NULL and the following memcpy() of the
log wrote through a NULL pointer, panicking the kernel.

The handler was cloned from nat44_get_cfg() in the commit below, under
the convention of that time where ucfg->size held the payload only and
the ipfw_obj_header was added back in the length check.  9f925e8a920e
("Fix IP_FW_NAT44_LIST_NAT size calculation.") later switched
nat44_get_cfg() to count the header in ucfg->size and reduced its check
to "valsize < size", but nat44_get_log() was not updated.  It kept the
stale idiom, whose check counts the header twice, and by coincidence of
the struct sizes that never leaves room for the log.

Compare against the full reply length and check the result of

    [18 lines not shown]
DeltaFile
+226-0tests/sys/netpfil/ipfw/nat_getlog.c
+6-2sys/netpfil/ipfw/ip_fw_nat.c
+2-0tests/sys/netpfil/ipfw/Makefile
+234-23 files