LLVM/project 165a272 — llvm/unittests/Support SpecialCaseListTest.cpp

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+10-0llvm/unittests/Support/SpecialCaseListTest.cpp
+10-01 files

FreeBSD/src d713a81 — usr.sbin/bhyve/riscv fdt.c

bhyve/riscv: fix PCIe FDT interrupt-map entry stride

In bhyve arm64, each PCIe interrupt-map entry spans 10 cells because the
ARM GIC specifies #interrupt-cells = 3. On RISC-V, the APLIC uses
#interrupt-cells = 2, so each entry spans only 9 cells.

When the PCIe FDT code was originally adapted from arm64, the property
allocation size and cell assignments were reduced to 9 cells per entry,
but the loop multiplier retained the 10-cell stride. This caused the
interrupt-map array to be packed incorrectly with gaps, breaking PCI
interrupt routing in guest operating systems and overflowing the
allocation by 16 cells.

Correct the loop stride to 9 cells so the interrupt map is properly
formed.

Approved by:    re (cperciva)
Reviewed by:    jrtc27
Fixes:          7ab1a32cd43c ("bhyve/riscv: Initial import")

    [28 lines not shown]
DeltaFile
+9-9usr.sbin/bhyve/riscv/fdt.c
+9-91 files

LLVM/project 653dddd — llvm/include/llvm/IR RuntimeLibcalls.td, llvm/test/Transforms/Util/DeclareRuntimeLibcalls systemz.ll ppc.ll

RuntimeLibcalls: Mark noreturn and pure helper libcalls (#241627)

Mark the functions which never return as noreturn. Add some nounwind
and cold, mostly following inferLibFuncAttributes. Mark
misc. functions as pure.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+45-22llvm/include/llvm/IR/RuntimeLibcalls.td
+15-10llvm/test/Transforms/Util/DeclareRuntimeLibcalls/aarch64.ll
+12-8llvm/test/Transforms/Util/DeclareRuntimeLibcalls/windows.ll
+9-6llvm/test/Transforms/Util/DeclareRuntimeLibcalls/ppc.ll
+9-6llvm/test/Transforms/Util/DeclareRuntimeLibcalls/bsd.ll
+6-4llvm/test/Transforms/Util/DeclareRuntimeLibcalls/systemz.ll
+96-5610 files not shown
+140-8516 files

LLVM/project a3bb937 — utils/bazel/llvm-project-overlay/llvm BUILD.bazel

[Bazel] Fixes c9a8614 (#244450)

This fixes c9a86145188df70bca9733bbee77736c53372e27 (#242436).

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

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

FreeBSD/src d9daf5a — contrib/kyua config.h

contrib/kyua: update config.h for 0.15.1 -> 0.15.2

This was accidentally missed in the prior commit.

This commit addresses a largely cosmetic issue.

MFC after:      6 days
MFC with:       c16da33701d0
Fixes:          c16da33701d0 contrib/kyua: update to 0.15.2
DeltaFile
+3-3contrib/kyua/config.h
+3-31 files

HardenedBSD/src 6113937 — contrib/netbsd-tests/kernel t_mqueue.c, share/man/man9 style.9

Merge remote-tracking branch 'rad/hardened/current/master' into hardened/current/pledge
DeltaFile
+17-38tests/sys/kern/ssl_sendfile.c
+13-13tests/freebsd_test_suite/macros.h
+15-3tests/sys/net/routing/rtsock_config.h
+15-1share/man/man9/style.9
+0-4contrib/netbsd-tests/kernel/t_mqueue.c
+1-1sys/dev/mii/mii.c
+61-601 files not shown
+62-607 files

FreeBSD/ports 00f955f — textproc/tgrep Makefile distinfo

textproc/tgrep: Update to 1.2.8

Changelog: https://github.com/microsoft/tgrep/releases/tag/v1.2.8

Reported by:    GitHub (watch releases)
DeltaFile
+3-3textproc/tgrep/distinfo
+1-1textproc/tgrep/Makefile
+4-42 files

HardenedBSD/src a844d96 — contrib/netbsd-tests/kernel t_mqueue.c, share/man/man9 style.9

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+17-38tests/sys/kern/ssl_sendfile.c
+13-13tests/freebsd_test_suite/macros.h
+15-3tests/sys/net/routing/rtsock_config.h
+15-1share/man/man9/style.9
+0-4contrib/netbsd-tests/kernel/t_mqueue.c
+1-1sys/dev/mii/mii.c
+61-601 files not shown
+62-607 files

HardenedBSD/src dea9259 — usr.sbin/bhyve/riscv fdt.c

Merge branch 'freebsd/15-stable/main' into hardened/15-stable/main
DeltaFile
+9-9usr.sbin/bhyve/riscv/fdt.c
+9-91 files

HardenedBSD/ports c0702da — cad/freecad-devel pkg-plist, textproc/codebook distinfo

Merge branch 'freebsd/main' into hardenedbsd/main
DeltaFile
+1,400-334www/firefox/files/patch-libwebrtc-generated
+895-14www/firefox/files/patch-third__party_angle-freebsd
+275-275www/rustfs/distinfo
+135-135www/rustfs/Makefile.crates
+104-132cad/freecad-devel/pkg-plist
+59-59textproc/codebook/distinfo
+2,868-94949 files not shown
+3,123-1,19255 files

LLVM/project b39ffc3 — llvm/test/CodeGen/X86/apx reloc-opt.ll

[X86][APX] Test the relocation of an NF add

test_regclass_not_updated_by_regalloc_2 only produced an NDD/NF add
with a GOT operand because the allocator happened to give the add a
destination different from its source. With SlotIndexes compaction it
picks the same register, so the add is compressed to the legacy form
and the CODE_6 TODO lost its test.

Add a function whose add keeps its source live, so it stays NDD and
becomes NF under any allocation.
DeltaFile
+20-1llvm/test/CodeGen/X86/apx/reloc-opt.ll
+20-11 files

LLVM/project 9d74c5e — llvm/test/CodeGen/X86 vector-interleaved-store-i64-stride-7.ll vector-deinterleave8-i64.ll

[X86] Enable SlotIndexes compaction by default

Compacting SlotIndexes before greedy allocation drops the entries of
erased instructions, so live range sizes and instruction distances
reflect the code being allocated rather than how much was erased
before it. AMDGPU has done this since #235806; do the same for X86.

Codegen changes only through allocation: no new crashes, verifier
errors or allocation failures in the lit suites, including
EXPENSIVE_CHECKS, and a stage-2 build of LLVM, clang and lld with
-verify-machineinstrs passes its own tests. On llvm-test-suite at -O3,
spills drop 0.3% and .text 0.06%, with compile time unchanged.

Most test updates are regenerated checks. misched-matmul now inserts
20 spills instead of 24. live-debug-vars-stale-slotindexes.mir gets
one more use of %27 so that accumulate_fit still reaches the stale
index path it was written for.
DeltaFile
+20,796-20,889llvm/test/CodeGen/X86/vector-interleave7-i16.ll
+17,854-17,989llvm/test/CodeGen/X86/vector-interleave7-i32.ll
+17,166-17,229llvm/test/CodeGen/X86/vector-interleave6-i16.ll
+15,403-15,465llvm/test/CodeGen/X86/vector-interleaved-load-i64-stride-7.ll
+13,897-13,898llvm/test/CodeGen/X86/vector-deinterleave8-i64.ll
+13,329-13,243llvm/test/CodeGen/X86/vector-interleaved-store-i64-stride-7.ll
+98,445-98,713512 files not shown
+675,166-677,705518 files

LLVM/project 927a56d — llvm/lib/Target/AArch64 AArch64ISelDAGToDAG.cpp, llvm/test/CodeGen/AArch64 pdep.ll rem-by-const.ll

[AArch64] Avoid folding SRA/SRL into ALU when it can be folded with SHL/AND (#234737)

For the following function
```
int f(int a, int b) {
  b -= (a<<26)>>29;
  return b;
}
```
LLVM currently generates
```
f:
    lsl w8, w0, #26
    sub w0, w1, w8, asr #29
    ret
```

However, if we don't fold the `asr` into the `sub`, the `asr` can be
folded with the `lsl` instead, and we can avoid generating the

    [10 lines not shown]
DeltaFile
+527-528llvm/test/CodeGen/AArch64/clmul.ll
+121-107llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
+70-70llvm/test/CodeGen/AArch64/pext.ll
+114-0llvm/test/CodeGen/AArch64/alu-shr-shl.ll
+32-60llvm/test/CodeGen/AArch64/rem-by-const.ll
+21-21llvm/test/CodeGen/AArch64/pdep.ll
+885-7869 files not shown
+913-81415 files

DragonFlyBSD/src d37499e — etc Makefile

etc: run the sub-makes with the source tree's mk files

Pass -m ${.CURDIR}/../share/mk through .MAKEFLAGS, so the sub-makes
use the mk files from this source tree, as the top-level Makefile
already does for preinstall and upgrade, and nrelease does for
distribution.

Reviewed-by: @aly
DeltaFile
+6-0etc/Makefile
+6-01 files

HardenedBSD/src f992c08 — contrib/netbsd-tests/kernel t_mqueue.c, tests/freebsd_test_suite macros.h

Remove {ATF,PLAIN}_REQUIRE_KERNEL_MODULE macros

These macros predated the `require.kmod` (ATF) and `required_kmods`
(kyua) test metadata and are no longer needed.

Add a hint to freebsd_test_suite/macros.h about the `*FEATURE*` macros
going away soon. See [this kyua issue][kyua-issue] for more details.

MFC after:      1 month
Differential Revision:  https://reviews.freebsd.org/D61082

[kyua-issue]: https://github.com/freebsd/kyua/issues/346
DeltaFile
+13-13tests/freebsd_test_suite/macros.h
+15-3tests/sys/net/routing/rtsock_config.h
+0-4contrib/netbsd-tests/kernel/t_mqueue.c
+1-0tests/sys/kern/Makefile
+29-204 files

FreeBSD/src f992c08 — contrib/netbsd-tests/kernel t_mqueue.c, tests/freebsd_test_suite macros.h

Remove {ATF,PLAIN}_REQUIRE_KERNEL_MODULE macros

These macros predated the `require.kmod` (ATF) and `required_kmods`
(kyua) test metadata and are no longer needed.

Add a hint to freebsd_test_suite/macros.h about the `*FEATURE*` macros
going away soon. See [this kyua issue][kyua-issue] for more details.

MFC after:      1 month
Differential Revision:  https://reviews.freebsd.org/D61082

[kyua-issue]: https://github.com/freebsd/kyua/issues/346
DeltaFile
+13-13tests/freebsd_test_suite/macros.h
+15-3tests/sys/net/routing/rtsock_config.h
+0-4contrib/netbsd-tests/kernel/t_mqueue.c
+1-0tests/sys/kern/Makefile
+29-204 files

LLVM/project e587562 — llvm/lib/CodeGen RegisterCoalescer.cpp, llvm/test/CodeGen/AMDGPU coalescer-subreg-implicit-def-phi-input.mir

Renumber subranges after removing pruned values
DeltaFile
+8-1llvm/lib/CodeGen/RegisterCoalescer.cpp
+1-1llvm/test/CodeGen/X86/coalescer-subreg-implicit-def-phi-input.mir
+1-1llvm/test/CodeGen/AMDGPU/coalescer-subreg-implicit-def-phi-input.mir
+10-33 files

LLVM/project d80ea91 — clang/include/clang/Analysis/Analyses ThreadSafetyTraverse.h

[clang] fixup -Wunused-private-field (#244427)

-Wunused-private-field will soon be able to flag fields in instantiated
class templates. Land this in preparation.

Link: #237374
Link: #244396
DeltaFile
+1-8clang/include/clang/Analysis/Analyses/ThreadSafetyTraverse.h
+1-81 files

LLVM/project 401c5de — llvm/lib/CodeGen RegisterCoalescer.cpp LiveInterval.cpp, llvm/test/CodeGen/X86 coalescer-subreg-implicit-def-phi-input.mir

RegisterCoalescer: Drop unused value numbers after joining

Erasing a pruned IMPLICIT_DEF marks its value number unused but leaves
it in NewVNInfo, and LiveRange::join only skipped null entries, so the
joined range kept a dead value number. Skip unused entries in join and
size valnos to the number actually kept. pruneSubRegValues similarly
only marked the pruned subrange value unused, so remove it instead.

The resulting live intervals now will have the same value numbers as a
fresh LiveIntervals computation.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+2-3llvm/lib/CodeGen/LiveInterval.cpp
+2-2llvm/lib/CodeGen/RegisterCoalescer.cpp
+1-1llvm/test/CodeGen/X86/coalescer-subreg-implicit-def-phi-input.mir
+5-63 files

LLVM/project 848c54a — llvm/test/Transforms/Util/DeclareRuntimeLibcalls systemz.ll sparc.ll

RuntimeLibcalls: Add attributes to fenv libcalls

Treat the fp environment as inaccessible memory.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+25-20llvm/test/Transforms/Util/DeclareRuntimeLibcalls/aarch64.ll
+20-16llvm/test/Transforms/Util/DeclareRuntimeLibcalls/windows.ll
+15-12llvm/test/Transforms/Util/DeclareRuntimeLibcalls/ppc.ll
+15-12llvm/test/Transforms/Util/DeclareRuntimeLibcalls/bsd.ll
+10-8llvm/test/Transforms/Util/DeclareRuntimeLibcalls/systemz.ll
+10-8llvm/test/Transforms/Util/DeclareRuntimeLibcalls/sparc.ll
+95-7610 files not shown
+171-13216 files

OpenZFS/src 1b1aa0e — module/os/freebsd/zfs zfs_vnops_os.c, module/zfs zfs_vnops.c

FreeBSD: Fix append-only semantics

On FreeBSD, ZFS_APPENDONLY was only enforced on the write path, so an
append-only file could still be truncated or extended with ftruncate(2)
through an O_APPEND descriptor, hole-punched with fspacectl(2), have its
mode changed, and be removed or renamed.  Entries of an append-only
directory could also be removed or renamed.  In summary:

- zfs_setattr(): apply the ZFS_IMMUTABLE attribute restrictions, which
  include size changes, to ZFS_APPENDONLY files as well.
- zfs_deallocate(): refuse immutable and append-only files.
- zfs_zaccess_delete(): refuse append-only files and entries of
  append-only directories, which also covers rename.

Add ZTS coverage.  Linux already refuses these operations in its VFS,
so the tests are common.

zfs_clone_range() only refused ZFS_IMMUTABLE destinations.  On FreeBSD,
O_APPEND can be cleared with F_SETFL after opening an append-only file,

    [12 lines not shown]
DeltaFile
+184-0tests/zfs-tests/cmd/append_only_ops.c
+91-0tests/zfs-tests/tests/functional/chattr/chattr_003_neg.ksh
+88-0tests/zfs-tests/tests/functional/chattr/chattr_004_neg.ksh
+65-0tests/zfs-tests/tests/functional/block_cloning/block_cloning_copyfilerange_appendonly.ksh
+14-2module/os/freebsd/zfs/zfs_vnops_os.c
+6-3module/zfs/zfs_vnops.c
+448-57 files not shown
+468-913 files

LLVM/project 81e4276 — llvm/include/llvm/Analysis TargetTransformInfo.h, llvm/include/llvm/CodeGen BasicTTIImpl.h

[TTI] Return zero when query getRegUsageForType() with invalid type. (#243811)

This patch makes `getRegUsageForType()` returns 0 when the type is
invalid.

With this changes, we can remove the type legalization check for
scalable vector (`isElementTypeLegalForScalableVector()`) in the
VPlan-based register model. This allows `i1` scalable vector for RISC-V
can be calculated.

The reason that we don't want to accept `i1` in the
`isElementTypeLegalForScalableVector()` in RISC-V is because this
function also being used to decide if the loop can be scalable
vectorized and RISC-V don't support scalable `i1` vector load/store.

This patch partially fixes
https://github.com/llvm/llvm-project/issues/243706.
The register spill count is close to the generated assembly.

Pruned the test case with AI assistance.
DeltaFile
+186-0llvm/test/Transforms/LoopVectorize/RISCV/reg-usage.ll
+1-3llvm/lib/Transforms/Vectorize/VPlanAnalysis.cpp
+2-1llvm/include/llvm/Analysis/TargetTransformInfo.h
+2-0llvm/include/llvm/CodeGen/BasicTTIImpl.h
+191-44 files

LLVM/project 294b0a0 — libc/src/__support str_to_float.h, libc/src/__support/FPUtil FEnvImpl.h

[libc] Fix strtof128_test and GPU shared str_to_float build failures (#244436)

Fix two post-merge buildbot failures after #243955:

1. Define the fallback `float128` alias in `strtof128_test.cpp` when
`LIBC_TYPES_HAS_NATIVE_FLOAT128` is not set (e.g. Clang < 18.1 on
x86_64).
2. Avoid pulling `FPUtil/float128.h` (and transitively `FEnvImpl.h`)
into `str_to_float.h` by turning `ClingerConsts<fputil::Float128>` into
a dependent partial specialization, and undefine
`LIBC_MATH_USE_SYSTEM_FENV` on `LIBC_TARGET_ARCH_IS_GPU` in `FEnvImpl.h`
since GPU targets do not provide system `<fenv.h>` functions.

Also clean up direct includes and sync CMake and Bazel dependencies.

Assisted-by: Gemini
DeltaFile
+90-85libc/src/__support/str_to_float.h
+10-4libc/src/__support/FPUtil/FEnvImpl.h
+7-0libc/test/src/stdlib/strtof128_test.cpp
+3-3libc/src/stdlib/strtof128.h
+3-1libc/src/stdlib/CMakeLists.txt
+3-0utils/bazel/llvm-project-overlay/libc/test/src/stdlib/BUILD.bazel
+116-936 files not shown
+127-9812 files

LLVM/project b58d895 — llvm/include/llvm/IR RuntimeLibcallsImpl.td RuntimeLibcalls.td, llvm/test/Transforms/Util/DeclareRuntimeLibcalls ppc.ll

RuntimeLibcalls: Add attributes to libc libcalls

Annotate C library functions with the attributes InferFunctionAttrs
gives. This isn't fully captured in the DeclareRuntimeLibcalls testing
because not all of these functions are yet associated with a library.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+1,074-184llvm/include/llvm/IR/RuntimeLibcalls.td
+12-12llvm/test/Transforms/Util/DeclareRuntimeLibcalls/ppc.ll
+1-0llvm/include/llvm/IR/RuntimeLibcallsImpl.td
+1,087-1963 files

LLVM/project cb12af6 — llvm/include/llvm/IR RuntimeLibcalls.td, llvm/test/Transforms/Util/DeclareRuntimeLibcalls hexagon.ll arm64ec.ll

RuntimeLibcalls: Add attributes to target memory helper libcalls

Annotate the various target specific memcpy-like functions with known
alignments.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+50-33llvm/include/llvm/IR/RuntimeLibcalls.td
+16-16llvm/test/Transforms/Util/DeclareRuntimeLibcalls/arm.ll
+15-15llvm/test/Transforms/Util/DeclareRuntimeLibcalls/aarch64.ll
+7-7llvm/test/Transforms/Util/DeclareRuntimeLibcalls/codegen-opt-flags.ll
+3-3llvm/test/Transforms/Util/DeclareRuntimeLibcalls/arm64ec.ll
+2-2llvm/test/Transforms/Util/DeclareRuntimeLibcalls/hexagon.ll
+93-766 files

LLVM/project 125327e — llvm/include/llvm/IR RuntimeLibcalls.td, llvm/test/Transforms/Util/DeclareRuntimeLibcalls arm.ll ppc.ll

RuntimeLibcalls: Mark noreturn and pure helper libcalls

Mark the functions which never return as noreturn. Add some nounwind
and cold, mostly following inferLibFuncAttributes. Mark
misc. functions as pure.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+45-22llvm/include/llvm/IR/RuntimeLibcalls.td
+15-10llvm/test/Transforms/Util/DeclareRuntimeLibcalls/aarch64.ll
+12-8llvm/test/Transforms/Util/DeclareRuntimeLibcalls/windows.ll
+9-6llvm/test/Transforms/Util/DeclareRuntimeLibcalls/ppc.ll
+9-6llvm/test/Transforms/Util/DeclareRuntimeLibcalls/bsd.ll
+6-4llvm/test/Transforms/Util/DeclareRuntimeLibcalls/arm.ll
+96-5610 files not shown
+140-8516 files

LLVM/project 63c34b3 — llvm/include/llvm/IR RuntimeLibcalls.td, llvm/test/Transforms/Util/DeclareRuntimeLibcalls sparc.ll bsd.ll

RuntimeLibcalls: Add attributes inferLibFuncAttributes gives libcalls (#241618)

Remove more differences with the attributes the InferFunctionAttrs
pass would add to the declared libcalls.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+88-77llvm/test/Transforms/Util/DeclareRuntimeLibcalls/aarch64.ll
+71-63llvm/test/Transforms/Util/DeclareRuntimeLibcalls/ppc.ll
+67-59llvm/test/Transforms/Util/DeclareRuntimeLibcalls/windows.ll
+57-51llvm/test/Transforms/Util/DeclareRuntimeLibcalls/bsd.ll
+63-14llvm/include/llvm/IR/RuntimeLibcalls.td
+40-36llvm/test/Transforms/Util/DeclareRuntimeLibcalls/sparc.ll
+386-30019 files not shown
+697-57025 files

OpenBSD/ports NtHehNY — lang/php/8.6/patches patch-ext_openssl_xp_ssl_c

   add the OPENSSL_strndup/free patch from 8.5/earlier
VersionDeltaFile
1.3+18-0lang/php/8.6/patches/patch-ext_openssl_xp_ssl_c
+18-01 files

LLVM/project f0e8a7b — llvm/include/llvm/Support Path.h PrefixMapper.h, llvm/lib/Support Path.cpp PrefixMapper.cpp

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+474-0llvm/unittests/Support/PrefixMapperTest.cpp
+166-0llvm/lib/Support/PrefixMapper.cpp
+149-0llvm/include/llvm/Support/PrefixMapper.h
+46-7llvm/unittests/Support/Path.cpp
+32-2llvm/include/llvm/Support/Path.h
+14-15llvm/lib/Support/Path.cpp
+881-244 files not shown
+898-2410 files

LLVM/project 3409953 — llvm/include/llvm/Support PrefixMapper.h, llvm/lib/Support CMakeLists.txt PrefixMapper.cpp

[𝘀𝗽𝗿] changes to main this commit is based on

Created using spr 1.3.7

[skip ci]
DeltaFile
+447-0llvm/unittests/Support/PrefixMapperTest.cpp
+190-0llvm/lib/Support/PrefixMapper.cpp
+151-0llvm/include/llvm/Support/PrefixMapper.h
+1-0llvm/unittests/Support/CMakeLists.txt
+1-0llvm/lib/Support/CMakeLists.txt
+790-05 files