LLVM/project f613eadllvm/lib/Target/AMDGPU AMDGPUCallLowering.cpp, llvm/test/CodeGen/AMDGPU isel-amdgcn-cs-chain-intrinsic-w64.ll isel-amdgcn-cs-chain-intrinsic-w32.ll

AMDGPU/GlobalISel: Fix cs_chain use of constrainOperandRegClass (#212248)

Make a copy before constraining to avoid setting register class on
a register that can be defined by generic opcode.
DeltaFile
+139-0llvm/test/CodeGen/AMDGPU/isel-amdgcn-cs-chain-intrinsic-w64.ll
+131-0llvm/test/CodeGen/AMDGPU/isel-amdgcn-cs-chain-intrinsic-w32.ll
+63-63llvm/test/CodeGen/AMDGPU/isel-amdgpu-cs-chain-intrinsic-dyn-vgpr-w32.ll
+18-18llvm/test/CodeGen/AMDGPU/amdgcn-cs-chain-intrinsic-dyn-vgpr-w32.ll
+8-6llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-amdgcn-cs-chain.ll
+3-1llvm/lib/Target/AMDGPU/AMDGPUCallLowering.cpp
+362-886 files

FreeBSD/ports ab17ba6www/go-anubis distinfo pkg-plist

www/go-anubis: update to 1.26.2

- https://github.com/TecharoHQ/anubis/releases/tag/v1.26.2

Sponsored by:   SkunkWerks, GmbH
DeltaFile
+3-3www/go-anubis/distinfo
+3-0www/go-anubis/pkg-plist
+1-1www/go-anubis/Makefile
+7-43 files

LLVM/project 7e607a0llvm/lib/Transforms/InstCombine InstCombineSelect.cpp, llvm/test/Transforms/InstCombine select-masked_load.ll

[InstCombine] Copy metadata in select-to-masked.load fold (#211965)

Preserve AA metadata when folding select of masked.load to masked.load.
We cannot preserve value metadata, as it may not be valid for the new
passthru.

Fixes #209022.
 
Assisted-by: Claude
DeltaFile
+32-0llvm/test/Transforms/InstCombine/select-masked_load.ll
+8-6llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
+40-62 files

FreeBSD/src a46c92asys/dev/sound/pcm dsp.c

sound: Propagate error value from dsp_make_dev()

It is better to propagate it to pcm_register(), and later to the device
drivers, than to simply ignore it and return ENXIO.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
DeltaFile
+1-1sys/dev/sound/pcm/dsp.c
+1-11 files

LLVM/project 6ca0e4amlir/lib/Dialect/OpenMP/IR OpenMPDialect.cpp, mlir/lib/Target/LLVMIR/Dialect/OpenMP OpenMPToLLVMIRTranslation.cpp

[mlir][OpenMP] Fix update of linear iteration variables (#183800)

The final value of a linear iteration variable must be the loop
limit_value + step. Before this patch it was limit_value.

Fixes #170784.
DeltaFile
+61-0mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
+40-0mlir/test/Target/LLVMIR/openmp-llvm.mlir
+29-0mlir/test/Target/LLVMIR/openmp-llvm-invalid.mlir
+5-7mlir/test/Target/LLVMIR/openmp-simd-ordered.mlir
+5-7mlir/test/Target/LLVMIR/openmp-wsloop-simd-ordered.mlir
+10-0mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
+150-141 files not shown
+151-167 files

LLVM/project 5ef372bflang/include/flang/Optimizer/Passes CommandLineOpts.h Pipelines.h, flang/lib/Optimizer/Passes CommandLineOpts.cpp Pipelines.cpp

[flang] Wire allocation-placement into the optimizer pipeline (experimental)

Add a hidden -enable-allocation-placement flag that, when set, replaces the
stack-arrays and memory-allocation-opt passes in the default FIR optimizer
pipeline with the unified allocation-placement pass. The flag is off by
default, so the legacy passes remain the default path and behavior is
unchanged.

When enabled, the pass runs with its default byte-size thresholds; the
-fstack-arrays strategy is forwarded through the new stackArrays option.
DeltaFile
+21-0flang/test/Fir/allocation-placement-pipeline.fir
+16-0flang/lib/Optimizer/Passes/CommandLineOpts.cpp
+11-1flang/lib/Optimizer/Passes/Pipelines.cpp
+12-0flang/include/flang/Optimizer/Passes/CommandLineOpts.h
+2-2flang/lib/Optimizer/Transforms/AllocationPlacement.cpp
+2-0flang/include/flang/Optimizer/Passes/Pipelines.h
+64-36 files

LLVM/project 74e8cb2flang/include/flang/Optimizer/Transforms Passes.td, flang/lib/Optimizer/Passes CommandLineOpts.cpp

[flang] Remove legacy stack-arrays and memory-allocation-opt passes

The unified allocation-placement pass now supersedes both the heap-to-stack
stack-arrays pass and the stack-to-heap memory-allocation-opt pass, and is the
default in the FIR optimizer pipeline. Remove the two legacy passes: their
TableGen definitions, the MemoryAllocation.cpp source, the memory-allocation-opt
command-line options, the enable-allocation-placement fallback switch, and the
addMemoryAllocationOpt pipeline helper. The pass-only portions of
StackArrays.cpp are dropped while its analysis and rewrite pattern, now shared
with allocation-placement, are kept.

The legacy tests are retargeted onto allocation-placement to show it reproduces
both prior behaviors: the stack-arrays tests use "stack-arrays=true", and the
memory-allocation-opt tests use the default policy (runtime-sized and big
constant-size temporaries go on the heap).
DeltaFile
+0-150flang/lib/Optimizer/Transforms/MemoryAllocation.cpp
+0-71flang/lib/Optimizer/Transforms/StackArrays.cpp
+0-28flang/include/flang/Optimizer/Transforms/Passes.td
+0-22flang/lib/Optimizer/Passes/CommandLineOpts.cpp
+12-5flang/test/Fir/memory-allocation-opt.fir
+5-11flang/test/Fir/allocation-placement-pipeline.fir
+17-28713 files not shown
+33-32919 files

LLVM/project d3058caflang/docs fstack-arrays.md, flang/include/flang/Optimizer/Passes CommandLineOpts.h

[flang] Enable allocation-placement pass by default

Make the unified allocation-placement pass the default in the FIR optimizer
pipeline in place of the legacy stack-arrays and memory-allocation-opt passes,
by defaulting -enable-allocation-placement to true. Passing
-enable-allocation-placement=false restores the legacy passes for comparison.

Add a -disable-allocation-placement switch that skips the pass entirely (wired
through addAllocationPlacement like the other optimizer passes), so codegen
tests can opt out of placement policy independently of the legacy fallback.

Update the pipeline-dump tests to expect AllocationPlacement, and disable the
pass in the alloca/allocmem codegen tests (alloc.fir, coordinateof.fir) so they
keep testing lowering rather than placement policy. Document the unified pass,
its policy, thresholds, and options in fstack-arrays.md.
DeltaFile
+64-0flang/docs/fstack-arrays.md
+10-3flang/lib/Optimizer/Passes/CommandLineOpts.cpp
+8-5flang/lib/Optimizer/Passes/Pipelines.cpp
+6-6flang/test/Fir/allocation-placement-pipeline.fir
+6-2flang/include/flang/Optimizer/Passes/CommandLineOpts.h
+4-2flang/test/Fir/alloc.fir
+98-185 files not shown
+104-2311 files

LLVM/project 477d4e6flang/include/flang/Optimizer/Transforms AllocationPlacementPolicy.h Passes.td, flang/lib/Optimizer/Transforms AllocationPlacement.cpp

[flang] Add policy-driven allocation-placement pass

Introduce a new function-level pass, allocation-placement, that unifies the
stack/heap placement decisions currently split between the stack-arrays and
memory-allocation-opt passes. For each array allocation it consults a policy
to decide whether it should live on the stack (fir.alloca) or the heap
(fir.allocmem) and rewrites it accordingly, reusing fir::replaceAllocas for
stack-to-heap and the StackArrays analysis/rewrite for heap-to-stack (so
heap-to-stack only happens where it is provably safe).

The default policy (AllocationPlacementPolicy.h) is threshold-driven:
  - small constant-size arrays go on the stack within a per-function stack
    budget, otherwise on the heap;
  - big constant-size arrays: user variables stay on the stack, temporaries
    go on the heap;
  - runtime-sized arrays go on the heap;
  - an aggressive mode places all arrays on the stack (best effort).
User variables are distinguished from compiler temporaries via the presence
of a uniqued name. A hook lets downstream users override the thresholds per

    [4 lines not shown]
DeltaFile
+324-0flang/lib/Optimizer/Transforms/AllocationPlacement.cpp
+90-0flang/include/flang/Optimizer/Transforms/AllocationPlacementPolicy.h
+84-0flang/test/Transforms/allocation-placement.fir
+29-0flang/test/Transforms/allocation-placement-budget.fir
+26-0flang/include/flang/Optimizer/Transforms/Passes.td
+24-0flang/test/Transforms/allocation-placement-stack-arrays-mode.fir
+577-02 files not shown
+586-08 files

LLVM/project 3859e78flang/lib/Optimizer/Transforms StackArrays.h

add note about pointer invalidation
DeltaFile
+5-1flang/lib/Optimizer/Transforms/StackArrays.h
+5-11 files

LLVM/project f029030flang/lib/Optimizer/Transforms StackArrays.h StackArrays.cpp

[flang][NFC] Extract StackArrays analysis and rewrite into a header

Move InsertionPoint, StackArraysAnalysisWrapper, and AllocMemConversion
out of the anonymous namespace in StackArrays.cpp into a new
StackArrays.h header (in namespace fir), so the "which fir.allocmem can
be safely moved to the stack, and where" analysis and the heap-to-stack
rewrite pattern can be reused by other passes.

The dataflow internals (AllocationState, LatticePoint, AllocationAnalysis),
the command-line options, and all method definitions remain in the .cpp.
No functional change intended.
DeltaFile
+154-0flang/lib/Optimizer/Transforms/StackArrays.h
+16-129flang/lib/Optimizer/Transforms/StackArrays.cpp
+170-1292 files

FreeBSD/src 6901cbbsys/fs/nfs nfs_commonkrpc.c

nfs_commonkrpc.c: Handle NFSERR_DELAY for Sequence correctly

Unlike RFC5661 (the original NFSv4.1 RFC), RFC8881 specifies
that a NFS4ERR_DELAY reply to the SEQUENCE operation requires
a reply using the same slot/sequence#.

This patch fixes handling of this case, so it conforms to
RFC8881.

Reported by:    J. David (j.david.lists at gmail.com)
Tested by:      J. David (j.david.lists at gmail.com)
MFC after:      1 week
DeltaFile
+14-1sys/fs/nfs/nfs_commonkrpc.c
+14-11 files

FreeBSD/ports f853d4fdevel/dbus-tcl Makefile distinfo

devel/dbus-tcl: update to 4.2
DeltaFile
+5-4devel/dbus-tcl/Makefile
+3-3devel/dbus-tcl/distinfo
+8-72 files

FreeBSD/ports a891139devel/llvm-devel pkg-plist Makefile.RUNTIMES

devel/llvm-devel: pre llvm23 branch snapshot

This is the last commit before the version of main was bumped to 24.
It is intended as a standin for an LLVM 23 release candidate port while
we wait for tarballs from RC1 or RC2.

Sponsored by:   DARPA, AFRL
DeltaFile
+461-105devel/llvm-devel/pkg-plist
+11-0devel/llvm-devel/Makefile.RUNTIMES
+8-1devel/llvm-devel/Makefile.COMMANDS
+3-3devel/llvm-devel/Makefile.snapshot
+3-3devel/llvm-devel/distinfo
+5-0devel/llvm-devel/Makefile
+491-1123 files not shown
+496-1169 files

LLVM/project 919919cllvm/utils/gn/secondary/lldb/source/Plugins/Platform/Windows BUILD.gn

[gn] port 98d41d2f75395a (PlatformWindowsProperties.td) (#212257)
DeltaFile
+13-0llvm/utils/gn/secondary/lldb/source/Plugins/Platform/Windows/BUILD.gn
+13-01 files

LLVM/project 8a3d15butils/bazel/llvm-project-overlay/lldb/source/Plugins BUILD.bazel

[Bazel] Fixes 98d41d2 (#212244)

This fixes 98d41d2f75395ab1f91198f2493cff62a33b80c1 (#212126).

Buildkite error link:
https://buildkite.com/llvm-project/upstream-bazel/builds?commit=98d41d2f75395ab1f91198f2493cff62a33b80c1

Co-authored-by: Google Bazel Bot <google-bazel-bot at google.com>
DeltaFile
+13-0utils/bazel/llvm-project-overlay/lldb/source/Plugins/BUILD.bazel
+13-01 files

NetBSD/pkgsrc bHhutVMdoc CHANGES-2026 TODO

   doc: Updated devel/compiledb-go to 1.6.2
VersionDeltaFile
1.4782+2-1doc/CHANGES-2026
1.27641+1-2doc/TODO
+3-32 files

NetBSD/pkgsrc 7RDvD1qdevel/compiledb-go distinfo Makefile

   compiledb-go: update to 1.6.2.

   fix: report source commands without -c
   fix: add normalizeCompilerArgs for special args(-target xxx)
VersionDeltaFile
1.10+4-4devel/compiledb-go/distinfo
1.27+2-3devel/compiledb-go/Makefile
+6-72 files

NetBSD/pkgsrc DSV5wIGdoc CHANGES-2026 TODO

   doc: Updated devel/ast-grep to 0.45.0
VersionDeltaFile
1.4781+2-1doc/CHANGES-2026
1.27640+1-2doc/TODO
+3-32 files

NetBSD/pkgsrc vnSLsTmdevel/ast-grep distinfo cargo-depends.mk

   ast-grep: update to 0.45.0.

   0.45.0

       feat: deprecate the sg command #2843
       fix: avoid Defender false positive for Windows sg #2842
       chore(deps): update dependency @napi-rs/cli to v3.7.4 #2834
       chore(deps): update dependency oxlint to v1.75.0 #2838
       chore(deps): update actions/setup-node action to v7 #2810
       chore(deps): update actions/setup-python action to v7 #2829
       fix: specify correct MSRV in Cargo.toml #2837
       Revert "chore(deps): update dependency typescript to v7 (#2795)" #2831
       chore(deps): update astral-sh/setup-uv action to v8.3.2 #2790
       chore(deps): update dependency typescript to v7 #2795
       chore(deps): update rust crate thiserror to v2.0.19 #2819
       chore(deps): update dependency @napi-rs/cli to v3.7.3 #2801
       chore(deps): update dependency web-tree-sitter to v0.26.11 #2802
       chore(deps): update rust crate target-triple to v1.0.1 #2817
       chore(deps): update dependency oxlint to v1.74.0 #2809

    [10 lines not shown]
VersionDeltaFile
1.86+253-289devel/ast-grep/distinfo
1.81+83-95devel/ast-grep/cargo-depends.mk
1.87+5-2devel/ast-grep/Makefile
+341-3863 files

FreeBSD/src cf3eeebkrb5/include Makefile, krb5/util/profile Makefile Makefile.profile

krb5: Install profile.h again

Commit 1876de606eb8 exposed missing symbols that the port security/krb5
installed that the base system did not install. Part of the solution
was to make libprofile.so private (not libprofile.a) just as the port
does, Red Hat Enterprise Linux does, and as installing MIT KRB5 by hand
does. The actual fix for this was to put symbols and their corresponding
functions into the correct librarires, i.e. libkrb5.so and othes, just
as the port, Red Hat, and manually installed via tarball do.

Unfortunately INTERNALLIB disables the include of bsd.incs.mk and the
install of header files. This is still needed to install profile.h into
/usr/include (just as the port installs it into ${LOCALBASE}/include
and RHEL installs it in /usr/include). This commit fixes this by
installing profile.h into /usr/include from the krb5/include Makfile.

Reported by:    fluffy
Tested by:      fluffy
Reviewed by:    fluffy

    [3 lines not shown]
DeltaFile
+1-26krb5/util/profile/Makefile
+26-0krb5/util/profile/Makefile.profile
+11-3krb5/include/Makefile
+38-293 files

LLVM/project 4fbefd6llvm/lib/Transforms/Scalar ConstraintElimination.cpp, llvm/test/Transforms/ConstraintElimination partial-decomposition.ll large-system-growth.ll

[ConstraintElim] Skip decomposition if precondition does not hold. (#212140)

Currently we fully decompose expressions, collect all preconditions and
then bail out if any precondition is false. This means we miss out on
simplifications in cases where the precondition does not hold, but we could 
still reason about the un-decomposed sub-expression.

This patch updates `decompose` to take the constraint system as argument
instead and eagerly check preconditions. If the precondition does not hold, 
we don't decompose the sub-expression and don't further recurse, but simply
treat the sub-expression as variable.

This improves results in some cases
(https://github.com/dtcxzyw/llvm-opt-benchmark-nightly/pull/794)
and is also slightly cheaper (or neutral) in most cases compile-time
wise, as we cut off decomposition before recursing further. The number of queries
for preconditions overall should stay the same

PR: https://github.com/llvm/llvm-project/pull/212140
DeltaFile
+66-70llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
+10-20llvm/test/Transforms/ConstraintElimination/partial-decomposition.ll
+4-7llvm/test/Transforms/ConstraintElimination/large-system-growth.ll
+1-2llvm/test/Transforms/ConstraintElimination/induction-condition-in-loop-exit-postinc.ll
+1-2llvm/test/Transforms/ConstraintElimination/sext-unsigned-predicates.ll
+82-1015 files

NetBSD/pkgsrc JKZfhFEdoc CHANGES-pkgsrc-2026Q2

   doc: update for tickets 7192, 7193, 7196
VersionDeltaFile
1.1.2.8+10-1doc/CHANGES-pkgsrc-2026Q2
+10-11 files

NetBSD/pkgsrc qKI76Splang/gcc10 Makefile distinfo, lang/gcc10-libs Makefile

   Pullup ticket #7193 - requested by he
   lang/gcc10: Bug fix

   Revisions pulled up:
   - lang/gcc10-libs/Makefile                                      1.13
   - lang/gcc10/Makefile                                           1.28
   - lang/gcc10/distinfo                                           1.21
   - lang/gcc10/patches/patch-gcc_config_rs6000_netbsd.h           1.1

   ---
      Module Name:      pkgsrc
      Committed By:     he
      Date:             Tue Jul 21 09:03:21 UTC 2026

      Modified Files:
        pkgsrc/lang/gcc10: Makefile distinfo
        pkgsrc/lang/gcc10-libs: Makefile
      Added Files:
        pkgsrc/lang/gcc10/patches: patch-gcc_config_rs6000_netbsd.h

    [14 lines not shown]
VersionDeltaFile
1.1.2.2+100-0lang/gcc10/patches/patch-gcc_config_rs6000_netbsd.h
1.1.2.1+0-100lang/gcc10/patches/patch-gcc_config_rs6000_netbsd.h
1.27.12.1+2-2lang/gcc10/Makefile
1.12.10.1+2-2lang/gcc10-libs/Makefile
1.20.12.1+2-1lang/gcc10/distinfo
+106-1055 files

NetBSD/pkgsrc yKUm5L2lang/gcc12 Makefile distinfo, lang/gcc12-libs Makefile

   Pullup ticket #7192 - requested by he
   lang/gcc12: Bug fix

   Revisions pulled up:
   - lang/gcc12-libs/Makefile                                      1.13
   - lang/gcc12/Makefile                                           1.15
   - lang/gcc12/distinfo                                           1.18
   - lang/gcc12/patches/patch-gcc_config_rs6000_netbsd.h           1.1

   ---
      Module Name:      pkgsrc
      Committed By:     he
      Date:             Sat Jul 18 09:12:39 UTC 2026

      Modified Files:
        pkgsrc/lang/gcc12: Makefile distinfo
        pkgsrc/lang/gcc12-libs: Makefile
      Added Files:
        pkgsrc/lang/gcc12/patches: patch-gcc_config_rs6000_netbsd.h

    [14 lines not shown]
VersionDeltaFile
1.1.2.2+100-0lang/gcc12/patches/patch-gcc_config_rs6000_netbsd.h
1.1.2.1+0-100lang/gcc12/patches/patch-gcc_config_rs6000_netbsd.h
1.12.2.1+2-2lang/gcc12-libs/Makefile
1.14.2.1+2-2lang/gcc12/Makefile
1.17.2.1+2-1lang/gcc12/distinfo
+106-1055 files

LLVM/project a9a7323flang/lib/Lower/OpenMP Clauses.cpp

Update comment
DeltaFile
+5-5flang/lib/Lower/OpenMP/Clauses.cpp
+5-51 files

LLVM/project 1ef1bb2llvm/utils/TableGen/Basic DirectiveEmitter.cpp

Add comment explaning name conflicts
DeltaFile
+9-0llvm/utils/TableGen/Basic/DirectiveEmitter.cpp
+9-01 files

LLVM/project be2e6bcllvm/lib/Target/AMDGPU GCNSchedStrategy.cpp, llvm/test/CodeGen/AMDGPU rewrite-mfma-single-exit-copy.ll mfma-no-multiple-copies.mir

[AMDGPU] RewriteMFMAFormStage: single exit copy for same-block uses (#209179)

When multiple VGPR-requiring uses of an MFMA dst are in the
same block as the MFMA, share a single AGPR->VGPR copy placed
before the earliest use, instead of creating one per use.
DeltaFile
+632-0llvm/test/CodeGen/AMDGPU/rewrite-mfma-single-exit-copy.ll
+84-0llvm/test/CodeGen/AMDGPU/mfma-no-multiple-copies.mir
+24-12llvm/lib/Target/AMDGPU/GCNSchedStrategy.cpp
+740-123 files

OpenBSD/xenocara hgxsMbcapp/xlockmore/xlock privsep.c

   Convert imsg_get to imsgbuf_get.

   OK matthieu@ tb@
VersionDeltaFile
1.6+4-4app/xlockmore/xlock/privsep.c
+4-41 files

LLVM/project dca6611llvm/lib/Target/AMDGPU AMDGPUCallLowering.cpp, llvm/test/CodeGen/AMDGPU isel-amdgcn-cs-chain-intrinsic-w64.ll isel-amdgcn-cs-chain-intrinsic-w32.ll

AMDGPU/GlobalISel: Fix cs_chain use of constrainOperandRegClass

Make a copy before constraining to avoid setting register class on
a register that can be defined by generic opcode.
DeltaFile
+139-0llvm/test/CodeGen/AMDGPU/isel-amdgcn-cs-chain-intrinsic-w64.ll
+131-0llvm/test/CodeGen/AMDGPU/isel-amdgcn-cs-chain-intrinsic-w32.ll
+63-63llvm/test/CodeGen/AMDGPU/isel-amdgpu-cs-chain-intrinsic-dyn-vgpr-w32.ll
+18-18llvm/test/CodeGen/AMDGPU/amdgcn-cs-chain-intrinsic-dyn-vgpr-w32.ll
+8-6llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-amdgcn-cs-chain.ll
+3-1llvm/lib/Target/AMDGPU/AMDGPUCallLowering.cpp
+362-886 files