LLVM/project 3f8562e — 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 and reloads drop 0.4% and .text 0.04%, 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. reloc-opt.ll gets an NF add that keeps
its source live, because compaction compresses the existing one to the

    [3 lines not shown]
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,433-13,434llvm/test/CodeGen/X86/vector-deinterleave8-i64.ll
+13,329-13,243llvm/test/CodeGen/X86/vector-interleaved-store-i64-stride-7.ll
+97,981-98,249517 files not shown
+672,212-674,661523 files

LLVM/project f6669c7 — llvm/include/llvm/DebugInfo/PDB/Native RawTypes.h, llvm/test/DebugInfo/PDB pdbdump-fixups.test

[llvm-pdbutil] Add support for PDB FIXUP streams (#248728)

Dump FIXUP records and support converting them to and from YAML. 

Public format references:
- [Microsoft pdb-rs: FIXUP record
layout](https://github.com/microsoft/pdb-rs/blob/main/docs/pdb/dbi_fixups.md)
- [LLVM: DBI optional debug header, slot
2](https://llvm.org/docs/PDB/DbiStream.html#dbi-optional-dbg-stream)
- [Microsoft PDB source: `dbgtypeFixup` and
`XFIXUP_DATA`](https://github.com/microsoft/microsoft-pdb/blob/805655a28bd8198004be2ac27e6e0290121a5e89/PDB/dbi/dbi.h#L1477-L1480)

Assisted-by: GPT-6.2 Sol
DeltaFile
+113-0llvm/test/DebugInfo/PDB/pdbdump-fixups.test
+95-0llvm/tools/llvm-pdbutil/DumpOutputStyle.cpp
+28-0llvm/tools/llvm-pdbutil/YAMLOutputStyle.cpp
+25-1llvm/tools/llvm-pdbutil/llvm-pdbutil.cpp
+19-0llvm/include/llvm/DebugInfo/PDB/Native/RawTypes.h
+14-0llvm/tools/llvm-pdbutil/PdbYaml.cpp
+294-17 files not shown
+334-313 files

LLVM/project 130e10e — clang/lib/CodeGen CodeGenFunction.h CGAtomic.cpp, clang/test/OpenMP amdgpu-unsafe-fp-atomics.cpp target_atomic_device_scope.cpp

[OpenMP] Use device scope for atomic constructs on the device (#240426)

OpenMP 6.0, 17.8.5 specifies that "The memscope clause determines the
binding thread set for an atomic region. If the memscope clause is not
present, the behavior is as if the memscope clause appeared on the
construct with the device scope-specifier."

Thread the sync scopes through codegen amd also add a release note
because this is changing existing behavior.
Existing behavior was overly cautios for OpenMP 5.2, too, though. The
atomic construct never specified the option of having system-level
scope. This only came with the memscope clause and it's "all"
scope-specifier.

Assisted-by: LLM
DeltaFile
+130-0clang/test/OpenMP/target_atomic_device_scope.cpp
+24-9clang/lib/CodeGen/CGStmtOpenMP.cpp
+16-16clang/test/OpenMP/amdgpu-unsafe-fp-atomics.cpp
+16-11clang/lib/CodeGen/CGAtomic.cpp
+12-10llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
+6-3clang/lib/CodeGen/CodeGenFunction.h
+204-493 files not shown
+214-539 files

LLVM/project 8d33c0f — llvm/lib/Target/RISCV RISCVFrameLowering.cpp

Move CalleeSaved and Locals declarations closer to their use
DeltaFile
+4-3llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
+4-31 files

LLVM/project cf8bd65 — llvm/lib/CodeGen/SelectionDAG DAGCombiner.cpp, llvm/test/CodeGen/X86 pr72539.ll combine-xor.ll

[DAGCombiner] Fold repeated operands before reassociating constants (#244490)

In reassociateOpsCommutative, check (x ^ y) ^ x -> y and the matching
and/or folds before reassociating constants out. Otherwise
(xor (xor x, C), x) becomes (xor (xor x, x), C), and after legalization
the vector (xor x, x) -> 0 fold can't fire if BUILD_VECTOR is illegal.
DeltaFile
+56-0llvm/test/CodeGen/X86/combine-xor.ll
+19-18llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+8-15llvm/test/CodeGen/X86/pr72539.ll
+83-333 files

LLVM/project 778c83a — clang/test/CodeGen/AArch64 fmv-resolver-emission.c, clang/test/CodeGenCXX likely-module-local.cpp

[clang][CodeGen] Do not set likely_module_local on local-linkage functions (#248822)

Internal and private functions are already module-local, so setting
likely_module_local on them is redundant.

Assisted-by: Gemini
DeltaFile
+30-30clang/test/OpenMP/threadprivate_codegen.cpp
+25-25clang/test/OpenMP/parallel_private_codegen.cpp
+6-6clang/test/OpenMP/parallel_firstprivate_codegen.cpp
+6-6clang/test/CodeGen/AArch64/fmv-resolver-emission.c
+11-0clang/test/CodeGenCXX/likely-module-local.cpp
+5-5clang/test/OpenMP/for_lastprivate_codegen.cpp
+83-724 files not shown
+90-7910 files

LLVM/project 7d9803f — llvm/include/llvm/Transforms/IPO Attributor.h, llvm/lib/Transforms/IPO AttributorAttributes.cpp Attributor.cpp

[Attributor][NFC] Rename CheckPotentiallyDead to IncludeAssumedDead (#249049)

The flag makes the predicate also run on assumed-dead sites, so the old
name read the other way (see #248774 discussion).

Assisted-by: Claude Opus 5.5
DeltaFile
+11-11llvm/lib/Transforms/IPO/Attributor.cpp
+11-5llvm/include/llvm/Transforms/IPO/Attributor.h
+2-2llvm/lib/Transforms/IPO/AttributorAttributes.cpp
+24-183 files

LLVM/project 86e2d4f — llvm/lib/Target/AArch64 AArch64AsmPrinter.cpp, llvm/test/CodeGen/AArch64 windows-trap-unreachable.ll

[aarch64][win] Fix trap emission for unwinding after noreturn invokes (#249048)

PR #232358 changed the trap emission for Arm64 Windows EH to only insert
traps where the block had no successors and checked only the next block
in layout order. Since a noreturn invoke in a catch funclet can have
exceptional CFG successors and an empty normal-continuation block, this
code would miss the boundary between the catch funclets, causing the
call's return address to point into the next funclet, breaking exception
handling.

The fix is to scan past blocks with no real instructions in layout
order, without requiring an empty successor list, then emit a trap if a
funclet, section, or function boundary comes first.

Fixes #248881
DeltaFile
+43-0llvm/test/CodeGen/AArch64/windows-trap-unreachable.ll
+18-14llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp
+61-142 files

LLVM/project 691808a — clang/lib/CodeGen/TargetBuiltins ARM.cpp, clang/test/CodeGen bpf-attr-preserve-access-index-enum-switch.c bpf-attr-preserve-access-index-enum.c

[BPF] Load a 32-bit relocated enum value with a 32-bit immediate (#246702)

Since commit c080a0b9b673 ("[BPF] Support preserve_access_index
attribute
for enum (#232498)"), an enumerator of an enum with the
preserve_access_index attribute is relocated as
__builtin_preserve_enum_value(), whose 64-bit value is then converted to
the type of the enumerator, normally int:
```
  enum E { N = 10 } __attribute__((preserve_access_index));
  enum U { M = 0x80000000 } __attribute__((preserve_access_index));

  long f2(void) { return N; }
  unsigned long f3(void) { return M; }
```
is compiled to:
```
  f2:
    r0 = 0xa ll          /* CO-RE <enumval_value> enum E::N */

    [43 lines not shown]
DeltaFile
+181-0llvm/test/CodeGen/BPF/CORE/intrinsic-enum-value-imm32.ll
+35-18clang/test/CodeGen/bpf-attr-preserve-access-index-enum.c
+35-3llvm/lib/Target/BPF/BPFAbstractMemberAccess.cpp
+20-5llvm/lib/Target/BPF/BTFDebug.cpp
+8-8clang/test/CodeGen/bpf-attr-preserve-access-index-enum-switch.c
+15-0clang/lib/CodeGen/TargetBuiltins/ARM.cpp
+294-345 files not shown
+314-3911 files

LLVM/project 6e53877 — llvm/lib/Target/AMDGPU SIDefines.h, llvm/lib/Target/AMDGPU/Disassembler AMDGPUDisassembler.cpp

AMDGPU: Do not decode inv-2pi inline constant on gfx6/gfx7 (#249034)

The disassembler assumed the inline constant was always available. On
SI/CI the encoding is reserved and decoding it printed a literal which
does not encode back to the same bytes. A literal with that value was
also printed with lit().

Assisted-by: Claude
DeltaFile
+17-0llvm/test/MC/Disassembler/AMDGPU/gfx6_gfx7_inv2pi.txt
+5-3llvm/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp
+1-0llvm/lib/Target/AMDGPU/SIDefines.h
+23-33 files

LLVM/project fe1abf5 — llvm/lib/Target/AArch64 AArch64TargetTransformInfo.cpp

fixup! [AArch64] Implement InstCombine for sve_and_u and sve_eor_u
DeltaFile
+84-53llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
+84-531 files

LLVM/project 0863493 — llvm/lib/Target/AMDGPU SIDefines.h, llvm/lib/Target/AMDGPU/Disassembler AMDGPUDisassembler.cpp

AMDGPU: Decode gfx/gfx7 special register encodings (#249032)

flat_scratch and xnack_mask do not exist on gfx6. gfx6 and gfx7 have
s102 and s103 where VI has flat_scratch. gfx7 encodes flat_scratch
where gfx8 has xnack_mask.

Assisted-by: Claude
DeltaFile
+21-6llvm/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp
+22-0llvm/test/MC/Disassembler/AMDGPU/gfx6_invalid.txt
+12-0llvm/test/MC/Disassembler/AMDGPU/gfx7_dasm.txt
+12-0llvm/test/MC/Disassembler/AMDGPU/gfx6_gfx7_dasm.txt
+2-1llvm/lib/Target/AMDGPU/SIDefines.h
+69-75 files

LLVM/project 0b4a759 — llvm/test/TableGen RuntimeLibcallEmitter-calling-conv.td RuntimeLibcallEmitter-predicate-dag.td, llvm/utils/TableGen/Basic PredicateExpanderDag.cpp RuntimeLibcalls.cpp

TableGen: Parenthesize combined LibcallPredicate conditions (#249007)

Avoid operator precedence problems by parenthesizing the code snippet.

e.g., fix emitting (all_of IsOSDarwin, IsARMOrThumb)` as
`TT.isOSDarwin() && TT.isARM() || TT.isThumb()`

Assisted-by: Claude
DeltaFile
+17-5llvm/test/TableGen/RuntimeLibcallEmitter-predicate-dag.td
+6-4llvm/utils/TableGen/Basic/PredicateExpanderDag.h
+7-2llvm/utils/TableGen/Basic/RuntimeLibcalls.cpp
+2-2llvm/utils/TableGen/Basic/PredicateExpanderDag.cpp
+2-2llvm/test/TableGen/RuntimeLibcallEmitter-calling-conv.td
+1-1llvm/utils/TableGen/Common/SubtargetFeatureInfo.cpp
+35-166 files

LLVM/project 6eca227 — clang/include/clang/AST StmtOpenMP.h, clang/lib/AST StmtOpenMP.cpp

[clang][OpenMP] Extend no-loop promotion to split spellings (#224650)

Widen the no-loop promotion to apply not only to the fused target teams
distribute parallel for but include the same region written as separate
directives, other directives promotable to parallel for, and regions
carrying a schedule clause that asks for a mapping a no-loop kernel
already provides (static or dynamic with a chunk size of 1, and auto).

Fix the visitor that checks whether a teams loop can be promoted to
parallel for. A teams loop with calls to non API routines cannot be
promoted to parallel for, but the visitor overrode such a case when
there was a later call to an API routine.

Assisted by: Claude Opus 5.5
DeltaFile
+157-24clang/test/OpenMP/target_no_loop.cpp
+46-31clang/lib/CodeGen/CGStmtOpenMP.cpp
+63-13clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp
+10-1clang/include/clang/AST/StmtOpenMP.h
+3-2clang/lib/Sema/SemaOpenMP.cpp
+2-1clang/lib/AST/StmtOpenMP.cpp
+281-722 files not shown
+283-728 files

LLVM/project 2594c89 — llvm/test/CodeGen/AMDGPU amdgpu-attributor-function-analyses.ll

AMDGPU: Fix amdgpu-attributor analysis test in EXPENSIVE_CHECKS builds (#249052)

Fix the changed output with -verify-analysis-invalidation=0
DeltaFile
+1-1llvm/test/CodeGen/AMDGPU/amdgpu-attributor-function-analyses.ll
+1-11 files

LLVM/project 13dc066 — llvm/test/Transforms/LoopVectorize vplan-based-stride-mv.ll, llvm/test/Transforms/LoopVectorize/VPlan vplan-based-stride-mv.ll

Fix typos
DeltaFile
+1-1llvm/test/Transforms/LoopVectorize/vplan-based-stride-mv.ll
+1-1llvm/test/Transforms/LoopVectorize/VPlan/vplan-based-stride-mv.ll
+2-22 files

LLVM/project 161773b — llvm/lib/Transforms/Vectorize VPlanTransforms.cpp

Fix typos
DeltaFile
+8-7llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+8-71 files

LLVM/project 508aa42 — flang-rt/cmake/modules FlangRTIntrospection.cmake, flang-rt/lib/runtime CMakeLists.txt iso_c_binding.f90

[Flang-RT] Introspect the values of int_fast16_t and int_fast32_t  (#248300)

Determine the size of int_fast16_t and int_fast32_t using platform
introspection for the target triple.

Note the offload situation is fragile: Ideally, `int_fast16_t` and
`int_fast32_t` should be the same on the GPU as on the host or we get
data layout mismatches. However, depending on the vendor toolchain, the
compiler used, its flags (`-nostdlibinc`), the way it is compiled
(`FLANG_RT_EXPERIMENTAL_OFFLOAD_SUPPORT` vs `LLVM_RUNTIME_TARGETS`),
installed headers (`gnu/stubs-32.h`) and other factors, you get
different results.

See discussion at
https://discourse.llvm.org/t/rfc-determining-the-size-of-c-interoperable-types/92841

Fixes #208361

Assisted-by AI
DeltaFile
+52-0flang-rt/test/Driver/iso_c_binding-int-fast.f90
+48-0flang-rt/cmake/modules/FlangRTIntrospection.cmake
+6-12flang-rt/lib/runtime/iso_c_binding.f90
+18-0flang/test/Semantics/iso_c_binding-int-fast.f90
+6-0flang-rt/lib/runtime/CMakeLists.txt
+5-0flang/docs/ReleaseNotes.md
+135-121 files not shown
+139-127 files

LLVM/project 2db13dd — mlir/lib/Conversion/SPIRVToLLVM SPIRVToLLVM.cpp, mlir/test/Conversion/SPIRVToLLVM misc-ops-to-llvm.mlir

[mlir][SPIR-V] Fix duplicate execution mode globals in SPIRVToLLVM (#239337)

Entry point can use the same execution mode twice, like DenormPreserve
for different FP types

Give each one its own global name
DeltaFile
+18-0mlir/test/Conversion/SPIRVToLLVM/misc-ops-to-llvm.mlir
+10-0mlir/lib/Conversion/SPIRVToLLVM/SPIRVToLLVM.cpp
+28-02 files

LLVM/project 505493a — llvm/lib/CodeGen/GlobalISel CombinerHelper.cpp, llvm/test/CodeGen/AArch64 itofp.ll shufflevector.ll

[AArch64][GlobalISel] Fold buildvector(unmerge) to shuffle (#243779)

After legalization we can end up with buildvector of unmerge that
permute some of the lanes. This adds a combine that folds the
buildvector of unmerge into a shuffle.
DeltaFile
+89-0llvm/test/CodeGen/AArch64/GlobalISel/combine-unmerge-undef.mir
+67-0llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
+18-42llvm/test/CodeGen/AArch64/vec-combine-trunc-dup-ext.ll
+12-19llvm/test/CodeGen/AArch64/arm64-zip.ll
+7-16llvm/test/CodeGen/AArch64/shufflevector.ll
+6-12llvm/test/CodeGen/AArch64/itofp.ll
+199-894 files not shown
+227-9410 files

LLVM/project 32a633c — mlir/lib/Dialect/Arith/IR InferIntDivisibilityOpInterfaceImpl.cpp, mlir/test/Analysis/DataFlow integer-divisibility.mlir

[mlir][arith] Fix addi/subi divisibility inference under wraparound (#248140)

Wrapping only preserves the power-of-two part of the gcd of the operand
divisors. Keep the full unsigned/signed gcd only under nuw/nsw,
otherwise
reduce to the largest power-of-two divisor (v & -v).

Follow-up PR to #237342.
DeltaFile
+56-0mlir/test/Analysis/DataFlow/integer-divisibility.mlir
+19-2mlir/lib/Dialect/Arith/IR/InferIntDivisibilityOpInterfaceImpl.cpp
+75-22 files

LLVM/project fea57cb — clang/test/CodeGenCXX likely-module-local.cpp

[spr] update

Created using spr 2.0.0-beta.2
DeltaFile
+5-3clang/test/CodeGenCXX/likely-module-local.cpp
+5-31 files

LLVM/project 3ee07e1 — clang/test/CodeGen/AArch64 fmv-resolver-emission.c, clang/test/CodeGenCXX likely-module-local.cpp

[spr] update

Created using spr 2.0.0-beta.2
DeltaFile
+30-30clang/test/OpenMP/threadprivate_codegen.cpp
+25-25clang/test/OpenMP/parallel_private_codegen.cpp
+11-2clang/test/CodeGenCXX/likely-module-local.cpp
+6-6clang/test/OpenMP/parallel_firstprivate_codegen.cpp
+6-6clang/test/CodeGen/AArch64/fmv-resolver-emission.c
+5-5clang/test/OpenMP/for_lastprivate_codegen.cpp
+83-744 files not shown
+90-8110 files

LLVM/project 25439ad — clang/test/CodeGen inline-builtin-attrs.c

[test][clang] Precommit inline builtin attribute tests (#248821)

Add tests for symbol attributes (used, retain, weak, visibility, global
ctor/dtor) and naked on inline builtins and their .inline clones.

Assisted-by: Gemini
DeltaFile
+91-13clang/test/CodeGen/inline-builtin-attrs.c
+91-131 files

LLVM/project 0e7030f — llvm/lib/Target/AMDGPU FLATInstructions.td SIFrameLowering.cpp, llvm/test/CodeGen/AMDGPU llvm.amdgcn.ds.atomic.async.barrier.arrive.b64.ll async-barrier-arrive-replay-mixed.ll

[AMDGPU] Clarify async barrier replay handling (NFC)

Clarify that replay loads and ordinary async loads can appear in the same function,
but only replay loads temporarily clear EXEC, and simplify the EXEC save and restore checks
without changing which instructions are rewritten.

AI assisted.
DeltaFile
+44-0llvm/test/CodeGen/AMDGPU/async-barrier-arrive-replay-mixed.ll
+4-6llvm/lib/Target/AMDGPU/SIFrameLowering.cpp
+2-1llvm/lib/Target/AMDGPU/FLATInstructions.td
+0-2llvm/test/CodeGen/AMDGPU/llvm.amdgcn.ds.atomic.async.barrier.arrive.b64.ll
+50-94 files

LLVM/project 57dab36 — llvm/include/llvm/CodeGen/GlobalISel MIPatternMatch.h, llvm/lib/Target/RISCV RISCVInstrInfoVVLPatterns.td

[RISCV][GISel] Add GlobalISel equivalent of the SplatPat complex pattern (#248600)

Add a GIComplexPatternEquiv for SplatPat and implement selectVSplat in
the GlobalISel instruction selector, mirroring
RISCVDAGToDAGISel::selectVSplat. The importer can now use the patterns
that need it, so vector operations with a splat of an integer scalar
select to the .vx forms, for example vadd.vx instead of vmv.v.x +
vadd.vv. The lookup of the G_SPLAT_VECTOR is factored out into a
findVSplat helper shared with selectVSplatImmHelper.

Part of #246831
DeltaFile
+46-4llvm/test/CodeGen/RISCV/GlobalISel/rvv/splat-imm-fold.ll
+20-8llvm/lib/Target/RISCV/GISel/RISCVInstructionSelector.cpp
+6-0llvm/include/llvm/CodeGen/GlobalISel/MIPatternMatch.h
+2-0llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td
+74-124 files

LLVM/project 6d7134f — libcxx/include/__ranges cartesian_product_view.h, libcxx/test/std/ranges/range.adaptors/range.cartesian.product.view range.concept.compile.pass.cpp general.pass.cpp

[libc++] P2374: `views::cartesian_product` (#111215)

This patch implements C++23 std::views::cartesian_product.

Closes #105028 (LWG3760)
Closes #105029 (LWG3761)
Closes #105051 (LWG3801)
Closes #105072 (LWG3820)
Closes #105087 (LWG3849)
Closes #105209 (P2374R4)
Closes #105231 (P2540R1)

Co-authored-by: Hristo Hristov <zingam at outlook.com>
Co-authored-by: Lucas Mellone <github.snugness349 at passinbox.com>
Co-authored-by: Louis Dionne <ldionne.2 at gmail.com>
DeltaFile
+454-0libcxx/include/__ranges/cartesian_product_view.h
+198-0libcxx/test/std/ranges/range.adaptors/range.cartesian.product.view/general.pass.cpp
+188-0libcxx/test/std/ranges/range.adaptors/range.cartesian.product.view/iterator/arithmetic.pass.cpp
+185-0libcxx/test/std/ranges/range.adaptors/range.cartesian.product.view/range.concept.compile.pass.cpp
+184-0libcxx/test/std/ranges/range.adaptors/range.cartesian.product.view/iterator/compare.pass.cpp
+166-0libcxx/test/std/ranges/range.adaptors/range.cartesian.product.view/iterator/increment.pass.cpp
+1,375-033 files not shown
+3,359-8039 files

LLVM/project 9977af3 — llvm/lib/Target/AMDGPU AMDGPUPromoteAlloca.cpp AMDGPULowerModuleLDSPass.cpp, llvm/test/CodeGen/AMDGPU lds-link-time-named-barrier.ll lower-module-lds-link-time-comdat.ll

[AMDGPU] Fix LDS externalization for object linking (#243337)

With object linking, the backend converts LDS variables and named
barriers to external declarations, and the linker allocates them. There
are two cases that could potentially make invalid IR or cause a crash:

- LDS or a named barrier with vague linkage, for example a shared
variable in an inline function, is in a comdat. The external declaration
kept the comdat, and the verifier rejected the module: "Declaration may
not be in a Comdat!".
- Alloca promotion to LDS runs after LDS lowering. The LDS variable that
it created stayed an internal definition, and the asm printer asserted:
"LDS definitions should have been externalized when object linking is
enabled".

This PR fixes both of them.

This PR was assisted by AI but I reviewed all the changes.
DeltaFile
+83-0llvm/test/CodeGen/AMDGPU/promote-alloca-object-linking.ll
+8-18llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp
+26-0llvm/lib/Target/AMDGPU/AMDGPUMemoryUtils.h
+26-0llvm/test/CodeGen/AMDGPU/lower-module-lds-link-time-comdat.ll
+16-0llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
+10-2llvm/test/CodeGen/AMDGPU/lds-link-time-named-barrier.ll
+169-201 files not shown
+170-227 files

LLVM/project 5190f4c — llvm/test/Transforms/LoopVectorize vplan-based-stride-mv.ll, llvm/test/Transforms/LoopVectorize/VPlan vplan-based-stride-mv.ll

Regenerate CHECKs for newly added tests (via merge)
DeltaFile
+95-26llvm/test/Transforms/LoopVectorize/VPlan/vplan-based-stride-mv.ll
+44-46llvm/test/Transforms/LoopVectorize/vplan-based-stride-mv.ll
+139-722 files

LLVM/project 9a71d0d — llvm/lib/Transforms/Vectorize VPlanRecipes.cpp

Fix crash in VPFirstOrderRecurrencePHIRecipe::execute

See `@stride_feeding_for_init` in `vplan-based-stride-mv.ll`
DeltaFile
+1-1llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
+1-11 files