LLVM/project a2075c3llvm/lib/Transforms/Vectorize SLPVectorizer.cpp, llvm/test/Transforms/SLPVectorizer/X86 extractelements-with-undef-vector.ll blending-shuffle.ll

[SLP] Treat extracts from undef vectors as real, not free, extracts

tryToGatherSingleRegisterExtractElements classified an extractelement whose
vector operand was undef as a free undef extract via UndefVectorExtracts.
When the remaining extracts already filled the two-vector shuffle budget,
the resulting build vector contained a third distinct vector operand and
tripped the assertion "Expected only 1 or 2 vectors shuffle." in
processBuildVector.

Use isUndefVector with IsPoisonOnly=true so that only extracts from poison
vectors are still treated as free.

Fixes #196015.

Reviewers: 

Pull Request: https://github.com/llvm/llvm-project/pull/196150
DeltaFile
+27-0llvm/test/Transforms/SLPVectorizer/X86/extractelements-with-undef-vector.ll
+2-7llvm/test/Transforms/SLPVectorizer/X86/blending-shuffle.ll
+3-1llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+32-83 files

LLVM/project ce4cef8libc/src/stdlib environ_internal.cpp environ_internal.h

[libc][stdlib] Add EnvironmentManager (#195260)

Introduced an EnvironmentManager singleton that centralises environment
variable state: the environ array, per-string ownership tracking, and
capacity management. The manager exposes a minimal public API (get,
begin/end iterators) and keeps all internal state private.

Refactored getenv to delegate to EnvironmentManager::get() rather than
directly iterating app.env_ptr.

The ownership tracking and capacity management are preparatory
infrastructure for setenv.

Assisted-by: Automated tooling, human reviewed.
DeltaFile
+179-0libc/src/stdlib/environ_internal.cpp
+123-0libc/src/stdlib/environ_internal.h
+9-26libc/src/stdlib/getenv.cpp
+19-1libc/src/stdlib/CMakeLists.txt
+330-274 files

LLVM/project cdf745alibcxx/include/__utility exchange.h, libcxx/test/libcxx/utilities/utility nodiscard.verify.cpp

[libc++][utility] Test `[[nodiscard]] std::exchange` (#195807)

1. `[[nodiscard]]` was applied in https://llvm.org/PR187953
2. Also use `[[__nodiscard__]]` in pre-C++17 code.

Towards https://github.com/llvm/llvm-project/issues/172124

References:
-
https://libcxx.llvm.org/CodingGuidelines.html#apply-nodiscard-where-relevant
- https://wg21.link/utility.exchange

Co-authored-by: Hristo Hristov <zingam at outlook.com>
DeltaFile
+3-2libcxx/include/__utility/exchange.h
+3-0libcxx/test/libcxx/utilities/utility/nodiscard.verify.cpp
+6-22 files

LLVM/project 27ca66aclang/lib/ScalableStaticAnalysisFramework/Analyses/EntityPointerLevel EntityPointerLevel.cpp

fix merge issue
DeltaFile
+1-0clang/lib/ScalableStaticAnalysisFramework/Analyses/EntityPointerLevel/EntityPointerLevel.cpp
+1-01 files

LLVM/project 8ac8e6fllvm/lib/DWARFLinker/Classic DWARFLinkerDeclContext.cpp, llvm/test/tools/dsymutil/AArch64 typedef-different-types.test

[dsymutil] Fix linker's ODR uniquing for typedefs with different underlying types (#195749)

The classic DWARF linker's `DeclContext` uniquing for `typedef` only
considers the typedef's name, file, and line — not the type it refers
to. When two `typedef` share the same name and source location but point
to different underlying types (e.g. due to clang's `preferred_name`
attribute generating a second typedef), they get the same `DeclContext`.
ODR deduplication then merges them, which can produce incorrect type
references or self-referencing typedef cycles in the output DWARF.

The self-referencing cycles are latent until a consumer follows
`DW_AT_type` chains through typedefs.
In particular, `unwrapReferencedTypedefType()` (introduced in
[#168734](https://github.com/llvm/llvm-project/pull/168734)) caused an
infinite recursion and eventual stack overflow.

Fix this by including the `DW_AT_type` target's tag and name in the
`NameForUniquing`, such that `typedef` with different underlying types
get distinct `DeclContexts`. This mirrors the parallel linker fix in

    [9 lines not shown]
DeltaFile
+1,287-0llvm/test/tools/dsymutil/AArch64/typedef-different-types.test
+35-0llvm/lib/DWARFLinker/Classic/DWARFLinkerDeclContext.cpp
+1,322-02 files

LLVM/project bd62f93flang/include/flang/Semantics tools.h, flang/lib/Semantics expression.cpp tools.cpp

[flang][cuda] Allow CUDA variable for assumed-type dummy (#196135)
DeltaFile
+24-0flang/test/Semantics/cuf10.cuf
+10-0flang/lib/Semantics/expression.cpp
+10-0flang/lib/Semantics/tools.cpp
+5-1flang/lib/Semantics/check-call.cpp
+6-0flang/include/flang/Semantics/tools.h
+55-15 files

LLVM/project 25deb6ebolt/docs BinaryAnalysis.md

[BOLT] Rework user-facing documentation of BOLT gadget scanner (#176446)

Update the documentation to reflect the changes made to the original
prototype.

Co-authored-by: Kristof Beyls <kristof.beyls at arm.com>
Co-authored-by: Harald van Dijk <hdijk at accesssoftek.com>
DeltaFile
+672-100bolt/docs/BinaryAnalysis.md
+672-1001 files

FreeBSD/doc 722f176website/content/en/releases/15.1R relnotes.adoc

15.1/relnotes: Include an ENA driver highlight

Sponsored by:   Amazon
DeltaFile
+1-0website/content/en/releases/15.1R/relnotes.adoc
+1-01 files

LLVM/project 5ec9eebclang/unittests/libclang/CrashTests LibclangCrashTest.cpp

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+10-0clang/unittests/libclang/CrashTests/LibclangCrashTest.cpp
+10-01 files

FreeBSD/doc 8c95180website/content/en/releases/15.1R relnotes.adoc

15.1/relnotes: Mention ENA/arm64 irq mapping fix

This is technically a general intrng bug fix, but I'm not aware of the
bug affecting anything other than ena(4) on arm64 so I'm listing this
under "Cloud Support".

Sponsored by:   Amazon
DeltaFile
+4-0website/content/en/releases/15.1R/relnotes.adoc
+4-01 files

FreeBSD/doc 05d4f53website/content/en/releases/15.1R relnotes.adoc

15.1/relnotes: Clarify Extended Destination ID

We don't merely recognize bits in CPUID; we make use of it to allow
FreeBSD to run on larger VMs, including EC2 r8i.96xlarge.

Sponsored by:   Amazon
DeltaFile
+2-1website/content/en/releases/15.1R/relnotes.adoc
+2-11 files

LLVM/project db1c008flang/test/Lower select-type.f90, llvm/include/llvm/Transforms/IPO Instrumentor.h

Merge remote-tracking branch 'origin' into users/ziqingluo/PR-174874942-3

 Conflicts:
        clang/lib/ScalableStaticAnalysisFramework/Analyses/EntityPointerLevel/EntityPointerLevel.cpp
        clang/lib/ScalableStaticAnalysisFramework/Analyses/PointerFlow/PointerFlowExtractor.cpp
DeltaFile
+2,969-1,160llvm/test/CodeGen/X86/vector-reduce-mul.ll
+657-426llvm/test/CodeGen/AArch64/sqrt-fastmath.ll
+665-333flang/test/Lower/select-type.f90
+767-0llvm/lib/Transforms/IPO/Instrumentor.cpp
+707-0llvm/include/llvm/Transforms/IPO/Instrumentor.h
+403-171mlir/test/Dialect/XeGPU/xegpu-wg-to-sg.mlir
+6,168-2,090873 files not shown
+20,569-6,004879 files

LLVM/project 103d6c9compiler-rt/test lit.common.cfg.py, llvm/utils/lit/lit util.py LitConfig.py

Revert "[lit] [compiler-rt] Add llvm-lit global command cache to speed up test config" (#196139)

Reverts llvm/llvm-project#195888

`functools.cache` is not available until Python 3.9 whereas LLVM's
minimum python version is 3.8.

`date -Ins` also seems nonportable.
DeltaFile
+0-88llvm/utils/lit/tests/unit/Util.py
+34-15compiler-rt/test/lit.common.cfg.py
+1-24llvm/utils/lit/lit/util.py
+0-16llvm/utils/lit/lit/LitConfig.py
+35-1434 files

LLVM/project 48346f2llvm/lib/Target/SystemZ SystemZISelLowering.cpp, llvm/test/CodeGen/SystemZ args-23.ll

[SystemZ] Fix internal error with single-element vector types (#196127)

The special treatment of single-element 128-bit vector types in
SystemZTargetLowering::getRegisterTypeForCallingConv is not appropriate
if vector types are not supported, and can lead to internal compiler
errors.

Fixes: https://github.com/llvm/llvm-project/issues/194256
DeltaFile
+464-0llvm/test/CodeGen/SystemZ/args-23.ll
+1-1llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
+465-12 files

LLVM/project 1010f9eclang/lib/ScalableStaticAnalysisFramework/Analyses/PointerFlow PointerFlowAnalysis.cpp

address comments
DeltaFile
+2-1clang/lib/ScalableStaticAnalysisFramework/Analyses/PointerFlow/PointerFlowAnalysis.cpp
+2-11 files

NetBSD/src Ih3XDGfshare/mk bsd.x11.mk

   Apply patch, requested by mrg in ticket #1255:

        share/mk/bsd.x11.mk             (apply patch)

   Bump xorg-server version to 21.1.22
VersionDeltaFile
1.145.2.11+2-2share/mk/bsd.x11.mk
+2-21 files

LLVM/project 557690allvm/lib/ProfileData CMakeLists.txt, llvm/test/tools/llvm-profgen etm-opencsd.test etm-arch.test

[llvm-profgen] Fix OpenCSD test and build issues (#195694)

1) Replace non-portable hex escapes in printf with POSIX-compliant octal
escapes in etm tests to fix
failures on Mac.

2) Define OCSD_USE_STATIC_C_API when building
LLVMProfileData on Windows to prevent incorrect dllimport interpretation
when linking against static OpenCSD libraries.

3) Update ProfileData to use the OPENCSD_ROOT hint when resolving
dependency paths and to support linking both static libraries for
OpenCSD.
DeltaFile
+11-7llvm/lib/ProfileData/CMakeLists.txt
+2-2llvm/test/tools/llvm-profgen/etm-opencsd.test
+1-1llvm/test/tools/llvm-profgen/etm-arch.test
+14-103 files

NetBSD/xsrc O7pceX9external/mit/xorg-server/dist ChangeLog configure, external/mit/xorg-server/dist/miext/rootless rootlessScreen.c

   Pull up the following, requested by mrg in ticket #1255:

        xsrc/external/mit/xorg-server/dist/SECURITY.md       up to 1.1.1.1
        xsrc/external/mit/xorg-server/dist/COPYING           up to 1.1.1.8
        xsrc/external/mit/xorg-server/dist/ChangeLog         up to 1.1.1.32
        xsrc/external/mit/xorg-server/dist/Makefile.am       up to 1.1.1.9
        xsrc/external/mit/xorg-server/dist/Makefile.in       up to 1.1.1.20
        xsrc/external/mit/xorg-server/dist/aclocal.m4        up to 1.1.1.25
        xsrc/external/mit/xorg-server/dist/config.guess      up to 1.1.1.19
        xsrc/external/mit/xorg-server/dist/config.sub        up to 1.1.1.19
        xsrc/external/mit/xorg-server/dist/configure         up to 1.25
        xsrc/external/mit/xorg-server/dist/configure.ac      up to 1.27
        xsrc/external/mit/xorg-server/dist/meson.build       up to 1.1.1.22
        xsrc/external/mit/xorg-server/dist/Xext/xf86bigfont.c up to 1.3
        xsrc/external/mit/xorg-server/dist/dix/dixfonts.c    up to 1.8
        xsrc/external/mit/xorg-server/dist/dix/events.c      up to 1.10
        xsrc/external/mit/xorg-server/dist/dix/gc.c          up to 1.1.1.9
        xsrc/external/mit/xorg-server/dist/glamor/glamor.c   up to 1.1.1.10
        xsrc/external/mit/xorg-server/dist/glamor/glamor_core.c up to 1.1.1.4

    [32 lines not shown]
VersionDeltaFile
1.1.1.20.2.9+1,011-0external/mit/xorg-server/dist/ChangeLog
1.1.1.9.2.1+173-3external/mit/xorg-server/dist/miext/rootless/rootlessScreen.c
1.8.2.5+81-20external/mit/xorg-server/dist/xkb/xkb.c
1.13.2.9+43-23external/mit/xorg-server/dist/configure
1.1.1.1.4.1+0-50external/mit/xorg-server/dist/SECURITY.md
1.1.1.1.4.2+50-0external/mit/xorg-server/dist/SECURITY.md
+1,358-9637 files not shown
+1,549-17843 files

FreeNAS/freenas 82deb21src/middlewared/middlewared/utils/lio config.py

Make _set_storage_object_attribs more resilient
DeltaFile
+15-1src/middlewared/middlewared/utils/lio/config.py
+15-11 files

FreeNAS/freenas 88d5655src/middlewared/middlewared/plugins/iscsi_ lio.py

Add logging to iscsi.lio.become_active
DeltaFile
+36-2src/middlewared/middlewared/plugins/iscsi_/lio.py
+36-21 files

LLVM/project 019fd2bllvm/include/llvm/ADT DenseMap.h

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+0-11llvm/include/llvm/ADT/DenseMap.h
+0-111 files

LLVM/project 05cb3dellvm/include/llvm/CodeGen RegUsageInfoCollector.h, llvm/include/llvm/IR PassManager.h

[NFC][PassManager] Make PassInfoMixin/AnalysisInfoMixin inherit from detail::InfoMixin (#196130)

AnalysisInfoMixin just needs `name()`, not the other pass-specific
stuff.

Fix one pass that accidentally inherited from AnalysisInfoMixin.
DeltaFile
+16-11llvm/include/llvm/IR/PassManager.h
+1-1llvm/include/llvm/CodeGen/RegUsageInfoCollector.h
+17-122 files

FreeNAS/freenas 0029115src/middlewared/middlewared/plugins/service_/services iscsitarget.py

Add LIO leg to become_active
DeltaFile
+15-6src/middlewared/middlewared/plugins/service_/services/iscsitarget.py
+15-61 files

NetBSD/src dBzzOlSshare/mk bsd.x11.mk

   Apply patch, requeste by mrg in ticket #258:

        share/mk/bsd.x11.mk

   Bump xorg-server version to 21.1.22.
VersionDeltaFile
1.162.2.3+2-2share/mk/bsd.x11.mk
+2-21 files

NetBSD/xsrc 4FSu3yvexternal/mit/xorg-server/dist ChangeLog configure, external/mit/xorg-server/dist/miext/rootless rootlessScreen.c

   Pull up the following, requested by mrg in ticket #258:

        xsrc/external/mit/xorg-server/dist/SECURITY.md       up to 1.1.1.1
        xsrc/external/mit/xorg-server/dist/COPYING           up to 1.1.1.8
        xsrc/external/mit/xorg-server/dist/ChangeLog         up to 1.1.1.32
        xsrc/external/mit/xorg-server/dist/Makefile.am       up to 1.1.1.9
        xsrc/external/mit/xorg-server/dist/Makefile.in       up to 1.1.1.20
        xsrc/external/mit/xorg-server/dist/aclocal.m4        up to 1.1.1.25
        xsrc/external/mit/xorg-server/dist/config.guess      up to 1.1.1.19
        xsrc/external/mit/xorg-server/dist/config.sub        up to 1.1.1.19
        xsrc/external/mit/xorg-server/dist/configure         up to 1.25
        xsrc/external/mit/xorg-server/dist/configure.ac      up to 1.27
        xsrc/external/mit/xorg-server/dist/meson.build       up to 1.1.1.22
        xsrc/external/mit/xorg-server/dist/Xext/xf86bigfont.c up to 1.3
        xsrc/external/mit/xorg-server/dist/dix/dixfonts.c    up to 1.8
        xsrc/external/mit/xorg-server/dist/dix/events.c      up to 1.10
        xsrc/external/mit/xorg-server/dist/dix/gc.c          up to 1.1.1.9
        xsrc/external/mit/xorg-server/dist/glamor/glamor.c   up to 1.1.1.10
        xsrc/external/mit/xorg-server/dist/glamor/glamor_core.c up to 1.1.1.4

    [32 lines not shown]
VersionDeltaFile
1.1.1.29.2.3+1,011-0external/mit/xorg-server/dist/ChangeLog
1.1.1.9.4.1+173-3external/mit/xorg-server/dist/miext/rootless/rootlessScreen.c
1.11.2.2+81-20external/mit/xorg-server/dist/xkb/xkb.c
1.22.2.3+43-23external/mit/xorg-server/dist/configure
1.1.1.1.2.2+50-0external/mit/xorg-server/dist/SECURITY.md
1.1.1.1.2.1+0-50external/mit/xorg-server/dist/SECURITY.md
+1,358-9637 files not shown
+1,549-17843 files

LLVM/project a4ddebaclang/docs ReleaseNotes.rst, clang/include/clang/Options Options.td

[clang] Don't omit null pointer checks with -fms-kernel (#193800)

In kernel space, a null (zero) address may be valid, so treating it as "always invalid" and bypassing null checks is not correct. With -fms-kernel, we override the default behavior and disable assumptions about null pointers. However, -fdelete-null-pointer-checks can still be used to re-enable these optimizations.
DeltaFile
+16-0clang/test/CodeGen/MSKernel/null-deref.c
+2-2clang/include/clang/Options/Options.td
+2-0clang/docs/ReleaseNotes.rst
+20-23 files

LLVM/project a5a13calldb/tools/lldb-dap CMakeLists.txt, lldb/tools/lldb-dap/tool CMakeLists.txt

[lldb-dap] Make lldbDAP an OBJECT library (NFC) (#196108)

Convert lldbDAP from a static library to an OBJECT library and move its
LINK_COMPONENTS (Option, Support) and LINK_LIBS (liblldb, lldbHost) to
its consumers (the lldb-dap tool and the DAPTests unit test).

This avoids transitive propagation of LLVM's static components through
lldbDAP, which would otherwise collide with the same symbols re-exported
by liblldb when LLDB_EXPORT_ALL_SYMBOLS is enabled, breaking
llvm::Error's RTTI (e.g. ErrorInfoBase::ID) across library boundaries.

Extracted from #189718 for easier reviewing.
DeltaFile
+7-12lldb/tools/lldb-dap/CMakeLists.txt
+4-2lldb/tools/lldb-dap/tool/CMakeLists.txt
+4-1lldb/unittests/DAP/CMakeLists.txt
+15-153 files

LLVM/project aed43eacompiler-rt/test lit.common.cfg.py, llvm/utils/lit/lit util.py LitConfig.py

Revert "[lit] [compiler-rt] Add llvm-lit global command cache to speed up tes…"

This reverts commit 4e007c117e00efceacb9cd0560544491d1474106.
DeltaFile
+0-88llvm/utils/lit/tests/unit/Util.py
+34-15compiler-rt/test/lit.common.cfg.py
+1-24llvm/utils/lit/lit/util.py
+0-16llvm/utils/lit/lit/LitConfig.py
+35-1434 files

LLVM/project f7311b6clang/test/AST/HLSL ConstantBuffers-AST-error.hlsl, clang/test/CodeGenHLSL cbuffer_copy_layout.hlsl

Update tests to work with #194989
DeltaFile
+1-1clang/test/AST/HLSL/ConstantBuffers-AST-error.hlsl
+1-1clang/test/SemaHLSL/BuiltIns/ConstantBuffers.hlsl
+0-1clang/test/CodeGenHLSL/cbuffer_copy_layout.hlsl
+2-33 files

OpenBSD/ports GNxmrq1devel/universal-ctags distinfo Makefile, devel/universal-ctags/pkg PLIST

   Update universal-ctags to 6.2.1
VersionDeltaFile
1.9+10-0devel/universal-ctags/pkg/PLIST
1.12+2-2devel/universal-ctags/distinfo
1.25+1-2devel/universal-ctags/Makefile
+13-43 files