LLVM/project 86aaf7bllvm/test/Transforms/SLPVectorizer/AArch64 accelerate-vector-functions-inseltpoison.ll aarch64-vector-functions.ll, llvm/test/Transforms/SLPVectorizer/RISCV math-function.ll

[SLP] Cost struct-returning intrinsic calls with a vector library mapping

getVectorCallCosts queried the vector intrinsic cost with a type-based-only
IntrinsicCostAttributes. That path always scalarizes struct-returning
intrinsics (e.g. llvm.sincos), which have no VFDatabase name mapping.
Retry with an argument-aware query when the type-based cost looks scalarized.

Fixes #200644

Reviewers: hiraditya, bababuck, RKSimon

Pull Request: https://github.com/llvm/llvm-project/pull/201389
DeltaFile
+352-572llvm/test/Transforms/SLPVectorizer/RISCV/math-function.ll
+90-134llvm/test/Transforms/SLPVectorizer/AArch64/accelerate-vector-functions-inseltpoison.ll
+86-130llvm/test/Transforms/SLPVectorizer/AArch64/aarch64-vector-functions.ll
+6-126llvm/test/Transforms/SLPVectorizer/X86/powi.ll
+17-42llvm/test/Transforms/SLPVectorizer/X86/call.ll
+17-41llvm/test/Transforms/SLPVectorizer/X86/intrinsic.ll
+568-1,0459 files not shown
+666-1,22915 files

LLVM/project 31613bfllvm/include/llvm/IR BundleAttributes.h, llvm/lib/IR BundleAttributes.cpp

[InstCombine] Drop redundant noundef assume bundles (#203309)
DeltaFile
+17-0llvm/test/Transforms/InstCombine/assume.ll
+7-1llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
+6-0llvm/include/llvm/IR/BundleAttributes.h
+5-0llvm/lib/IR/BundleAttributes.cpp
+35-14 files

LLVM/project beb2021compiler-rt/test/cfi lit.cfg.py

fix python formatting

Created using spr 1.3.7
DeltaFile
+1-1compiler-rt/test/cfi/lit.cfg.py
+1-11 files

LLVM/project 42393d7flang/test/Integration/OpenMP map-types-and-sizes.f90, flang/test/Lower/OpenMP optional-argument-map-2.f90 target-map-complex.f90

Revert "[Flang][OpenMP] remove enable-delayed-privatization-staging to suppor…"

This reverts commit 1ee93f9e1ab7578c94ebd5f7e6aecaba9a33537d.
DeltaFile
+0-50offload/test/offloading/fortran/target-firstprivate.f90
+35-1flang/test/Lower/OpenMP/optional-argument-map-2.f90
+0-33flang/test/Lower/OpenMP/DelayedPrivatization/target-firstprivate.f90
+10-6flang/test/Lower/OpenMP/target-map-complex.f90
+8-4flang/test/Integration/OpenMP/map-types-and-sizes.f90
+10-1flang/test/Lower/OpenMP/target.f90
+63-9524 files not shown
+129-12430 files

FreeBSD/src 3fbdaeesys/arm/broadcom/bcm2835 bcm2835_sdhci.c

bcm2835_sdhci: Clean up DMA resources on attach failure

bcm_sdhci_attach() allocates a DMA channel with bcm_dma_allocate()
before creating the bus_dma tag and map.  If a later initialization
step fails, the common error path releases the interrupt and memory
resources, but leaves the DMA channel allocated.

Call bcm_dma_free() for cleanup, as it already performs the required
internal checks and can therefore be invoked directly.

Signed-off-by:  Haoxiang Li <lihaoxiang at isrc.iscas.ac.cn>
Reviewed by:    mhorne
MFC after:      3 days
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2241

(cherry picked from commit d1488cd762bee79240a715bf04f3d30e9a121b26)
DeltaFile
+1-0sys/arm/broadcom/bcm2835/bcm2835_sdhci.c
+1-01 files

FreeBSD/src 6d526fasys/compat/linuxkpi/common/include/linux io.h

linux/io: handle memtype_wc mapping for !DMAP range

The amdgpu driver in drm-kmod will attempt to update/reserve certain GPU
VRAM ranges as write-combining. Depending on the system, this address
range may fall outside of FreeBSD's constructed DMAP. We cannot use
pmap_change_attr() in this case.

When INVARIANTS is enabled, this results in the following:

  panic: physical address 0x880000000 not covered by the DMAP

Add a guard against triggering the KASSERT in PHYS_TO_DMAP().

This limitation in our implementation of arch_io_reserve_memtype_wc() is
already known in drm-kmod's amdgpu_bo_init(), and errors are ignored
there (see "BSDFIXME"). This change is only to eliminate the preventable
assertion failure within this scheme.

Tested by:      kevans

    [6 lines not shown]
DeltaFile
+6-1sys/compat/linuxkpi/common/include/linux/io.h
+6-11 files

FreeBSD/src a95757dsys/dev/usb/net if_smsc.c

smsc: Add missing newline to PHY timeout error printf

(cherry picked from commit 0979bfb0ec804590a782ea33b787ec0989c1f1a4)
(cherry picked from commit 471b1c4ca19b16693ed410da5023739a60d063f3)
DeltaFile
+1-1sys/dev/usb/net/if_smsc.c
+1-11 files

LLVM/project fa888b3lldb/test/API/commands/platform/process/launch TestPlatformProcessLaunch.py

[lldb/test] Skip TestPlatformProcessLaunch on remote-darwin targets (#203070)
DeltaFile
+3-1lldb/test/API/commands/platform/process/launch/TestPlatformProcessLaunch.py
+3-11 files

FreeBSD/src 314c855sys/amd64/amd64 trap.c

amd64: Make EFI runtime faults look less like panics

EFI runtime faults may be mistaken for kernel panics, and do not
necessarily represent actual problems.  Try to differentiate them some
more by printing "EFI runtime trap" rather than "Fatal trap".

PR:             291193
Reviewed by:    kib
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D56309

(cherry picked from commit ddabf7f3ea4f0497dc5a5ffcbbb1d852ea77a4cd)
DeltaFile
+5-5sys/amd64/amd64/trap.c
+5-51 files

FreeBSD/src 3151fddsys/netlink netlink_io.c

netlink: Use unsigned type in nl_process_nbuf

nlmsghdr::nlmsg_len and nl_buf::offset are u_int.  Make msglen match.

Reviewed by:    pouria, glebius
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D57474

(cherry picked from commit 888d9236e2249cb1bda686aca8729fdcc69a10ac)
DeltaFile
+3-1sys/netlink/netlink_io.c
+3-11 files

LLVM/project 2e757b8compiler-rt/test/cfi summary.cpp lit.cfg.py

fix formatting issues

Created using spr 1.3.7
DeltaFile
+5-5compiler-rt/test/cfi/summary.cpp
+3-1compiler-rt/test/cfi/lit.cfg.py
+8-62 files

LLVM/project a114ffdlldb/include/lldb/Host ProcessRunLock.h, lldb/source/Host/common ProcessRunLock.cpp

[lldb] Make ProcessRunLock recursive on the read side per-thread (#201685)
DeltaFile
+185-0lldb/unittests/Host/ProcessRunLockTest.cpp
+129-0lldb/test/API/functionalities/scripted_frame_provider/runlock_reentrant_deadlock/TestRunLockReentrantDeadlock.py
+106-3lldb/source/Host/common/ProcessRunLock.cpp
+33-40lldb/include/lldb/Host/ProcessRunLock.h
+44-0lldb/test/API/functionalities/scripted_frame_provider/runlock_reentrant_deadlock/bkpt_resolver.py
+32-0lldb/test/API/functionalities/scripted_frame_provider/runlock_reentrant_deadlock/frame_provider.py
+529-433 files not shown
+551-439 files

LLVM/project 70beebdllvm/include/llvm/Target/GlobalISel Combine.td, llvm/test/CodeGen/AArch64 combine-max-min.ll

[GIsel] import min/max rewrites (#188267)

this PR imports the rewrites for min/max operations existing in the
SelectionDAG
[combine](https://github.com/llvm/llvm-project/blob/20aff2085c358d3e112b245494161ddb9ffe0410/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp#L4272)
to GlobalISel

---------

Co-authored-by: Osman Yasar <osmanyas05 at gmail.com>
DeltaFile
+158-0llvm/test/CodeGen/AArch64/GlobalISel/combine-max-min.mir
+92-0llvm/test/CodeGen/AArch64/combine-max-min.ll
+87-0llvm/test/CodeGen/AArch64/GlobalISel/combine-max-min.ll
+28-1llvm/include/llvm/Target/GlobalISel/Combine.td
+365-14 files

LLVM/project f01cbe7llvm/lib/Transforms/Vectorize SLPVectorizer.cpp, llvm/test/Transforms/SLPVectorizer/AArch64 recalc-copyable-operand-deps-direct-use.ll

[SLP] Recompute deps of copyable-modeled operands used directly

An instruction modeled as a copyable element elsewhere can also be used
directly by a later-built node sharing an instruction with the copyable
nodes. The direct use was not counted, so the scheduler over-decremented
the operand and tripped the unscheduled-deps assertion. Defer
recomputation whenever the operand is modeled as a copyable element
anywhere.

Reviewers: 

Pull Request: https://github.com/llvm/llvm-project/pull/203342
DeltaFile
+123-0llvm/test/Transforms/SLPVectorizer/AArch64/recalc-copyable-operand-deps-direct-use.ll
+20-2llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+143-22 files

LLVM/project dbd31cbllvm/lib/Transforms/Vectorize SLPVectorizer.cpp, llvm/test/Transforms/SLPVectorizer/AArch64 recalc-copyable-operand-deps-direct-use.ll

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+123-0llvm/test/Transforms/SLPVectorizer/AArch64/recalc-copyable-operand-deps-direct-use.ll
+20-2llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+143-22 files

LLVM/project 5244b87compiler-rt/lib/ubsan ubsan_handlers_cxx.cpp ubsan_handlers.cpp, compiler-rt/test/cfi summary.cpp lit.cfg.py

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+111-0compiler-rt/test/cfi/summary.cpp
+20-1compiler-rt/lib/ubsan/ubsan_handlers_cxx.cpp
+10-2compiler-rt/lib/ubsan/ubsan_handlers.cpp
+8-2compiler-rt/test/cfi/lit.cfg.py
+6-1compiler-rt/lib/ubsan/ubsan_checks.inc
+155-65 files

NetBSD/src VyHfESdexternal/public-domain/tz tzdata2netbsd

   Fix issues with tzdata2netbsd and Hg updates

   Correct a typo.
   Add some comments.
   Better interaction when unresolved conflicts remain.
VersionDeltaFile
1.20+15-4external/public-domain/tz/tzdata2netbsd
+15-41 files

FreeBSD/src f218641sys/dev/hwpmc hwpmc_intel.c, sys/sys pmc.h

pmc: add sapphire rapids model

This commit adds the sapphire rapids CPU model to hwpmc_intel.c,
allowing hwpmc to be used on this CPU family.

Reviewed by:    mhorne
MFC after:      3 days
Sponsored by:   Stormshield
Differential Revision:  https://reviews.freebsd.org/D57263

(cherry picked from commit 03c69dd90122c4ffa91a749f668a2ac8fa6843a2)
DeltaFile
+4-0sys/dev/hwpmc/hwpmc_intel.c
+1-1sys/sys/pmc.h
+5-12 files

FreeBSD/src a9a1011lib/libpmc/pmu-events/arch/x86/meteorlake mtl-metrics.json pipeline.json

pmc: Import Intel Meteor Lake events

Obtained from:  Intel perfmon (JSON event definitions)
Tested by:      bms, olivier
MFC after:      1 week
Reviewed by:    ali_mashtizadeh.com, mhorne
Differential Revision:  https://reviews.freebsd.org/D55641

(cherry picked from commit cb9e24221672a7f77c858518c292c1eac09b3740)
DeltaFile
+2,825-0lib/libpmc/pmu-events/arch/x86/meteorlake/mtl-metrics.json
+2,096-0lib/libpmc/pmu-events/arch/x86/meteorlake/pipeline.json
+1,733-0lib/libpmc/pmu-events/arch/x86/meteorlake/cache.json
+623-0lib/libpmc/pmu-events/arch/x86/meteorlake/frontend.json
+499-0lib/libpmc/pmu-events/arch/x86/meteorlake/memory.json
+377-0lib/libpmc/pmu-events/arch/x86/meteorlake/virtual-memory.json
+8,153-09 files not shown
+8,877-015 files

LLVM/project 7cfe3bdllvm/tools/dsymutil Options.td

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+1-1llvm/tools/dsymutil/Options.td
+1-11 files

LLVM/project 854a6f9llvm/include/llvm/IR GlobalValue.h, llvm/include/llvm/Transforms/Utils AssignGUID.h

Reland #184065
DeltaFile
+61-17llvm/lib/Bitcode/Reader/BitcodeReader.cpp
+45-30llvm/lib/LTO/LTO.cpp
+64-2llvm/lib/IR/Globals.cpp
+49-3llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
+45-5llvm/include/llvm/IR/GlobalValue.h
+49-0llvm/include/llvm/Transforms/Utils/AssignGUID.h
+313-57116 files not shown
+848-401122 files

LLVM/project e737bebllvm/lib/Transforms/IPO ThinLTOBitcodeWriter.cpp WholeProgramDevirt.cpp, llvm/test/ThinLTO/X86 devirt_function_alias2.ll

cfi creates alias
DeltaFile
+20-33llvm/lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp
+17-5llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp
+10-7llvm/test/Transforms/ThinLTOBitcodeWriter/comdat.ll
+16-0llvm/lib/Transforms/IPO/LowerTypeTests.cpp
+6-4llvm/test/ThinLTO/X86/devirt_function_alias2.ll
+5-4llvm/test/Transforms/ThinLTOBitcodeWriter/split-internal2.ll
+74-533 files not shown
+82-589 files

FreeBSD/src 648ac17sys/arm/broadcom/bcm2835 bcm2835_sdhci.c

bcm2835_sdhci: Clean up DMA resources on attach failure

bcm_sdhci_attach() allocates a DMA channel with bcm_dma_allocate()
before creating the bus_dma tag and map.  If a later initialization
step fails, the common error path releases the interrupt and memory
resources, but leaves the DMA channel allocated.

Call bcm_dma_free() for cleanup, as it already performs the required
internal checks and can therefore be invoked directly.

Signed-off-by:  Haoxiang Li <lihaoxiang at isrc.iscas.ac.cn>
Reviewed by:    mhorne
MFC after:      3 days
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2241

(cherry picked from commit d1488cd762bee79240a715bf04f3d30e9a121b26)
DeltaFile
+1-0sys/arm/broadcom/bcm2835/bcm2835_sdhci.c
+1-01 files

FreeBSD/src be5d6a2lib/geom/part gpart.8

gpart.8: add entry for xbootldr partition type

Reviewed by:    emaste, markj
Sponsored by:   The FreeBSD Foundation
Fixes:  dab8138e13de ("g_part,mkimg: Add additional GPT partition types")
Differential Revision:  https://reviews.freebsd.org/D56969

(cherry picked from commit 54d0ae979d9596399f33dc7d7245866f86ab7f8e)
DeltaFile
+7-1lib/geom/part/gpart.8
+7-11 files

FreeBSD/src 7b8ee50sys/compat/linuxkpi/common/include/linux io.h

linux/io: handle memtype_wc mapping for !DMAP range

The amdgpu driver in drm-kmod will attempt to update/reserve certain GPU
VRAM ranges as write-combining. Depending on the system, this address
range may fall outside of FreeBSD's constructed DMAP. We cannot use
pmap_change_attr() in this case.

When INVARIANTS is enabled, this results in the following:

  panic: physical address 0x880000000 not covered by the DMAP

Add a guard against triggering the KASSERT in PHYS_TO_DMAP().

This limitation in our implementation of arch_io_reserve_memtype_wc() is
already known in drm-kmod's amdgpu_bo_init(), and errors are ignored
there (see "BSDFIXME"). This change is only to eliminate the preventable
assertion failure within this scheme.

Tested by:      kevans

    [6 lines not shown]
DeltaFile
+6-1sys/compat/linuxkpi/common/include/linux/io.h
+6-11 files

FreeBSD/src b1594aelib/geom/part gpart.8

gpart(7): Fix reference to the zfsprops man page

PR:     292147

(cherry picked from commit 6499888ca741bf3db90d7fd352d5480f7314337f)
DeltaFile
+2-2lib/geom/part/gpart.8
+2-21 files

FreeBSD/src a1b2bcbsys/dev/eqos if_eqos_starfive.c

if_eqos_starfive: Read MAC address from device tree

u-boot/opensbi determines the ethernet MAC address from ROM and passes
it to the OS in the device tree. This change sets the correct MAC
address from this source. This prevents the eqos class driver from
generating random MAC addresses at each boot.

Tested on Starfive VisionFive 2, riscv64 SBC.

Reviewed by:    mhorne
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D56782

(cherry picked from commit 351fad05e075c388dece4cd6dd8613494b870bad)
DeltaFile
+12-0sys/dev/eqos/if_eqos_starfive.c
+12-01 files

FreeBSD/src 670024dsys/geom/part g_part.h g_part_gpt.c, sys/sys/disk gpt.h

g_part,mkimg: Add additional GPT partition types

Add the hifive-fsbl, hifive-bbl, and xbootldr aliases to mkimg(1).
Add the xbootldr alias to geom(4), and thus gpart(8).

The "hifive" partition types are defined and used by various RISC-V SBCs
for locating firmware.

"xbootldr", or the Extended Boot Loader Partition is defined here:
https://uapi-group.org/specifications/specs/boot_loader_specification/

Reviewed by:    emaste, markj, mhorne
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D56784

(cherry picked from commit dab8138e13dea539a387c458979403980a137bf2)
DeltaFile
+6-0usr.bin/mkimg/gpt.c
+3-0usr.bin/mkimg/scheme.h
+3-0usr.bin/mkimg/scheme.c
+2-0sys/geom/part/g_part.h
+2-0sys/geom/part/g_part_gpt.c
+2-0sys/sys/disk/gpt.h
+18-01 files not shown
+19-07 files

LLVM/project ea1d7e3clang/lib/CIR/CodeGen CIRGenExpr.cpp CIRGenFunction.cpp, clang/test/CIR/CodeGen bind-temporary-lvalue.cpp

[CIR] Implement bind temporary lvalue (#202755)

This change implements the handling to emit a CXXBindTemporaryExpr
l-value. This is a very direct port from the classic codegen
implementation, leveraging existing functions in CIR.
DeltaFile
+42-0clang/test/CIR/CodeGen/bind-temporary-lvalue.cpp
+10-0clang/lib/CIR/CodeGen/CIRGenExpr.cpp
+1-3clang/lib/CIR/CodeGen/CIRGenFunction.cpp
+2-0clang/lib/CIR/CodeGen/CIRGenFunction.h
+55-34 files

LLVM/project 988778dclang/lib/CIR/CodeGen CIRGenDecl.cpp, clang/test/CIR/CodeGen static-local-nested-reference.cpp

[CIR] Force emission of static local enclosing functions (#201941)

When getOrCreateStaticVarDecl is called, we need to call
`getAddressOfGlobal` to trigger the emission of the enclosing function.
In most cases this has already happened, but there are cases where the
enclosing function would not otherwise have been emitted. See
https://bugs.llvm.org/show_bug.cgi?id=18020 for details.

It appears that this was mistakenly seen as OpenMP-specific behavior
because of an OpenMP RAII guard that surrounds it in classic codegen,
but that actually is there to skip the behavior when generating OpenMP
device code.

We also needed to insert the static local decl into CIRGenModule's map
by calling `setStaticLocalDeclAddress`. To avoid a duplicate emission.

Assisted-by: Cursor / claude-opus-4.8
DeltaFile
+26-0clang/test/CIR/CodeGen/static-local-nested-reference.cpp
+10-3clang/lib/CIR/CodeGen/CIRGenDecl.cpp
+36-32 files