LLVM/project 4a24c68llvm/lib/CodeGen/SelectionDAG DAGCombiner.cpp, llvm/test/CodeGen/ARM setcc-logic.ll

[DAGCombiner] Fold (or (seteq X, 0), (seteq X, -1)) to (setult (add X, 1), 2) (#192183)

This is the De Morgan dual of the existing fold:
    (and (setne X, 0), (setne X, -1)) --> (setuge (add X, 1), 2)

The or-of-equalities version checks if X is either 0 or -1, which is
equivalent to (X+1) < 2 (unsigned). This reduces two comparisons and
an or to one add and one comparison.

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply at anthropic.com>
DeltaFile
+14-0llvm/test/CodeGen/ARM/setcc-logic.ll
+4-4llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+18-42 files

LLVM/project 7780e54llvm/include/llvm/CodeGen AsmPrinterAnalysis.h

[AsmPrinter] Fix AsmPrinterAnalysis::Result::invalidate to take PreservedAnalyses by const reference (#191742)

The invalidate method was taking PreservedAnalyses by value instead of
by const reference, causing an unnecessary copy on every invalidation
query. All other analysis invalidate methods in LLVM use const
reference.

Co-authored-by: Claude Opus 4.6 (1M context) <noreply at anthropic.com>
DeltaFile
+1-1llvm/include/llvm/CodeGen/AsmPrinterAnalysis.h
+1-11 files

LLVM/project 2dc9e4dclang/include/clang/AST ASTContext.h, clang/lib/AST ASTContext.cpp ItaniumMangle.cpp

[clang] implement CWG2064: ignore value dependence for decltype

The 'decltype' for a value-dependent (but non-type-dependent) should be known,
so this patch makes them non-opaque instead.

This patch also implements what's neceessary to allow overloading
on pure differences in instantiation dependence, making `std::void_t`
usable for SFINAE purposes.

This also readds a few test cases from da98651, which was a previous attempt
at resolving CWG2064.

Fixes #8740
Fixes #61818
Fixes #190388
DeltaFile
+887-175clang/lib/AST/ASTContext.cpp
+287-12clang/test/SemaTemplate/instantiation-dependence.cpp
+151-93clang/lib/AST/ItaniumMangle.cpp
+76-68clang/lib/AST/Type.cpp
+77-48clang/lib/Sema/SemaTemplate.cpp
+93-16clang/include/clang/AST/ASTContext.h
+1,571-41279 files not shown
+2,279-75085 files

LLVM/project 326a9falld/MachO ConcatOutputSection.h ConcatOutputSection.cpp, lld/MachO/Arch ARM64.cpp

[lld][MachO] Key branch-extension thunks on (referent, addend) (#191808)

TextOutputSection::finalize ignored branch relocation addends. Two call
sites branching to the same symbol with different addends therefore
collapsed onto a single thunk.

Key thunkMap on (isec, value, addend) so two call sites with different
addends get independent thunks. The addend is encoded in the thunk's
relocs and is zeroed at the call site after the callee is redirected to
the thunk. Thunk names carry a `+N` suffix when the addend is non-zero.
DeltaFile
+80-0lld/test/MachO/arm64-thunk-branch-addend.s
+45-17lld/MachO/ConcatOutputSection.h
+32-14lld/MachO/ConcatOutputSection.cpp
+6-4lld/MachO/Arch/ARM64.cpp
+2-1lld/MachO/Target.h
+1-1lld/MachO/InputSection.cpp
+166-371 files not shown
+168-377 files

FreeBSD/ports 4a97b18emulators/rpcs3 distinfo Makefile

emulators/rpcs3: update to 0.0.40.19212

Changes:        https://github.com/RPCS3/rpcs3/compare/ec989781a3...ea0d8a0d78
(cherry picked from commit 255ac54b26c3c36b7ec582c16fc6628e6951b005)
DeltaFile
+7-7emulators/rpcs3/distinfo
+4-5emulators/rpcs3/Makefile
+11-122 files

FreeBSD/ports 3653f03emulators/rpcs3 Makefile

emulators/rpcs3: back to llvm19 after 7d6a0a090b03

Newer LLVM can break game compatibility thus discouraged upstream.
As RPCS3 no longer builds with Clang 19 use both llvm19 and llvm20.

(cherry picked from commit 4603303de98482e78e3424f28a31767e921d7271)
DeltaFile
+11-4emulators/rpcs3/Makefile
+11-41 files

FreeBSD/ports 255ac54emulators/rpcs3 distinfo Makefile

emulators/rpcs3: update to 0.0.40.19212

Changes:        https://github.com/RPCS3/rpcs3/compare/ec989781a3...ea0d8a0d78
DeltaFile
+7-7emulators/rpcs3/distinfo
+4-5emulators/rpcs3/Makefile
+11-122 files

FreeBSD/ports 4603303emulators/rpcs3 Makefile

emulators/rpcs3: back to llvm19 after 7d6a0a090b03

Newer LLVM can break game compatibility thus discouraged upstream.
As RPCS3 no longer builds with Clang 19 use both llvm19 and llvm20.
DeltaFile
+11-4emulators/rpcs3/Makefile
+11-41 files

FreeBSD/ports bc42ac6graphics/mesa-devel distinfo Makefile

graphics/mesa-devel: update to 26.1.b.38

Changes:        https://gitlab.freedesktop.org/mesa/mesa/-/compare/1f0370616a6...81feb2e7f11
DeltaFile
+3-3graphics/mesa-devel/distinfo
+2-2graphics/mesa-devel/Makefile
+5-52 files

OpenZFS/src f37ed04.github/workflows zfs-qemu-packages.yml zfs-qemu.yml, .github/workflows/scripts qemu-7-prepare.sh

CI: Disable ZIP file artifacts, update versions

The GH artifacts action now lets you disable auto-zipping your
artifacts.  Previously, GH would always automatically put your
artifacts in a ZIP file.  This is annoying when your artifacts
are already in a tarball.

Also update the following action versions

checkout:               v4 -> v6
upload-artifact:        v4 -> v7
download-artifact:      v4 -> v8

Lastly, fix a issue where zfs-qmeu-packages now needs to power
cycle the VM.

Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Reviewed-by: George Melikov <mail at gmelikov.ru>
Signed-off-by: Tony Hutter <hutter2 at llnl.gov>
Closes #18411
DeltaFile
+12-11.github/workflows/zfs-qemu-packages.yml
+20-2.github/workflows/scripts/qemu-7-prepare.sh
+9-7.github/workflows/zfs-qemu.yml
+4-3.github/workflows/checkstyle.yaml
+3-3.github/workflows/zloop.yml
+2-2.github/workflows/smatch.yml
+50-282 files not shown
+54-308 files

OpenZFS/src a42a717.github/workflows zfs-qemu-packages.yml zfs-qemu.yml, .github/workflows/scripts qemu-7-prepare.sh

CI: Disable ZIP file artifacts, update versions

The GH artifacts action now lets you disable auto-zipping your
artifacts.  Previously, GH would always automatically put your
artifacts in a ZIP file.  This is annoying when your artifacts
are already in a tarball.

Also update the following action versions

checkout:               v4 -> v6
upload-artifact:        v4 -> v7
download-artifact:      v4 -> v8

Lastly, fix a issue where zfs-qmeu-packages now needs to power
cycle the VM.

Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Reviewed-by: George Melikov <mail at gmelikov.ru>
Signed-off-by: Tony Hutter <hutter2 at llnl.gov>
Closes #18411
DeltaFile
+12-11.github/workflows/zfs-qemu-packages.yml
+20-2.github/workflows/scripts/qemu-7-prepare.sh
+9-7.github/workflows/zfs-qemu.yml
+4-3.github/workflows/checkstyle.yaml
+3-3.github/workflows/zloop.yml
+2-2.github/workflows/smatch.yml
+50-282 files not shown
+54-308 files

OpenZFS/src ba53ba5include/sys metaslab_impl.h metaslab.h, module/zfs metaslab.c spa_log_spacemap.c

Fix available space accounting for special/dedup (#18222)

Currently, spa_dspace (base to calculate dataset AVAIL) only includes
the normal allocation class capacity, but dd_used_bytes tracks space
allocated across all classes.  Since we don't want to report free
space of other classes as available (we can't promise new allocations
will be able to use it), report only allocated space, similar to how
we report space saved by dedup and block cloning.

Since we need deflated space here, make allocation classes track
deflated allocated space also.  While here, make mc_deferred also
deflated, matching its use contexts.  Also while there, use
atomic_load() to read the allocation class stats.

Reviewed-by: Rob Norris <robn at despairlabs.com>
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Alexander Motin <alexander.motin at TrueNAS.com>
Closes #18190
Closes #18222
DeltaFile
+47-23module/zfs/metaslab.c
+5-3include/sys/metaslab_impl.h
+2-3module/zfs/spa_log_spacemap.c
+4-1module/zfs/spa_misc.c
+2-2include/sys/metaslab.h
+1-1module/zfs/spa.c
+61-336 files

HardenedBSD/src eb9fc5fshare/man/man4 appleir.4, sys/dev/hid appleir.c

Merge remote-tracking branch 'origin/hardened/current/master' into hardened/current/cross-dso-cfi
DeltaFile
+440-0sys/dev/hid/appleir.c
+93-0share/man/man4/appleir.4
+22-20sys/net/bpf.c
+12-3sys/netinet/tcp_lro.c
+0-13sys/vm/vm_swapout.c
+8-0sys/modules/hid/appleir/Makefile
+575-364 files not shown
+580-3810 files

HardenedBSD/src 325ccf2share/man/man4 appleir.4, sys/dev/hid appleir.c

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+440-0sys/dev/hid/appleir.c
+93-0share/man/man4/appleir.4
+22-20sys/net/bpf.c
+12-3sys/netinet/tcp_lro.c
+0-13sys/vm/vm_swapout.c
+8-0sys/modules/hid/appleir/Makefile
+575-364 files not shown
+580-3810 files

LLVM/project 7514309llvm/lib/CodeGen AtomicExpandPass.cpp, llvm/test/CodeGen/AMDGPU unsupported-atomics.ll

[AtomicExpandPass] Improve atomic expand error messages (#188380)

AtomicExpandPass tells you that an operation is not supported but not why.
DeltaFile
+67-23llvm/lib/CodeGen/AtomicExpandPass.cpp
+25-0llvm/test/CodeGen/NVPTX/atomic-alignment.err.ll
+9-9llvm/test/CodeGen/AMDGPU/unsupported-atomics.ll
+8-8llvm/test/CodeGen/NVPTX/atomicrmw-expand.err.ll
+2-2llvm/test/CodeGen/NVPTX/load-store-atomic.err.ll
+2-2llvm/test/CodeGen/NVPTX/atomics-b128.ll
+113-441 files not shown
+114-457 files

OpenZFS/src a78630ainclude/sys metaslab_impl.h metaslab.h, module/zfs metaslab.c spa_misc.c

Fix available space accounting for special/dedup

Currently, spa_dspace (base to calculate dataset AVAIL) only includes
the normal allocation class capacity, but dd_used_bytes tracks space
allocated across all classes.  Since we don't want to report free
space of other classes as available (we can't promise new allocations
will be able to use it), report only allocated space, similar to how
we report space saved by dedup and block cloning.
    
Since we need deflated space here, make allocation classes track
deflated allocated space also.  While here, make mc_deferred also
deflated, matching its use contexts.  Also while there, use
atomic_load() to read the allocation class stats.

NOTE: This is a backport of this relatively small and self-contained
fix to alleviate the issue.

Sponsored-by: Klara, Inc.
Sponsored-by: OSNexus

    [4 lines not shown]
DeltaFile
+47-23module/zfs/metaslab.c
+5-3include/sys/metaslab_impl.h
+5-0module/zfs/spa_misc.c
+2-3module/zfs/spa_log_spacemap.c
+2-2include/sys/metaslab.h
+1-1module/zfs/spa.c
+62-326 files

LLVM/project 18bed37offload CMakeLists.txt, offload/plugins-nextgen/cuda CMakeLists.txt

[offload][OpenMP] Require CUDA 11.8 (#191100)
DeltaFile
+21-0offload/plugins-nextgen/cuda/src/rtl.cpp
+6-5openmp/docs/Building.md
+5-1offload/plugins-nextgen/cuda/CMakeLists.txt
+4-0offload/CMakeLists.txt
+1-1offload/test/CMakeLists.txt
+1-1offload/unittests/CMakeLists.txt
+38-86 files

HardenedBSD/ports f05300bcad/freecad/files patch-vtk96-compat patch-compat-coin408, devel/libwasmtime distinfo

Merge branch 'freebsd/main' into hardenedbsd/main
DeltaFile
+0-1,088cad/freecad/files/patch-vtk96-compat
+369-0emulators/einstein-newton/files/patch-CMakeLists.txt
+192-38editors/emacs/files/patch-src_treesit.c
+0-153cad/freecad/files/patch-compat-coin408
+51-49devel/libwasmtime/distinfo
+82-0editors/emacs/files/patch-doc_lispref_parsing.texi
+694-1,32858 files not shown
+1,103-1,55964 files

LLVM/project cf53623clang/lib/Frontend CompilerInstance.cpp, clang/lib/Lex PPDirectives.cpp Preprocessor.cpp

Reapply "[ObjC][Preprocessor] Handle @import directive as a pp-directive" (#189174)

This PR reapply https://github.com/llvm/llvm-project/pull/157726.

Depends: https://github.com/llvm/llvm-project/pull/107168
This patch handle `@import` as a preprocessing directive, and since this
patch, the following import directive will be ill-formed:
```
@import Foo\n;
```

---------

Signed-off-by: yronglin <yronglin777 at gmail.com>
DeltaFile
+71-24clang/lib/Lex/PPDirectives.cpp
+1-92clang/lib/Lex/Preprocessor.cpp
+42-0clang/test/Modules/objc-at-import.m
+33-3clang/lib/Lex/Lexer.cpp
+14-13clang/lib/Frontend/CompilerInstance.cpp
+7-11clang/lib/Lex/DependencyDirectivesScanner.cpp
+168-1439 files not shown
+188-17815 files

LLVM/project e0e2c8dclang/lib/CIR/CodeGen CIRGenClass.cpp, clang/test/CIR/CodeGen base-init-eh.cpp

[CIR] Implement EH handling for base class initializer (#192358)

This implements exception handling when a base class initializer is
called from a dervied class' constructor. The cleanup handler to call
the base class dtor was already implemented. We just needed to push the
cleanup on the EH stack.
DeltaFile
+129-0clang/test/CIR/CodeGen/base-init-eh.cpp
+2-1clang/lib/CIR/CodeGen/CIRGenClass.cpp
+131-12 files

LLVM/project ed55c8eclang/include/clang/AST ASTContext.h, clang/lib/AST ASTContext.cpp ItaniumMangle.cpp

[clang] implement CWG2064: ignore value dependence for decltype

The 'decltype' for a value-dependent (but non-type-dependent) should be known,
so this patch makes them non-opaque instead.

This patch also implements what's neceessary to allow overloading
on pure differences in instantiation dependence, making `std::void_t`
usable for SFINAE purposes.

This also readds a few test cases from da98651, which was a previous attempt
at resolving CWG2064.

Fixes #8740
Fixes #61818
Fixes #190388
DeltaFile
+887-175clang/lib/AST/ASTContext.cpp
+287-12clang/test/SemaTemplate/instantiation-dependence.cpp
+151-93clang/lib/AST/ItaniumMangle.cpp
+76-68clang/lib/AST/Type.cpp
+77-48clang/lib/Sema/SemaTemplate.cpp
+93-16clang/include/clang/AST/ASTContext.h
+1,571-41276 files not shown
+2,270-74582 files

FreeBSD/src d51d917release/packages generate-ucl.lua

packages: Fix build with libucl 0.9.3

In libucl 0.9.3, macros and includes are disabled by default when
creating a new UCL parser.  This breaks the package build, which
relies on includes.  Fix this by explicitly passing zero flags
to ucl.parser().

MFC after:      3 days
Fixes:          abda442d92fd ("contrib/libucl:  Import libucl 0.9.3")
Reviewed by:    kevans, bapt
Reported by:    freebsd at walstatt-de.de
Sponsored by:   https://www.patreon.com/bsdivy
Differential Revision:  https://reviews.freebsd.org/D56266

(cherry picked from commit 63d0e3e3aa2483420f828686336d6615616363d5)
DeltaFile
+1-1release/packages/generate-ucl.lua
+1-11 files

LLVM/project ce435ddllvm/lib/Target/AMDGPU AMDGPUCoExecSchedStrategy.cpp, llvm/test/CodeGen/AMDGPU coexec-sched-effective-stall.mir

Adrress comments from https://github.com/llvm/llvm-project/pull/188658

Change-Id: Ia94c567a753168c1ffa16dc5d91195e7dd0ba044
DeltaFile
+114-114llvm/test/CodeGen/AMDGPU/coexec-sched-effective-stall.mir
+3-3llvm/lib/Target/AMDGPU/AMDGPUCoExecSchedStrategy.cpp
+117-1172 files

LLVM/project 2537596clang/include/clang/Basic DiagnosticLexKinds.td Module.h, clang/include/clang/Lex ModuleMap.h

[clang][modules] Diagnose headers owned by multiple modules (#188538)

Add -Wduplicate-header-ownership, an off by default warning that fires
at include time when a header is owned by multiple top-level modules.
This helps catch overlapping module maps that can cause confusing module
resolution.

Assisted-by: claude-opus-4.6
DeltaFile
+159-0clang/test/Modules/duplicate-header-ownership.c
+105-12clang/lib/Lex/ModuleMap.cpp
+23-4clang/include/clang/Lex/ModuleMap.h
+7-0clang/include/clang/Basic/DiagnosticLexKinds.td
+3-0clang/include/clang/Basic/Module.h
+297-165 files

LLVM/project 8d5a719clang/include/clang/ScalableStaticAnalysisFramework/Analyses/PointerFlow PointerFlow.h, clang/lib/ScalableStaticAnalysisFramework/Analyses SSAFAnalysesCommon.cpp

clean up code
DeltaFile
+45-66clang/lib/ScalableStaticAnalysisFramework/Analyses/PointerFlow/PointerFlowExtractor.cpp
+14-13clang/lib/ScalableStaticAnalysisFramework/Analyses/PointerFlow/PointerFlow.cpp
+1-1clang/include/clang/ScalableStaticAnalysisFramework/Analyses/PointerFlow/PointerFlow.h
+1-1clang/lib/ScalableStaticAnalysisFramework/Analyses/SSAFAnalysesCommon.cpp
+1-1clang/test/Analysis/Scalable/PointerFlow/tu-summary-serialization.test
+62-825 files

LLVM/project 561cf0cllvm/include/llvm Pass.h, llvm/include/llvm/IR PassTimingInfo.h

[NFC] Move TimePasses globals from Pass.h to PassTimingInfo.h (#192352)

They don't belong in the legacy pass manager-specific header, they apply
to both pass managers, plus the pass manager isn't the right layer to
put the bools anyway.
DeltaFile
+0-11llvm/include/llvm/Pass.h
+11-0llvm/include/llvm/IR/PassTimingInfo.h
+1-4llvm/lib/IRReader/IRReader.cpp
+1-0llvm/unittests/IR/TimePassesTest.cpp
+1-0llvm/lib/Target/AMDGPU/AMDGPUSplitModule.cpp
+1-0llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+15-154 files not shown
+19-1510 files

LLVM/project 975fda5llvm/lib/Target/AMDGPU AMDGPUCoExecSchedStrategy.cpp

Add comment

Change-Id: I2180bba631fe4a01ed3c3fbcfa8c19cbefa84133
DeltaFile
+1-0llvm/lib/Target/AMDGPU/AMDGPUCoExecSchedStrategy.cpp
+1-01 files

LLVM/project 5be815allvm/lib/Target/AMDGPU AMDGPUCoExecSchedStrategy.cpp

clang-format

Change-Id: I534b1a979f55339a814ef3416c2492252845add5
DeltaFile
+6-3llvm/lib/Target/AMDGPU/AMDGPUCoExecSchedStrategy.cpp
+6-31 files

LLVM/project f892036llvm/lib/Target/AMDGPU AMDGPUCoExecSchedStrategy.h

Add a comment

Change-Id: I447f7f1fb185b18924cfd98249b5a0a05fef2484
DeltaFile
+7-0llvm/lib/Target/AMDGPU/AMDGPUCoExecSchedStrategy.h
+7-01 files

LLVM/project 996914cllvm/lib/Target/AMDGPU AMDGPUCoExecSchedStrategy.cpp

Add back tryLatency

Change-Id: I12d4f255c48ed77ba927eb3b192e5903f1f5e24f
DeltaFile
+7-1llvm/lib/Target/AMDGPU/AMDGPUCoExecSchedStrategy.cpp
+7-11 files