LLVM/project bd69366 — llvm/lib/Target/LoongArch LoongArchISelDAGToDAG.h LoongArchInstrInfo.td, llvm/test/CodeGen/LoongArch ldx-stx-alsl.ll

[LoongArch] Prefer ALSL + LD/ST over SLLI + LDX/STX when the address is materialized anyway (#238715)

When (add Base, (shl Index, 1..4)) also has users other than the base
address of loads/stores, the add is selected as ALSL anyway. Folding it
into LDX/STX then needs a separate SLLI for the index, so use the ALSL
result with a zero offset instead:

```
  alsl.d $a2, $a1, $a0, 3        alsl.d $a2, $a1, $a0, 3
  slli.d $a1, $a1, 3       =>    ld.d   $a3, $a2, 0
  ldx.d  $a3, $a0, $a1           ld.d   $a2, $a2, 8
  ld.d   $a2, $a2, 8
```

rustc-perf fmt-write-str on LA664: 3988.1M -> 3973.1M instructions
(-0.38%).

Assisted-By: LLM
DeltaFile
+19-25llvm/test/CodeGen/LoongArch/ldx-stx-alsl.ll
+35-0llvm/lib/Target/LoongArch/LoongArchISelDAGToDAG.cpp
+7-2llvm/lib/Target/LoongArch/LoongArchInstrInfo.td
+1-0llvm/lib/Target/LoongArch/LoongArchISelDAGToDAG.h
+62-274 files

LLVM/project 712854a — llvm/test/CodeGen/LoongArch ldx-stx-alsl.ll

[LoongArch][NFC] Pre-commit tests for LDX/STX with ALSL-foldable index (#238714)

Assisted-By: LLM
DeltaFile
+156-0llvm/test/CodeGen/LoongArch/ldx-stx-alsl.ll
+156-01 files

LLVM/project cd1a8f8 — lld/MachO SyntheticSections.cpp InputFiles.cpp

[lld][MachO][NFC] Introduce SectionView for section-level predicates

Add a lightweight `SectionView` wrapper implicitly constructible from
either a `Section` or an `InputSection`, and convert all section-level
predicate functions (`isCodeSection`, `isCfStringSection`,
`isClassRefsSection`, `isSelRefsSection`, `isEhFrameSection`,
`isGccExceptTabSection`, `usesAuthGot`, and ICF's
`isFoldableIgnoringRelocatedBytes`) to accept `SectionView`.

This avoids duplicating `(const Section &)` / `(const InputSection *)`
overloads as we refactor loops over `InputSection`s (which are generally
grouped by their originating `Section`) to hoist or cache section-level
predicate results across consecutive subsections of the same `Section`.
Planned follow-up sites include:

- `foldIdenticalSections()`, which evaluates `isCfStringSection`,
  `isClassRefsSection`, `isSelRefsSection`, `isCodeSection`,
  `isFoldableIgnoringRelocatedBytes`, and `isEhFrameSection` on every
  subsection in `inputSections`:

    [16 lines not shown]
DeltaFile
+20-24lld/MachO/InputSection.cpp
+21-21lld/MachO/ICF.cpp
+18-8lld/MachO/InputSection.h
+4-4lld/MachO/Writer.cpp
+3-3lld/MachO/InputFiles.cpp
+2-2lld/MachO/SyntheticSections.cpp
+68-622 files not shown
+70-648 files

LLVM/project e516072 — llvm/lib/Analysis ModuleSummaryAnalysis.cpp, llvm/lib/IR ProfDataUtils.cpp

[SampleProfile] Merge import GUIDs directly during inlining

Replace pending import metadata with a union of the callee's import GUIDs
into the caller's existing MD_prof record after a successful inline.
Preserve the caller's entry count, including unknown counts, and leave the
callee's hints intact even when its standalone definition survives.

Remove origin/deletion tracking and writer cleanup. Keep inherited hints
when pre-link sample annotation replaces the caller's entry-count record.
Use -sample-profile-preserve-import-hints at the inline propagation site.

Expand regressions for retained/deleted bodies, nested/repeated inlines,
counts, serialization, profile encodings, and a real ThinLTO import with
an enabled/disabled control.
DeltaFile
+181-0llvm/test/Transforms/Inline/sample-import-hints.ll
+0-87llvm/test/Transforms/Inline/sample-pending-imports.ll
+68-18llvm/test/Transforms/SampleProfile/thinlto-preserve-import-hints.ll
+5-42llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
+39-0llvm/test/ThinLTO/X86/sample-import-hints.ll
+13-24llvm/lib/IR/ProfDataUtils.cpp
+306-1716 files not shown
+326-20712 files

LLVM/project 19c2214 — bolt/lib/Passes PatchEntries.cpp, bolt/test/AArch64 patch-entry-rollback.s

[BOLT] Defer entry patch creation until after the fuIl function scan (#242986)

When a function's entry points cannot be patched, setIgnored() scans its
original code and may ignore an earlier target or mark a previously
skipped target as needing a patch. Emitting entry patches during the
same traversal can therefore leave stale trampolines, including
self-loops or miss required patches. This patch collects entry patches
in complete sweeps until these decisions stabilize, then emits them.

For RISC-V, small functions and compressed instructions make the 8-byte
entry trampoline harder to fit. Register clobbering may also require
retaining targets of nonstandard calls or branches to interior entries,
invalidating earlier entry patches.
For AArch64, the same issue can occur when a function cannot fit a
12-byte trampoline. Scanning its ADR or literal LDR references may force
an earlier target to remain in place, leaving a stale entry patch. But
for X86, ignore decisions are less likely.
DeltaFile
+52-0bolt/test/AArch64/patch-entry-rollback.s
+12-2bolt/lib/Passes/PatchEntries.cpp
+64-22 files

FreeBSD/ports 5ae5353 — japanese/skk-jawiki Makefile distinfo

japanese/skk-jawiki: Update to 2026.12.02.120711
DeltaFile
+3-3japanese/skk-jawiki/distinfo
+1-1japanese/skk-jawiki/Makefile
+4-42 files

FreeBSD/ports d4b4a17 — japanese/mecab-jawiki Makefile distinfo, japanese/mecab-jawiki/files patch-mecab-userdic.csv

japanese/mecab-jawiki: Update to 2026.12.02.120711
DeltaFile
+3-3japanese/mecab-jawiki/distinfo
+2-2japanese/mecab-jawiki/files/patch-mecab-userdic.csv
+1-1japanese/mecab-jawiki/Makefile
+6-63 files

LLVM/project 2cd8a13 — llvm/lib/Target/Hexagon HexagonDepIICHVX.td HexagonDepIICScalar.td, llvm/test/CodeGen/AArch64/Atomics aarch64-atomicrmw-lscp.ll

Merge branch 'main' into users/reble/attributor/light-skip-non-exact
DeltaFile
+16,748-16,506llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
+15,666-15,524llvm/lib/Target/Hexagon/HexagonDepIICScalar.td
+1,216-20,334utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+7,746-8,018llvm/lib/Target/Hexagon/HexagonDepIICHVX.td
+4,870-4,906llvm/test/CodeGen/AMDGPU/memintrinsic-unroll.ll
+9,174-0llvm/test/CodeGen/AArch64/Atomics/aarch64-atomicrmw-lscp.ll
+55,420-65,28818,329 files not shown
+1,031,933-610,41918,335 files

LLVM/project 929e5e4 — llvm/lib/Target/X86 X86ISelLoweringCall.cpp X86Subtarget.cpp, llvm/test/CodeGen/X86 ifunc-pic-i386.ll

[spr] update

Created using spr 2.0.0-beta.2
DeltaFile
+295-0llvm/test/CodeGen/X86/ifunc-pic-i386.ll
+11-1llvm/lib/Target/X86/X86Subtarget.cpp
+7-4llvm/lib/Target/X86/X86ISelLoweringCall.cpp
+313-53 files

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

powerpc: Avoid panicking on alignment errors

PowerPC ISA specifies that an alignment fault can occur when any load or
store accesses cache-inhibited or write-through memory.  Since
copyin/copyout don't know what type of memory they will access we can't
always trust that memory is well behaved, or that it's properly aligned.
Avoid a panic by giving the fault handler a chance to deal with it and
propagate the fault back up.
DeltaFile
+1-0sys/powerpc/powerpc/trap.c
+1-01 files

FreeBSD/src 63bb824 — lib/libkvm kvm_private.c

libkvm: Add basic sanity check in _kvm_pt_init

_kvm_pt_init() assumes that the map length passed in is an even multiple
of 8 bytes, and the loop over the map decrements by 8
(sizeof(uint64_t)).  Since `res` is unsigned, if the result is not a
multiple of 8 then it wraps where it would otherwise stop, thereby
writing memory until a crash.  Address this by just erroring out on
invalid input, since valid cores will never have a short size.

Reviewed by:    kib
Sponsored by:   Hewlett Packard Enterprise Development LP
Differential Revision:  https://reviews.freebsd.org/D62333
DeltaFile
+5-0lib/libkvm/kvm_private.c
+5-01 files

FreeBSD/src 3cd5e9e — sys/netinet ip_fastfwd.c, tests/sys/netpfil/ipfw fwd.sh

netinet: Send to the next hop a pfil hook chose in ip_tryforward()

When an inbound pfil hook chooses the next hop (ipfw fwd),
ip_tryforward() looks up the route to it and keeps the address in dest,
which if_output() gets as the next hop when the route has no gateway.
After the outbound hooks dest is set back to the destination of the
packet.  ipfw always installs an outbound hook, so a packet forwarded
to a next hop on a connected network leaves on the right interface but
for the wrong neighbour: the router tries to resolve the destination
of the packet there ("arpresolve: can't allocate llinfo") and the
packet is lost.  This worked until 9ac7c6cfed72, before which the
address came from the route lookup.

Set dest from the packet only when the outbound hooks changed the
destination or chose a next hop.  To tell, compare with the destination
as it was before these hooks, as ip6_tryforward() does.  The comparison
with the destination before the inbound hooks, which is older than
9ac7c6cfed72, also lost the next hop of a packet whose destination an
inbound hook had rewritten, and for such a packet it repeated the check

    [14 lines not shown]
DeltaFile
+111-0tests/sys/netpfil/ipfw/fwd.sh
+5-3sys/netinet/ip_fastfwd.c
+116-32 files

LLVM/project 2ba64b3 — flang/include/flang/Lower DirectivesCommon.h, flang/test/Lower/OpenACC acc-bounds.f90

[flang][acc] Allow zero-sized array sections in data clauses (#248296)

Lowering rejected data clause sections whose constant upper bound is
below the lower bound, e.g. `copyin(a(1:0))`, with "zero sized array
section". Such sections are valid and describe no data. Lower them to
regular `acc.bounds` and keep only the stride check.
DeltaFile
+5-10flang/include/flang/Lower/DirectivesCommon.h
+13-0flang/test/Lower/OpenACC/acc-bounds.f90
+18-102 files

FreeBSD/doc b66f51a — documentation/content/en/books/handbook/desktop _index.adoc

handbook/desktop: Headings are in title case

While here, remove some inconsitent redundancies in some headings.
DeltaFile
+11-11documentation/content/en/books/handbook/desktop/_index.adoc
+11-111 files

LLVM/project ea97fc1 — llvm/unittests/IR RuntimeLibcallsTest.cpp

Fix RuntimeLibcallsTest for AMDGPU asan runtime

Assisted-by: Claude
DeltaFile
+1-0llvm/unittests/IR/RuntimeLibcallsTest.cpp
+1-01 files

LLVM/project b96d2d0 — llvm/include/llvm/IR RuntimeLibcalls.td, llvm/test/Transforms/Util/DeclareRuntimeLibcalls asan.ll aarch64.ll

RuntimeLibcalls: Make asan runtime available with out of tree support

The previous set of systems was based on what targets are built in the
compiler-rt sources. However a few targets have out of tree runtimes,
so list those too (MSVC on AArch64, AMDGPU, Emscripten and the
PlayStation SDK). Also, drop the stack poisoning functions from
AMDGPU since the pass skips inserting those for it.

Assisted-by: Claude
DeltaFile
+20-13llvm/include/llvm/IR/RuntimeLibcalls.td
+18-1llvm/test/Transforms/Util/DeclareRuntimeLibcalls/aarch64.ll
+9-1llvm/test/Transforms/Util/DeclareRuntimeLibcalls/asan.ll
+47-153 files

FreeBSD/ports 83e1fc1 — math/octave-forge-llms Makefile distinfo

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

LLVM/project c9120f0 — libc/src/__support/FPUtil/generic FMA.h, libc/test/src/math/smoke FmaTest.h

[libc] Fix zero sign when generic fused multiply-add (FMA) underflows (#248281)

IEEE 754 requires FMA return zero with the same sign as `x * y` when
adding zero to a non-zero product that underflows to zero.

`fputil::generic::fma` returns `cast<OutType>(x * y + z)` when `z` is
zero. Different rounding modes can influence whether `x * y + z` returns
positive or negative zero. For example, `-0.0 + +0.0 == +0.0` with
default rounding. `+0.0 + -0.0 == -0.0` with `FE_DOWNWARD` rounding.
Both results are different to the IEEE 754 spec.

This change removes checking whether `z` is zero from the `x * y + z`
fast path. It rounds the exact `DyadicFloat` product `x * y` directly to
`OutType` when `z` is zero. This preserves the sign of underflowed
zeroes, avoids double rounding for narrowing FMAs, and respects all
rounding modes on software-emulated types such as `float16`.

Assisted-by: Antigravity with Gemini
DeltaFile
+80-1libc/test/src/math/smoke/FmaTest.h
+18-4libc/src/__support/FPUtil/generic/FMA.h
+98-52 files

LLVM/project 015e881 — llvm/lib/Target/AMDGPU AMDGPURegBankLegalizeRules.cpp AMDGPUInstructionSelector.cpp, llvm/test/CodeGen/AMDGPU llvm.amdgcn.load.to.lds.ll llvm.amdgcn.load.async.to.lds.ll

[AMDGPU][GlobalISel] Fix gisel `llvm.amdgcn.load.[async.]to.lds` crashes (#245024)

`llvm.amdgcn.load.[async.]to.lds` takes as argument `llvm_anyptr_ty`,
which when
- p1/p4, emits `global_load_lds_*`.
- p0, assumed to points to global addr-space, emits `global_load_lds_*`.
- Other AS except p7, not supported.
  - E.g. p5 is not supported, though hardware have `scratch_load_lds_*`.
  - DAG-isel is same here.

Current legal rule uses `VgprP1` which rejects p0/p4 and crashes.

Fix by switching to VgprPtr64, which accepts and preserves p0/p1/p4.

Fixes: https://github.com/llvm/llvm-project/issues/244451
Assisted-by: GPT-6.2-Sol
DeltaFile
+66-0llvm/test/CodeGen/AMDGPU/llvm.amdgcn.load.to.lds.ll
+66-0llvm/test/CodeGen/AMDGPU/llvm.amdgcn.load.async.to.lds.ll
+2-4llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
+1-1llvm/lib/Target/AMDGPU/AMDGPURegBankLegalizeRules.cpp
+135-54 files

FreeBSD/src 36c74bd — sys/netipsec udpencap.c

netipsec: Allow IPv6 extension headers before UDP encapsulated ESP

udp_ipsec_input() took the UDP header of an IPv6 packet to follow the
IPv6 header directly.  With a hop-by-hop, routing or destination options
header in front of it, the SA was still found by its SPI, but the port
check then read the extension header instead of the UDP header, and the
packet was dropped as having no SA.  The ESP protocol number was also
written to the next header field of the IPv6 header, not to the one that
led to the UDP header.

Derive the offset of the UDP header from the payload offset that
udp6_append() passes, and find the next header field with
ip6_get_prevhdr(), as ipsec6_input() does since 3d810fa261f1.

udp_ipsec_adjust_cksum() made the same assumption where it recomputes
the checksum of the inner TCP or UDP header
(net.inet.ipsec.natt_cksum_policy set to 1): it summed from the end of
the IPv6 header and stored the result at that offset, inside the
extension header.  Use the offset of the transport header that the

    [6 lines not shown]
DeltaFile
+5-6sys/netipsec/udpencap.c
+5-61 files

FreeBSD/ports 3d26d97 — games/vkquake Makefile pkg-message

games/vkquake: Improve pkg-message

Recent versions of the commercial game have redesigned localization,
making the last comment no longer necessary. Instead, explain how to
open the firewall for multiplayer :)

MFH:    2026Q4

(cherry picked from commit d87987ce334b1be6a421e6e93f80d22db8e0b5b4)
DeltaFile
+2-1games/vkquake/pkg-message
+1-0games/vkquake/Makefile
+3-12 files

LLVM/project 758d244 — llvm/lib/Transforms/Utils ValueMapper.cpp

ValueMapper: Don't cache identity mappings of globals and leaf constants (#247935)

With RF_NoModuleLevelChanges and no materializer, nothing reads identity
mappings back from the map, and globals and ConstantData always map to
themselves. Return them directly instead of adding map entries.

Instructions retired by opt -O3:
  tramp3d-v4, x86_64-linux:  -0.13%, -0.18% without likely_module_local
                             hints, -0.10% with -g
  CTMark geomean, arm64:     -0.01%, -0.06% with -g

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+9-6llvm/lib/Transforms/Utils/ValueMapper.cpp
+9-61 files

FreeBSD/ports d87987c — games/vkquake Makefile pkg-message

games/vkquake: Improve pkg-message

Recent versions of the commercial game have redesigned localization,
making the last comment no longer necessary. Instead, explain how to
open the firewall for multiplayer :)

MFH:    2026Q4
DeltaFile
+2-1games/vkquake/pkg-message
+1-0games/vkquake/Makefile
+3-12 files

LLVM/project 8d98de8 — llvm/tools/llvm-jitlink llvm-jitlink.h llvm-jitlink.cpp

[llvm-jitlink] Move platform-setup into its own method. NFC. (#248302)

We'll be adding more platform code in the future, so break this out of
Session's constructor to keep it readable.
DeltaFile
+92-94llvm/tools/llvm-jitlink/llvm-jitlink.cpp
+2-0llvm/tools/llvm-jitlink/llvm-jitlink.h
+94-942 files

FreeBSD/ports 361b600 — math/octave-forge-audio Makefile distinfo

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

FreeBSD/doc 89b07b4 — documentation/content/en/articles/freebsd-update-server _index.adoc

articles/freebsd-update-server: Pkgbase refresh

Reviewed by:            bcr, ziaee
With hat:               doceng@, re@
Discussed with:         cperciva
Differential Revision:  https://reviews.freebsd.org/D61505
DeltaFile
+303-0documentation/content/en/articles/freebsd-update-server/_index.adoc
+303-01 files

FreeBSD/doc 1f69cac — documentation/content/en/articles/distset-update-server _index.adoc _index.po, documentation/content/en/articles/freebsd-update-server _index.adoc _index.po

articles/freebsd-update-server: Move to distset-update-server

Move the article on building distribution set update server out of the
way so that the new article on building a base system package update
server can take it's place. Improve the warning at the top while here.

This article is unfortunately out of date and needs to be fixed because
distribution sets will be supported until 31 December 2029.

With hat:               doceng@, re@
Approved by:            cperciva
Differential Revision:  https://reviews.freebsd.org/D61655
DeltaFile
+0-1,040documentation/content/en/articles/freebsd-update-server/_index.po
+1,040-0documentation/content/en/articles/distset-update-server/_index.po
+0-640documentation/content/en/articles/freebsd-update-server/_index.adoc
+637-0documentation/content/en/articles/distset-update-server/_index.adoc
+1,677-1,6804 files

LLVM/project 8a365a0 — llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Passes LoadStoreVec.h, llvm/lib/Transforms/Vectorize/SandboxVectorizer/Passes LoadStoreVec.cpp

[SandboxVec][LoadStoreVec] Vectorize store chains whose loads have external uses

Loads that feed a store chain used to block vectorization whenever they
had more than one use. The store chain can now be vectorized even if the
loads have external uses. Once the scalar stores are erased, each
original load is rebuilt from the lanes it occupies in the new vector
load, and reinterpreted back to its original type if needed.

The legality check, canUnpack(), runs before any IR is created, so a load
whose lanes cannot be reinterpreted (for example, a non-integral pointer)
rejects the whole chain instead of leaving a partially rewritten block.
The unpacking itself is done by unpackIfNeeded() after the scalar stores
have been removed.

Co-authored-by: Cursor <cursoragent at cursor.com>
DeltaFile
+119-100llvm/test/Transforms/SandboxVectorizer/Passes/LoadStoreVec/mixed_types.ll
+54-22llvm/lib/Transforms/Vectorize/SandboxVectorizer/Passes/LoadStoreVec.cpp
+8-14llvm/test/Transforms/SandboxVectorizer/Passes/LoadStoreVec/store_seeds.ll
+6-3llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Passes/LoadStoreVec.h
+187-1394 files

LLVM/project f13580e — flang/include/flang/Optimizer/Dialect FortranVariableInterface.td, flang/lib/Optimizer/Analysis AliasAnalysis.cpp

[flang][NFCI] Allow FortranObjectViewOpInterface to report no source. (#248212)

`getViewSource` takes an operation result. A follow-up change will
implement the interface for `fir.unboxchar`, which returns a character
address and a length. Only the address has a view source.

Extend the interface contract so that a null `Value` means the queried
result has no view source. Update callers to handle that case.

Assisted-by: Codex
DeltaFile
+13-3flang/lib/Optimizer/Analysis/AliasAnalysis.cpp
+9-3flang/lib/Optimizer/Dialect/FIROps.cpp
+3-3flang/lib/Optimizer/Transforms/FIRToMemRef.cpp
+2-1flang/lib/Optimizer/OpenACC/Support/FIROpenACCTypeInterfaces.cpp
+2-1flang/include/flang/Optimizer/Dialect/FortranVariableInterface.td
+2-0flang/lib/Optimizer/Transforms/LoopInvariantCodeMotion.cpp
+31-111 files not shown
+33-117 files

LLVM/project fe0eeab — compiler-rt CMakeLists.txt, compiler-rt/lib/rtsan/tests rtsan_test_interceptors_posix.cpp

[compiler-rt] Pass --sysroot to tests when CMAKE_SYSROOT is set (#247993)

We weren't passing --sysroot to tests which could lead to mismatch
between runtime libraries and test binaries resulting in runtime
failures. This uncovered several issues in RTSan and Scudo when using
older glibc version.
DeltaFile
+11-4compiler-rt/lib/rtsan/tests/rtsan_test_interceptors_posix.cpp
+3-0compiler-rt/CMakeLists.txt
+1-0compiler-rt/lib/scudo/standalone/tests/wrappers_c_test.cpp
+15-43 files