LLVM/project a10aae8offload/tools/kernelreplay llvm-omp-kernel-replay.cpp

[offload] Remove unnecessary extra allocations in kernel replay tool (#193108)

The tool had two extra allocations holding the device memory and
globals. Apparently, the AMDGPU plugin failed in the past to transfer
data from the file memory mapping, and required these extra buffers.
After testing it on MI300A and MI250X, this issue is not present
anymore. Thus, we are removing them for now.
DeltaFile
+9-23offload/tools/kernelreplay/llvm-omp-kernel-replay.cpp
+9-231 files

LLVM/project 6c35bdbllvm/lib/Transforms/Vectorize SLPVectorizer.cpp, llvm/test/Transforms/SLPVectorizer/X86 copyable_reorder.ll

[SLP] Normalize copyable operand order to group loads for better vectorization

When building operands for entries with copyable elements, non-copyable
lanes may have inconsistent operand order (e.g., some lanes have
load,add while others have add,load for commutative ops). This prevents
VLOperands::reorder() from grouping consecutive loads on one side,
degrading downstream vectorization.
Normalize in two steps during buildOperands:
1) Majority voting: swap lanes that are the exact inverse of the
   majority operand-type pattern.
2) Load preference: if the majority pattern has loads at OpIdx 1
   (strict majority), swap to put loads at OpIdx 0, enabling
   vector load + copyable patterns.

Reviewers: hiraditya, RKSimon

Pull Request: https://github.com/llvm/llvm-project/pull/189181
DeltaFile
+12-26llvm/test/Transforms/SLPVectorizer/X86/copyable_reorder.ll
+26-7llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+38-332 files

LLVM/project 500e913llvm/lib/Target/AMDGPU AMDGPURegBankLegalizeRules.cpp, llvm/test/CodeGen/AMDGPU llvm.amdgcn.cvt.sat.pk.ll

AMDGPU/GlobalISel: RegBankLegalize rules for amdgcn_sat_pk4_i4_i8 / amdgcn_sat_pk4_u4_u8 (#193096)
DeltaFile
+2-2llvm/test/CodeGen/AMDGPU/llvm.amdgcn.cvt.sat.pk.ll
+4-0llvm/lib/Target/AMDGPU/AMDGPURegBankLegalizeRules.cpp
+6-22 files

LLVM/project f46da03lldb/source/Plugins/Platform/WebAssembly PlatformWasm.cpp

[lldb] Don't enable ASLR for the Wasm runtime (#193115)

We're launching the Wasm runtime (a native host binary), not the target
being debugged. Clear flags that don't apply to the runtime process.
DeltaFile
+3-1lldb/source/Plugins/Platform/WebAssembly/PlatformWasm.cpp
+3-11 files

LLVM/project 9356e1eclang/lib/ScalableStaticAnalysisFramework/Analyses/UnsafeBufferUsage UnsafeBufferUsageExtractor.cpp

Update clang/lib/ScalableStaticAnalysisFramework/Analyses/UnsafeBufferUsage/UnsafeBufferUsageExtractor.cpp

Co-authored-by: Balázs Benics <benicsbalazs at gmail.com>
DeltaFile
+1-1clang/lib/ScalableStaticAnalysisFramework/Analyses/UnsafeBufferUsage/UnsafeBufferUsageExtractor.cpp
+1-11 files

NetBSD/src o7Utzu3external/bsd/jemalloc/dist/include/jemalloc jemalloc.h, external/bsd/jemalloc/include/jemalloc jemalloc.h

   re-instate the namespace protection from 5.3.0
VersionDeltaFile
1.3+37-5external/bsd/jemalloc/dist/include/jemalloc/jemalloc.h
1.12+37-5external/bsd/jemalloc/include/jemalloc/jemalloc.h
+74-102 files

LLVM/project 6fe6f1bllvm/include/llvm/CodeGen MachineBlockHashInfo.h, llvm/include/llvm/Passes MachinePassRegistry.def

[CodeGen] Add MachineBlockHashInfoAnalysis for the new pass manager (#193107)

This patch introduces MachineBlockHashInfoAnalysis and its corresponding
printer pass MachineBlockHashInfoPrinterPass to the new pass manager.

This allows running -passes="print<machine-block-hash>" via llc.

Can't merge before #192826, and don't want to mix test patch with
determinism fix in #192826.

This is #192911 which was accidentally merged into spr/users branch.
DeltaFile
+53-0llvm/test/CodeGen/X86/machine-block-hash.mir
+23-1llvm/lib/CodeGen/MachineBlockHashInfo.cpp
+23-0llvm/include/llvm/CodeGen/MachineBlockHashInfo.h
+3-0llvm/include/llvm/Passes/MachinePassRegistry.def
+1-0llvm/lib/Passes/PassBuilder.cpp
+103-15 files

LLVM/project ce73ab7clang/unittests/ScalableStaticAnalysisFramework/Analyses/UnsafeBufferUsage UnsafeBufferUsageTest.cpp

Update clang/unittests/ScalableStaticAnalysisFramework/Analyses/UnsafeBufferUsage/UnsafeBufferUsageTest.cpp

Co-authored-by: Balázs Benics <benicsbalazs at gmail.com>
DeltaFile
+1-1clang/unittests/ScalableStaticAnalysisFramework/Analyses/UnsafeBufferUsage/UnsafeBufferUsageTest.cpp
+1-11 files

LLVM/project 75790bfclang/include/clang/ScalableStaticAnalysisFramework/Analyses/EntityPointerLevel EntityPointerLevel.h EntityPointerLevelFormat.h, clang/include/clang/ScalableStaticAnalysisFramework/Analyses/UnsafeBufferUsage UnsafeBufferUsage.h

[SSAF][UnsafeBufferUsage] Add APIs to the EntityPointerLevel module for UnsafeBufferUsage (#191333)

- UnsafeBufferUsage serialization uses EntityPointerLevel's API to
serialize EntityPointerLevels.
- Add APIs to EntityPointerLevel for creating EPLs from Decls and
incrementing EPL's pointer level.
- Improve UnsafeBufferUsage serialization error messages with a test.

---------

Co-authored-by: Balázs Benics <benicsbalazs at gmail.com>
DeltaFile
+103-33clang/lib/ScalableStaticAnalysisFramework/Analyses/EntityPointerLevel/EntityPointerLevel.cpp
+29-8clang/include/clang/ScalableStaticAnalysisFramework/Analyses/EntityPointerLevel/EntityPointerLevel.h
+35-0clang/include/clang/ScalableStaticAnalysisFramework/Analyses/EntityPointerLevel/EntityPointerLevelFormat.h
+9-19clang/lib/ScalableStaticAnalysisFramework/Analyses/UnsafeBufferUsage/UnsafeBufferUsage.cpp
+13-5clang/test/Analysis/Scalable/UnsafeBufferUsage/tu-summary-serialization.test
+2-6clang/include/clang/ScalableStaticAnalysisFramework/Analyses/UnsafeBufferUsage/UnsafeBufferUsage.h
+191-711 files not shown
+193-737 files

LLVM/project 13e18f8llvm/lib/Transforms/Vectorize SLPVectorizer.cpp, llvm/test/Transforms/SLPVectorizer/X86 select-logical-or-and-i1-vector.ll

[SLP] Improve cost model for i1 select-as-or/and patterns

Model `select i1 %c, i1 true, i1 %d` as `or` and
`select i1 %c, i1 %d, i1 false` as `and` in the SLP cost model, since
these are the operations the backend will lower them to. The previous
select cost overestimated the vector cost of these patterns, preventing
profitable vectorization of i1 condition chains.

Reviewers: hiraditya, RKSimon, bababuck

Pull Request: https://github.com/llvm/llvm-project/pull/188572
DeltaFile
+84-34llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+20-24llvm/test/Transforms/SLPVectorizer/X86/select-logical-or-and-i1-vector.ll
+104-582 files

LLVM/project c758592llvm/docs/CommandGuide dsymutil.rst, llvm/test/tools/dsymutil codesign.test cmdline.test

[dsymutil] Add support for code signing dSYM bundles (#190676)

This PR adds support for code signing the dSYM bundle using the
`codesign` command line utility.
DeltaFile
+57-0llvm/tools/dsymutil/dsymutil.cpp
+15-0llvm/test/tools/dsymutil/codesign.test
+6-0llvm/tools/dsymutil/Options.td
+5-0llvm/docs/CommandGuide/dsymutil.rst
+1-0llvm/test/tools/dsymutil/cmdline.test
+84-05 files

LLVM/project 9adf869llvm/include/llvm/CodeGen MachineBlockHashInfo.h, llvm/include/llvm/Passes MachinePassRegistry.def

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+53-0llvm/test/CodeGen/X86/machine-block-hash.mir
+23-1llvm/lib/CodeGen/MachineBlockHashInfo.cpp
+23-0llvm/include/llvm/CodeGen/MachineBlockHashInfo.h
+3-0llvm/include/llvm/Passes/MachinePassRegistry.def
+1-0llvm/lib/Passes/PassBuilder.cpp
+103-15 files

LLVM/project 83dfe3dlldb/include/lldb/Target ExecutionContextScope.h

[lldb] Fix minor docstring mis-formatting (NFC) (#193106)
DeltaFile
+1-2lldb/include/lldb/Target/ExecutionContextScope.h
+1-21 files

LLVM/project 4e32f89lldb/include/lldb/Symbol Symtab.h, lldb/source/Symbol Symtab.cpp

[LLDB] Fix potential data race in Symtab initialization (#192753)

Claude pointed out to me that Symtab::FindFunctionSymbols doesn't lock
the mutex before checking m_name_indexes_computed and recomputing it. On
top of that all the initialization flags are bitfields, which makes any
unguarded concurrent accesses UB. Changing them to bools should no
longer be necessary after introducing a lock, but several of the public
methods trust that their caller holds the lock so I'm opting to remove
this footgun just in case.

rdar://174988238
DeltaFile
+105-111lldb/source/Symbol/Symtab.cpp
+7-4lldb/include/lldb/Symbol/Symtab.h
+112-1152 files

LLVM/project b332cb0llvm/include/llvm/CodeGen MachineBlockHashInfo.h, llvm/lib/CodeGen MachineBlockHashInfo.cpp

[NFC][CodeGen] Add MachineBlockHashInfoResult for use in NewPM (#193059)

This patch extracts the hash computation logic into a separate
`MachineBlockHashInfoResult` class. This allows the data to be
managed independently of the legacy pass manager and prepares
the infrastructure for the New Pass Manager.

Preparation for #192911.
DeltaFile
+15-3llvm/lib/CodeGen/MachineBlockHashInfo.cpp
+13-2llvm/include/llvm/CodeGen/MachineBlockHashInfo.h
+28-52 files

LLVM/project 07f29a3clang/test/CodeGenHLSL/builtins mad.hlsl, clang/test/CodeGenHLSL/convergence for.hlsl while.hlsl

Revert "[HLSL][DirectX] Emit convergence control tokens when targeting DirectX" (#193090)

This change appears to introduce complications when trying to do a full
loop unroll that is exhibited here:
https://github.com/llvm/llvm-project/actions/runs/24577221310/job/71865579618.
This results in invalid DXIL as the unreachable branch is not correctly
cleaned up.

Initial leads look like this is because the instructions with
convergence control tokens are still being used for analysis when they
are within an unreachable branch.

Reverts llvm/llvm-project#188792
DeltaFile
+0-72llvm/test/Transforms/LoopRotate/convergent-controlled.ll
+0-70llvm/test/Transforms/SimpleLoopUnswitch/convergent-controlled.ll
+0-70llvm/test/Transforms/IndVarSimplify/convergent-controlled-loop.ll
+26-28clang/test/CodeGenHLSL/convergence/for.hlsl
+24-24clang/test/CodeGenHLSL/builtins/mad.hlsl
+19-21clang/test/CodeGenHLSL/convergence/while.hlsl
+69-28567 files not shown
+163-69773 files

LLVM/project 16904ccclang/include/clang/ScalableStaticAnalysisFramework/Analyses/EntityPointerLevel EntityPointerLevelFormat.h

move template in header out of anon namespace to file scope
DeltaFile
+0-2clang/include/clang/ScalableStaticAnalysisFramework/Analyses/EntityPointerLevel/EntityPointerLevelFormat.h
+0-21 files

Linux/linux b66cb4finclude/linux printk.h, kernel/printk printk_ringbuffer.c printk_ringbuffer.h

Merge tag 'printk-for-7.1' of git://git.kernel.org/pub/scm/linux/kernel/git/printk/linux

Pull printk updates from Petr Mladek:

 - Fix printk ring buffer initialization and sanity checks

 - Workaround printf kunit test compilation with gcc < 12.1

 - Add IPv6 address printf format tests

 - Misc code and documentation cleanup

* tag 'printk-for-7.1' of git://git.kernel.org/pub/scm/linux/kernel/git/printk/linux:
  printf: Compile the kunit test with DISABLE_BRANCH_PROFILING DISABLE_BRANCH_PROFILING
  lib/vsprintf: use bool for local decode variable
  lib/hexdump: print_hex_dump_bytes() calls print_hex_dump_debug()
  printk: ringbuffer: fix errors in comments
  printk_ringbuffer: Add sanity check for 0-size data
  printk_ringbuffer: Fix get_data() size sanity check

    [2 lines not shown]
DeltaFile
+15-12kernel/printk/printk_ringbuffer.c
+22-0lib/tests/printf_kunit.c
+3-2include/linux/printk.h
+2-2kernel/printk/printk_ringbuffer.h
+2-2lib/vsprintf.c
+2-0lib/tests/Makefile
+46-186 files

NetBSD/src CSOhcn7tests/usr.bin/xlint/lint1 msg_309.c

   tests/lint: add test cases for possibly zero-extended sign bit
VersionDeltaFile
1.10+8-1tests/usr.bin/xlint/lint1/msg_309.c
+8-11 files

Linux/linux ccbc9fdkernel/time clockevents.c tick-broadcast.c

Merge tag 'timers-urgent-2026-04-20' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull timer fix from Ingo Molnar:
 "Fix timer stalls caused by incorrect handling of the
  dev->next_event_forced flag"

* tag 'timers-urgent-2026-04-20' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  clockevents: Add missing resets of the next_event_forced flag
DeltaFile
+6-1kernel/time/clockevents.c
+1-0kernel/time/tick-broadcast.c
+7-12 files

NetBSD/src 8oIT7ybusr.bin/xlint/lint1 tree.c externs1.h

   lint: simplify deriving pointer types in expressions
VersionDeltaFile
1.713+9-9usr.bin/xlint/lint1/tree.c
1.246+1-2usr.bin/xlint/lint1/externs1.h
+10-112 files

OpenBSD/src 2Jt23D4distrib/notes/riscv64 prep

   Remove the bootcmd hint for now

   On this jupiter box, U-Boot's bootcmd can't be interrupted on the serial
   console by pressing any key, Ctrl+C or ESC, even though the official
   docs say it should be possible by pressing any key.

   sigh
VersionDeltaFile
1.11+1-8distrib/notes/riscv64/prep
+1-81 files

LLVM/project ca002cfllvm/test/CodeGen/AArch64 sve-fixed-length-masked-expandloads.ll sve-streaming-mode-fixed-length-masked-expandload.ll, llvm/test/CodeGen/AArch64/GlobalISel select-with-no-legality-check.mir knownbits-vector.mir

Merge branch 'main' into users/bassiounix/clang/deduction-guides
DeltaFile
+26,606-0llvm/test/CodeGen/AArch64/sve-fixed-length-masked-expandloads.ll
+4,078-0llvm/test/CodeGen/AArch64/sve-streaming-mode-fixed-length-masked-expandload.ll
+1,604-1,567llvm/test/CodeGen/AArch64/clmul-scalable.ll
+0-1,370llvm/unittests/CodeGen/GlobalISel/KnownBitsVectorTest.cpp
+662-662llvm/test/CodeGen/AArch64/GlobalISel/select-with-no-legality-check.mir
+1,291-0llvm/test/CodeGen/AArch64/GlobalISel/knownbits-vector.mir
+34,241-3,5991,175 files not shown
+63,927-21,0481,181 files

LLVM/project 2747ba9clang/lib/ScalableStaticAnalysisFramework/Analyses SSAFAnalysesCommon.cpp SSAFAnalysesCommon.h, clang/lib/ScalableStaticAnalysisFramework/Analyses/EntityPointerLevel EntityPointerLevel.cpp

Merge branch 'users/ziqingluo/PR-174874942-2' into users/ziqingluo/PR-174874942-3

 Conflicts:
        clang/lib/ScalableStaticAnalysisFramework/Analyses/EntityPointerLevel/EntityPointerLevel.cpp
        clang/lib/ScalableStaticAnalysisFramework/Analyses/PointerFlow/PointerFlowAnalysis.cpp
DeltaFile
+3-3clang/lib/ScalableStaticAnalysisFramework/Analyses/EntityPointerLevel/EntityPointerLevel.cpp
+3-3clang/lib/ScalableStaticAnalysisFramework/Analyses/PointerFlow/PointerFlowAnalysis.cpp
+1-0clang/lib/ScalableStaticAnalysisFramework/Analyses/SSAFAnalysesCommon.cpp
+1-0clang/lib/ScalableStaticAnalysisFramework/Analyses/SSAFAnalysesCommon.h
+8-64 files

LLVM/project e05366eclang/docs ClangFormatStyleOptions.rst, clang/include/clang/Format Format.h

rebase

Created using spr 1.3.7
DeltaFile
+261-0llvm/test/CodeGen/AArch64/addp-shuffle.ll
+54-143llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.abs.ll
+143-48clang/include/clang/Format/Format.h
+141-18clang/docs/ClangFormatStyleOptions.rst
+71-39llvm/lib/CodeGen/MachineStripDebug.cpp
+82-28clang/unittests/Format/FormatTest.cpp
+752-276138 files not shown
+2,284-913144 files

LLVM/project ee24b9elldb/docs/use links.rst

[lldb][docs] Simplify the links page (#193038)

When we created the links page, we didn't have many so it made sense to
include a little snippet for some of the videos. Now that this has
grown, it makes the page harder to navigate.
DeltaFile
+9-51lldb/docs/use/links.rst
+9-511 files

NetBSD/src ju3vswFtests/usr.bin/xlint/lint1 msg_386.c msg_367.c, usr.bin/xlint/lint1 cksnprintb.c err.c

   lint: add more details to message about snprintf combinations
VersionDeltaFile
1.18+5-4usr.bin/xlint/lint1/cksnprintb.c
1.4+4-4tests/usr.bin/xlint/lint1/msg_386.c
1.284+3-3usr.bin/xlint/lint1/err.c
1.5+2-2tests/usr.bin/xlint/lint1/msg_367.c
+14-134 files

LLVM/project 212f63dclang/lib/ScalableStaticAnalysisFramework/Analyses/EntityPointerLevel EntityPointerLevel.cpp, clang/lib/ScalableStaticAnalysisFramework/Analyses/PointerFlow PointerFlowAnalysis.cpp

fix format
DeltaFile
+3-3clang/lib/ScalableStaticAnalysisFramework/Analyses/EntityPointerLevel/EntityPointerLevel.cpp
+3-3clang/lib/ScalableStaticAnalysisFramework/Analyses/PointerFlow/PointerFlowAnalysis.cpp
+6-62 files

LLVM/project 0fcca41clang/lib/CIR/CodeGen CIRGenExpr.cpp, clang/test/CIR/CodeGen cast.cpp

[CIR] Allow user-defined casts in emitPointerWithAlignment (#193078)

In CIR, we use a fully-covered switch for casts in
emitPointerWithAlignment and only allow casts that are known to be safe
to fall through without handling. Classic codegen uses a default and all
casts that don't already have special handling fall through. This change
moves CK_UserDefinedConversion to the group that we allow to fall
through and changes the unanalyzed group to emit an NYI diagnostic
rather than calling llvm_unreachable.
DeltaFile
+19-0clang/test/CIR/CodeGen/cast.cpp
+9-2clang/lib/CIR/CodeGen/CIRGenExpr.cpp
+28-22 files

LLVM/project 243b55bllvm/include/llvm/CodeGen MachineBlockHashInfo.h, llvm/lib/CodeGen MachineBlockHashInfo.cpp

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+15-3llvm/lib/CodeGen/MachineBlockHashInfo.cpp
+13-2llvm/include/llvm/CodeGen/MachineBlockHashInfo.h
+28-52 files