LLVM/project cc83c1fllvm/lib/CodeGen/SelectionDAG DAGCombiner.cpp, llvm/test/CodeGen/X86 vector-shuffle-combining-avx512bwvl.ll

[SelectionDAG] Fold subvector inserts into concat operands

Push insert_subvector into the containing CONCAT_VECTORS operand when the insertion is wholly contained there.

AI note: an LLM generated the code and the test, I've read them

Co-Authored-By: OpenAI Codex <codex at openai.com>
DeltaFile
+8-36llvm/test/CodeGen/X86/vector-shuffle-combining-avx512bwvl.ll
+34-10llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+42-462 files

LLVM/project 107f263llvm/lib/CodeGen/SelectionDAG DAGCombiner.cpp, llvm/test/CodeGen/AArch64 sve-load-store-legalisation.ll

scalable vector test updates
DeltaFile
+772-772llvm/test/CodeGen/RISCV/rvv/vector-interleave.ll
+4-20llvm/test/CodeGen/AArch64/sve-load-store-legalisation.ll
+4-2llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+780-7943 files

LLVM/project e14735cllvm/lib/CodeGen/SelectionDAG DAGCombiner.cpp

Make this work on scalable vectors
DeltaFile
+12-15llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+12-151 files

LLVM/project 430b2ballvm/test/CodeGen/AArch64 sve-fixed-vector-llrint.ll sve-fixed-vector-lrint.ll, llvm/test/CodeGen/AMDGPU bf16.ll

[SelectionDAG] Fold extracts spanning concat operands

Factor the extract_subvector-of-CONCAT_VECTORS logic and handle
extracts that cover multiple whole concat operands by rebuilding a
smaller concat directly.

AI note: an LLM generated the code and the test, I've read them

Co-Authored-By: OpenAI Codex <codex at openai.com>
DeltaFile
+992-904llvm/test/CodeGen/AMDGPU/bf16.ll
+187-229llvm/test/CodeGen/AArch64/sve-fixed-vector-llrint.ll
+187-229llvm/test/CodeGen/AArch64/sve-fixed-vector-lrint.ll
+196-176llvm/test/CodeGen/X86/vector-interleaved-store-i8-stride-6.ll
+142-140llvm/test/CodeGen/X86/vector-interleaved-store-i16-stride-6.ll
+120-120llvm/test/CodeGen/X86/vector-interleaved-store-i32-stride-6.ll
+1,824-1,79811 files not shown
+2,204-2,27917 files

FreeBSD/ports 60b22ffaudio/qmidiarp Makefile distinfo

audio/qmidiarp: update 0.7.1 → 0.7.4
DeltaFile
+12-28audio/qmidiarp/Makefile
+3-3audio/qmidiarp/distinfo
+0-5audio/qmidiarp/pkg-plist
+15-363 files

FreeBSD/ports 4b38587misc/py-xformers Makefile distinfo, misc/py-xformers/files patch-pyproject.toml

misc/py-xformers: update 0.0.25 → 0.0.35
DeltaFile
+9-7misc/py-xformers/Makefile
+10-0misc/py-xformers/files/patch-pyproject.toml
+3-3misc/py-xformers/distinfo
+0-4misc/py-xformers/pkg-plist
+22-144 files

FreeBSD/ports d511aebmath/py-chaospy Makefile distinfo

math/py-chaospy: update 4.3.11 → 4.3.21
DeltaFile
+5-5math/py-chaospy/Makefile
+3-3math/py-chaospy/distinfo
+8-82 files

FreeBSD/ports f3d8dcamath/py-numpoly Makefile distinfo

math/py-numpoly: update 1.2.3 → 1.3.9
DeltaFile
+21-5math/py-numpoly/Makefile
+3-3math/py-numpoly/distinfo
+24-82 files

FreeBSD/ports 693f3fbfinance/py-python-binance Makefile distinfo

finance/py-python-binance: update 1.0.22 → 1.0.36
DeltaFile
+10-5finance/py-python-binance/Makefile
+3-3finance/py-python-binance/distinfo
+13-82 files

FreeBSD/ports 1c38d6bgraphics/magnum-examples Makefile, graphics/magnum-integration Makefile

misc/dartsim: update 6.16.8 → 6.17.0
DeltaFile
+26-26misc/dartsim/pkg-plist
+3-3misc/dartsim/distinfo
+2-2misc/dartsim/Makefile
+1-1graphics/magnum-integration/Makefile
+1-1graphics/magnum-examples/Makefile
+33-335 files

LLVM/project b8cb361llvm/lib/CodeGen/SelectionDAG DAGCombiner.cpp

[SelectionDAG] Fold nonzero extract-of-extract indices

Generalize the extract_subvector-of-extract_subvector fold to compose
nonzero indices instead of only handling an outer index of zero.

AI note: an LLM generated the code and the test, I've read them

Co-Authored-By: OpenAI Codex <codex at openai.com>
DeltaFile
+8-8llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+8-81 files

LLVM/project 7b907d5clang/lib/Driver/ToolChains Flang.cpp Flang.h

clang/AMDGPU: Pass BoundArch through device libs handling

Pre-work to consolidate target identification for future target
option bug fixes. Also requires updating flang to match recent
clang changes.

Co-authored-by: Claude Sonnet 4 <noreply at anthropic.com>
DeltaFile
+14-10clang/lib/Driver/ToolChains/Flang.cpp
+13-3clang/lib/Driver/ToolChains/Flang.h
+9-6clang/lib/Driver/ToolChains/HIPAMD.cpp
+9-5clang/lib/Driver/ToolChains/AMDGPU.cpp
+5-8clang/lib/Driver/ToolChains/AMDGPUOpenMP.cpp
+2-2clang/lib/Driver/ToolChains/HIPSPV.cpp
+52-345 files not shown
+57-3911 files

LLVM/project 232cfb2clang/lib/Driver/ToolChains Darwin.cpp AMDGPU.cpp

clang: Add BoundArch argument to addClangTargetOptions

addClangTargetOptions already has an OffloadKind argument,
but it kind of doesn't make sense for any function to know the
OffloadKind, but not the associated BoundArch.

The current process is kind of convoluted. TranslateArgs
synthesizes a -mcpu argument from BoundArch, and later
addClangTargetOptions re-parses that -mcpu argument each
time it wants the architecture. Add this argument so this
can be cleaned up in a future change.

Co-authored-by: Claude Sonnet 4 <noreply at anthropic.com>
DeltaFile
+9-5clang/lib/Driver/ToolChains/Darwin.cpp
+7-5clang/lib/Driver/ToolChains/AMDGPU.cpp
+7-3clang/lib/Driver/ToolChains/Darwin.h
+6-3clang/lib/Driver/ToolChains/AMDGPU.h
+5-3clang/lib/Driver/ToolChains/Hexagon.h
+5-3clang/lib/Driver/ToolChains/XCore.h
+39-2248 files not shown
+115-5654 files

LLVM/project 05d4fd0clang/include/clang/Basic BuiltinsAMDGPUDocs.td

[NFC][Doc] Fix non-existing reference in BuiltinsAMDGPUDocs.td (#201889)
DeltaFile
+2-2clang/include/clang/Basic/BuiltinsAMDGPUDocs.td
+2-21 files

LLVM/project 4a80006llvm/lib/CodeGen/SelectionDAG SelectionDAG.cpp

Review feedback I forgot to push lol
DeltaFile
+2-2llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+2-21 files

LLVM/project 0f19139llvm/lib/CodeGen/SelectionDAG SelectionDAG.cpp

Review feedback
DeltaFile
+4-8llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+4-81 files

LLVM/project 6e46d9ellvm/lib/CodeGen/SelectionDAG SelectionDAG.cpp, llvm/test/CodeGen/X86 freeze-vector.ll

[SelectionDAG] Track demanded select elements in noundef checks

Propagate demanded elements through to the two arms of a select, and
check the condition with or without demanded elements depending on if
it's a vector or not.

AI note: an LLM generated the code and the test, I've read them

Co-Authored-By: OpenAI Codex <codex at openai.com>
DeltaFile
+17-2llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+0-11llvm/test/CodeGen/X86/freeze-vector.ll
+17-132 files

LLVM/project 797eef5llvm/lib/CodeGen/SelectionDAG SelectionDAG.cpp

Review style etc.
DeltaFile
+9-10llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+9-101 files

LLVM/project 98c9c85llvm/lib/CodeGen/SelectionDAG SelectionDAG.cpp, llvm/test/CodeGen/X86 freeze-vector.ll

[SelectionDAG] Track bitcast demanded elements in noundef tests

Bitcasts preserve undef/poison status, but vector bitcasts can change
which source lanes cover a demanded result lane. Map the demanded
element mask through fixed-length vector bitcasts before checking the
source where possible.

AI note: an LLM generated the code and the test, I've read them

Co-Authored-By: OpenAI Codex <codex at openai.com>
DeltaFile
+12-36llvm/test/CodeGen/X86/freeze-vector.ll
+41-0llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+53-362 files

FreeBSD/src 641e8e3contrib/telnet/libtelnet getent.c, include stdlib.h

Revert "libc: Constify the getcap API"

This broke cross-building on Linux and macOS.

This reverts commit 823d00b2d447247f1c5860e3bbc61f6fd19a70e5.
DeltaFile
+8-10lib/libc/gen/getcap.c
+4-4lib/libc/gen/getcap.3
+6-1libexec/getty/subr.c
+3-3include/stdlib.h
+3-3contrib/telnet/libtelnet/getent.c
+3-3usr.bin/cap_mkdb/cap_mkdb.c
+27-245 files not shown
+34-3111 files

LLVM/project 44ef831clang/include/clang/AST TypeBase.h, clang/lib/AST AttrImpl.cpp

[clang][AST] Hash `AttributedType`'s `Attr` by Arguments (#200961)

https://github.com/llvm/llvm-project/pull/108631 added
`ID.AddPointer(attr)` to `AttributedType::Profile`, which turned the
`ID` into a pointer-identity key. This inhibits deduplication of
attributed types (such as types with `_Nonnull/_Nullable` attributes).
Such duplications can lead to significant increases in pcm/pch sizes.

This PR adds the arguments of the attributes to the folding set ID, so
that the content of the argument is taken into account when computing
the ID in addition to the existing inputs. The implementation teaches
tablegen to generate the `profile` method for each attribute, similar to
how we generate methods to check equivalence. This way, the argument
contents are handled automatically. Additionally, an attribute can have
an escape hatch to add its own customized profile method, through the
`profileFn` tablegen field, in case something special is needed.

Assisted-by: claude-opus-4.7

Fixes rdar://170586474.
DeltaFile
+84-0clang/lib/AST/AttrImpl.cpp
+43-0clang/utils/TableGen/ClangAttrEmitter.cpp
+18-0clang/test/AST/attributed-type-dedup-nullability.m
+15-0clang/test/AST/attributed-type-dedup-swift-attr.m
+15-0clang/test/AST/attributed-type-dedup-pcs.c
+5-10clang/include/clang/AST/TypeBase.h
+180-109 files not shown
+252-1615 files

LLVM/project 31b57b0llvm/lib/CodeGen/SelectionDAG SelectionDAG.cpp, llvm/test/CodeGen/X86 freeze-vector.ll

[SelectionDAG] Track demanded concat elements in noundef checks

Teach isGuaranteedNotToBeUndefOrPoison to distribute fixed-length
demanded element masks across CONCAT_VECTORS operands. This is part of
the series of fixes needed to resolve a SelectionDAG hang by making it
possible to prove certain values don't need to be frozen.

AI note: an LLM generated the code and the test, I've read them

Co-Authored-By: OpenAI Codex <codex at openai.com>
DeltaFile
+23-0llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+4-12llvm/test/CodeGen/X86/freeze-vector.ll
+27-122 files

LLVM/project 56a4aa0llvm/lib/CodeGen/SelectionDAG SelectionDAG.cpp

Review comments
DeltaFile
+4-9llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+4-91 files

LLVM/project b764858flang/lib/Lower/OpenMP DataSharingProcessor.h, flang/lib/Lower/Support Utils.cpp PrivateReductionUtils.cpp

[Flang][OpenMP] Heap-allocate GPU dynamic private arrays in distribute parallel do (#200841)

Fixes GPU offload crashes for Fortran automatic arrays privatised in
target teams distribute parallel do.

For delayed privatisation on GPU, dynamically sized boxed array privates
are now routed through the existing heap-allocation path, with matching
cleanup emitted in the privatiser dealloc region. This avoids lowering
such arrays to runtime-sized scratch allocas whose descriptors can be
captured across the distribute callback boundary.

Fixes [#2419](https://github.com/ROCm/llvm-project/issues/2419).
Co-authored-by: Codex <codex at openai.com>
DeltaFile
+54-0flang/test/Lower/OpenMP/DelayedPrivatization/target-teams-distribute-private-adjustable-array.f90
+38-7flang/lib/Lower/Support/Utils.cpp
+33-0flang/test/Lower/OpenMP/DelayedPrivatization/target-teams-nested-distribute-private-adjustable-array.f90
+32-0flang/test/Lower/OpenMP/DelayedPrivatization/target-teams-distribute-parallel-do-simd-private-adjustable-array.f90
+9-5flang/lib/Lower/Support/PrivateReductionUtils.cpp
+5-0flang/lib/Lower/OpenMP/DataSharingProcessor.h
+171-124 files not shown
+181-1510 files

FreeBSD/src 2404d8dsys/i386/linux linux_ptrace_machdep.c

linux: Drop unneeded PHOLDs

There's no point in acquiring a hold if the proc lock isn't going to be
dropped.

Reviewed by:    kib
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D57468
DeltaFile
+0-4sys/i386/linux/linux_ptrace_machdep.c
+0-41 files

LLVM/project 681fc74mlir/include/mlir/Dialect/LLVMIR ROCDLOps.td ROCDLEnums.td, mlir/lib/Dialect/LLVMIR/IR ROCDLDialect.cpp

[mlir][ROCDL] Move ROCDL intrinsic enum immargs to enums (#198875)

In many cases, a "i32" `immarg` arguhment to an intrinsic in the AMDGPU
backend actually corresponds directly to some enumerated set of values
in the backend, which we have to smuggle through an I32. This makes the
MLIR forms of intrinsics less readable and means that people either have
to use the `amdgpu` dialect to get these enums or have to roll their own
enums if they want to know what's going on.

This PR rips the band-aid off and breaks the world by swapping out those
integer attributes for enum attributes.

Of special note is the handling of the aux/cachepolicy field on various
intrinsics; in the backend, all the architectures share an enum and
you've just got to use the right names in the right spots. Here, we've
separated out the cases for pre-gfx942, gfx942+, and gfx12 enums as
separate attributes (including separate casing for gfx12 atomics) and
allowed any of them to be used. We also allow an I32Attr in those
arguments for easy importing and to make the common case of "0" portably

    [18 lines not shown]
DeltaFile
+201-278mlir/include/mlir/Dialect/LLVMIR/ROCDLOps.td
+198-206mlir/test/Target/LLVMIR/rocdl.mlir
+192-165mlir/test/Dialect/LLVMIR/rocdl.mlir
+282-0mlir/include/mlir/Dialect/LLVMIR/ROCDLEnums.td
+85-151mlir/lib/Dialect/LLVMIR/IR/ROCDLDialect.cpp
+155-0mlir/include/mlir/Dialect/LLVMIR/ROCDLDialect.td
+1,113-80023 files not shown
+1,495-1,00929 files

LLVM/project e668f64clang/include/clang/AST DeclTemplate.h, clang/lib/AST DeclTemplate.cpp

Revert "[clang] Reland: fix getTemplateInstantiationArgs" (#201864)

Reverts llvm/llvm-project#201373

This caused compilation errors. See comment on the original PR.
DeltaFile
+429-194clang/lib/Sema/SemaTemplateInstantiate.cpp
+165-275clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
+146-150clang/lib/Sema/SemaTemplate.cpp
+95-96clang/include/clang/AST/DeclTemplate.h
+129-59clang/lib/Sema/SemaConcept.cpp
+92-60clang/lib/AST/DeclTemplate.cpp
+1,056-83455 files not shown
+1,715-1,49361 files

LLVM/project 652af90clang/include/clang/Basic BuiltinsAMDGPUDocs.td

[NFC][Doc] Fix non-existing reference in BuiltinsAMDGPUDocs.td
DeltaFile
+2-2clang/include/clang/Basic/BuiltinsAMDGPUDocs.td
+2-21 files

OpenZFS/src cab50d5module/zfs dmu_recv.c zfs_quota.c

Add additional verification of size fields and strings (#18623)

- Check for size fields that convert to smaller integers.
- Explicitly terminate bootenv string.
- Initialize variables that could be returned in an error case.

Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Reviewed-by: Chris Longros <chris.longros at gmail.com>
Reviewed-by: Alexander Motin <alexander.motin at TrueNAS.com>
Signed-off-by: Tony Hutter <hutter2 at llnl.gov>
Closes #18623
DeltaFile
+31-13module/zfs/dmu_recv.c
+6-2module/zfs/zfs_quota.c
+1-1module/zfs/zfs_ioctl.c
+1-0module/zfs/vdev_label.c
+39-164 files

FreeBSD/src 77fdebalib/libc/gen fts.3

fts: Correct description of fts_set

MFC after:      1 week
Sponsored by:   Klara, Inc.
Fixes:  e030e4e73fe7 ("lib/libc/gen/fts.3: use 'options' consistently in fts_set() description")
Differential Revision:  https://reviews.freebsd.org/D57326
DeltaFile
+5-4lib/libc/gen/fts.3
+5-41 files