LLVM/project 8d0ab2d — llvm/lib/Transforms/Vectorize LoopVectorize.cpp, llvm/test/Transforms/LoopVectorize/AArch64 cmp_cost.ll replicated-load-used-as-address-via-blends.ll

[LV] Only charge legacy cost of forced scalars VPlan replicates. (#244725)

The legacy cost model charges forced scalars VF times their scalar cost,
even if VPlan folds them, hoists them or keeps them single-scalar. Only
pre-compute the legacy cost for forced scalars VPlan replicates per
lane; the VPlan cost model handles the rest.

This matches the existing behavior for InstsToScalarize.

Most test changes are due to no longer charging VF copies of `add %iv,
0` in the X86 interleave cost-model tests, which VPlan folds.

PR: https://github.com/llvm/llvm-project/pull/244725
DeltaFile
+55-79llvm/test/Transforms/LoopVectorize/X86/interleave-group-address-cost.ll
+41-53llvm/test/Transforms/LoopVectorize/AArch64/replicated-load-used-as-address-via-blends.ll
+19-7llvm/test/Transforms/LoopVectorize/X86/cost-model.ll
+15-9llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+0-16llvm/test/Transforms/LoopVectorize/AArch64/cmp_cost.ll
+3-3llvm/test/Transforms/LoopVectorize/X86/uniformshift.ll
+133-1671 files not shown
+136-1687 files

LLVM/project 1d0de55 — clang/lib/StaticAnalyzer/Core CallDescription.cpp, clang/unittests/StaticAnalyzer CallDescriptionTest.cpp

[analyzer] Avoid printing names in CallDescription::matchNameOnly (#244863)

CallDescription::matchNameOnly printed the name of every constructor,
destructor and operator call into a string to compare it against each
CallDescription. Reject operator names unless the description starts
with "operator" and destructor names unless it starts with '~', and
compare constructor and destructor names to the record identifier, which
is what printing them yields for named records.

On some LLVM TUs (GVN, LiveVariables, RegionStore, SemaExpr) this
reduces the instructions of the static analyzer by 0.4-1.0% and the
cycles by 0.4-1.1%; peak memory is unchanged within noise. The
diagnostics are unchanged.

Assisted-by: Claude Opus 5.5

---------

Co-authored-by: Gabor Horvath <gaborh at apple.com>
DeltaFile
+34-4clang/lib/StaticAnalyzer/Core/CallDescription.cpp
+14-0clang/unittests/StaticAnalyzer/CallDescriptionTest.cpp
+48-42 files

LLVM/project 7ec5894 — llvm/test/Transforms/ConstantMerge preserve-function-analyses.ll, llvm/test/Transforms/GlobalDCE preserve-function-analyses.ll

[Test][NFC]Fix tests in EXPENSIVE_CHECKS builds, NFC

Pull-request: https://github.com/llvm/llvm-project/pull/245385
DeltaFile
+2-2llvm/test/Transforms/SimplifyTypeTests/preserve-function-analyses.ll
+1-1llvm/test/Transforms/NameAnonGlobals/preserve-function-analyses.ll
+1-1llvm/test/Transforms/InferFunctionAttrs/preserve-function-analyses.ll
+1-1llvm/test/Transforms/GlobalSplit/preserve-function-analyses.ll
+1-1llvm/test/Transforms/GlobalDCE/preserve-function-analyses.ll
+1-1llvm/test/Transforms/ConstantMerge/preserve-function-analyses.ll
+7-71 files not shown
+8-87 files

LLVM/project 87ebba3 — llvm/lib/Analysis ScalarEvolution.cpp, llvm/test/Analysis/ScalarEvolution urem-0.ll

[SCEV] Fold urem by multiples of vscale using vscale_range. (#245058)

vscale is a power of 2 that is at most the maximum from vscale_range, so
X urem (C * vscale) is 0 if X is a multiple of C * max(vscale).

This pattern is something that is useful when trying to reason about
remainders of trip counts in the loop vectorizer.

PR: https://github.com/llvm/llvm-project/pull/245058
DeltaFile
+199-0llvm/test/Analysis/ScalarEvolution/urem-0.ll
+14-0llvm/lib/Analysis/ScalarEvolution.cpp
+213-02 files

LLVM/project 477fd5f — llvm/test/CodeGen/AMDGPU long-branch-return-address.mir long-branch-scavenge-return-address.mir

[AMDGPU][NFC] Precommit tests for long-branch return-address clobbers (#244501)

Capture the current scratch reservation and scavenging behavior before
fixing the return-address clobber.
DeltaFile
+54-0llvm/test/CodeGen/AMDGPU/long-branch-scavenge-return-address.mir
+53-0llvm/test/CodeGen/AMDGPU/long-branch-return-address.mir
+107-02 files

LLVM/project 09bda09 — clang/lib/CodeGen CGOpenMPRuntimeGPU.cpp, clang/test/OpenMP spirv_globalized_var_addrspace.c

[clang][OpenMP] Use the default address space for globalized variables

CGOpenMPRuntimeGPU casts two kinds of pointers into team-shared memory to
address space 0. On SPIR-V targets whose default address space is generic
(spirv64-intel, spirv64-amd-amdhsa), that is the private (Function)
address space:

  globalized local, emitGenericVarsProlog():
    %x = call ptr addrspace(4) @__kmpc_alloc_shared(i64 4)
    before:  %x_on_stack = addrspacecast ptr addrspace(4) %x to ptr     (1)
             store i32 0, ptr %x_on_stack
    after:   store i32 0, ptr addrspace(4) %x

  loop bounds, createParallelDataSharingWrapper():
    %slot = getelementptr inbounds ptr addrspace(4),
                                   ptr addrspace(4) %list, i64 0
    before:  %p = addrspacecast ptr addrspace(4) %slot to ptr           (2)
             %lb = load i64, ptr %p
    after:   %lb = load i64, ptr addrspace(4) %slot

    [10 lines not shown]
DeltaFile
+42-0clang/test/OpenMP/spirv_globalized_var_addrspace.c
+4-4clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp
+46-42 files

LLVM/project 09e953c — clang/test/OpenMP spirv_target_teams_reduction_addrspace.c, llvm/lib/Frontend/OpenMP OMPIRBuilder.cpp

[OpenMP][OMPIRBuilder] Use the runtime CC for list<->global reduction helpers

#195911 gave the shuffle-and-reduce, inter-warp-copy and reduction
functions Config.getRuntimeCC(), which is spir_func on SPIR-V. The
list<->global helpers, which __kmpc_gpu_xteam_reduce_nowait calls through
the same kind of function pointer, kept the C calling convention, and so
did the two direct calls to them:

                                                   before   after
  define _omp_reduction_list_to_global_copy_func     C      RuntimeCC
  define _omp_reduction_global_to_list_copy_func     C      RuntimeCC
  define _omp_reduction_global_to_list_reduce_func   C      RuntimeCC
  call   list_to_global_copy (scratch copy-in)       C      RuntimeCC
  call   global_to_list_copy (scratch copy-back)     C      RuntimeCC

The device runtime calls the first three through ListGlobalFnTy pointers
(openmp/device/src/Reduction.cpp), i.e. with spir_func on SPIR-V.
RuntimeCC is C on all other targets, so their IR does not change.
emitListToGlobalReduceFunction() has no callers and is left as is.

    [2 lines not shown]
DeltaFile
+9-0clang/test/OpenMP/spirv_target_teams_reduction_addrspace.c
+5-2llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
+14-22 files

LLVM/project 2d25086 — llvm/lib/Transforms/IPO AttributorAttributes.cpp, llvm/test/Transforms/Attributor indirect-call-calling-convention.ll

[Attributor] Keep the calling convention when replacing an indirect call

When AAIndirectCallInfo knows the callee of an indirect call but cannot
promote the call (isLegalToPromote() fails), it creates a new direct call
with CallInst::Create(), which has the C calling convention:

  define spir_func i32 @cb()
  call spir_func void %fn()                ; %fn = @cb

  -passes=attributor              call void @cb()              (1)
  -passes=attributor,instcombine  store i1 true, ptr poison    (2)

(1) does not match the callee's calling convention, so InstCombine
replaces it with (2). Copy the calling convention of the original call, as
promoteCall() keeps it when it changes the call in place.

On spirv64, OpenMPOpt runs the Attributor on the device runtime's
reduction code. Its spir_func calls of the shuffle-and-reduce and
inter-warp-copy callbacks cannot be promoted (a pointer argument's address

    [6 lines not shown]
DeltaFile
+47-0llvm/test/Transforms/Attributor/indirect-call-calling-convention.ll
+3-1llvm/lib/Transforms/IPO/AttributorAttributes.cpp
+50-12 files

LLVM/project bb6fe26 — llvm/include/llvm/IR IntrinsicsSPIRV.td, llvm/test/Transforms/FunctionAttrs nosync.ll

[SPIRV] Don't mark the barrier intrinsics nosync

The six llvm.spv.*memory.barrier* intrinsics are DefaultAttrsIntrinsics,
which makes them nosync. All six lower to OpMemoryBarrier or
OpControlBarrier with AcquireRelease semantics (selectBarrierInst() in
SPIRVInstructionSelector.cpp), so they do synchronize with other
invocations. amdgcn.s.barrier and the NVVM barriers are not nosync either.

Keep the other defaults and drop nosync:

  declare void @llvm.spv.group.memory.barrier.with.group.sync()
    before:  convergent nocallback nofree nosync nounwind willreturn
    after:   convergent nocallback nofree nounwind willreturn

With nosync, OpenMPOpt deletes the workers' loop in a generic-mode OpenMP
kernel on spirv64-intel at -O3:

  #pragma omp target teams distribute        // generic mode
  for (...) {

    [14 lines not shown]
DeltaFile
+68-0llvm/test/Transforms/FunctionAttrs/nosync.ll
+14-6llvm/include/llvm/IR/IntrinsicsSPIRV.td
+82-62 files

LLVM/project 1724a23 — llvm/lib/Analysis ValueTracking.cpp, llvm/test/Analysis/ValueTracking knownbits-rem-euclid.ll

[ValueTracking] Add vector support to `computeKnownBitsFromEuclideanRem` (#241890)

Support vectors when inferring that Euclidean remainder expressions R +
(R < 0 ? A : 0) are non-negative, where R = srem X, Y and A is either Y
(when known non-negative) or abs(Y). Enables folding comparisons of the
result against zero. Respects demanded lanes when checking divisor
non-negativity.

Follow-up on #236900, which fixed #224449 for scalars.
DeltaFile
+147-24llvm/test/Analysis/ValueTracking/knownbits-rem-euclid.ll
+10-9llvm/lib/Analysis/ValueTracking.cpp
+157-332 files

LLVM/project 0f0ed57 — clang/include/clang/CIR/Dialect/IR CIRTypes.td, clang/lib/CIR/CodeGen CIRGenBuiltinAArch64.cpp CIRGenTypes.cpp

[CIR] Add ABI vector kind tracking in cir::VectorType (#244303)

This adds a default-value field in cir::VectorType to track the ABI
vector kind. The default value is `Generic` meaning that the behavior
is, as it was before this change, not sub-type specific. This will be
needed during calling convention lowering for correct classification of
SVE types. The calling convention handling for SVE types will be added
in a later change.

Assisted-by: Cursor / claude-opus-5.5
DeltaFile
+252-252clang/test/CIR/CodeGen/sve-vector-arith-ops.c
+120-120clang/test/CodeGen/AArch64/sve/dup.c
+47-41clang/lib/CIR/CodeGen/CIRGenTypes.cpp
+72-6clang/test/CIR/IR/invalid-vector.cir
+53-14clang/include/clang/CIR/Dialect/IR/CIRTypes.td
+37-19clang/lib/CIR/CodeGen/CIRGenBuiltinAArch64.cpp
+581-45235 files not shown
+924-62741 files

LLVM/project 7afe97b — llvm/lib/Transforms/InstCombine InstCombineSimplifyDemanded.cpp, llvm/test/Transforms/InstCombine vector-shuffle.ll

[InstCombine] SimplifyDemandedVectorElts - add llvm.vector.shuffle handling (#245249)

Simplify the demanded elements of the mask operand using DemandedElts,
and use the mask's constant range to limit the demanded source elements.

This is the InstCombine equivalent of #244921.

Part of #244310

AI Note: I've used Claude Code to help me understand `InstCombine`
concepts and the codebase. The implementation and tests are my own.
DeltaFile
+115-0llvm/test/Transforms/InstCombine/vector-shuffle.ll
+17-0llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
+132-02 files

LLVM/project 1b715f7 — llvm/docs LangRef.md, llvm/test/tools/llubi intr_fp_vector_reduce.ll intr_fp_minmax.ll

[LangRef][llubi] Fix nsz handling for FP min/max intrinsics (#245117)

For FP min/max intrinsics and reductions, nsz only makes the order of
+0.0 and -0.0 non-deterministic and must not flip same-sign zeros. Clear
nsz before handleFMFFlags on inputs and handle opposite-sign zeros in
applyFPMinMax instead. Also clarify in LangRef that
llvm.vector.reduce.{fmaximum,fminimum} follow the same nsz semantics.

Fixes https://github.com/llvm/llvm-project/issues/233676

LLM used for test cases.
DeltaFile
+44-36llvm/tools/llubi/lib/Interpreter.cpp
+37-0llvm/test/tools/llubi/intr_fp_minmax.ll
+33-0llvm/test/tools/llubi/intr_fp_vector_reduce.ll
+8-6llvm/docs/LangRef.md
+122-424 files

LLVM/project 4981615 — llvm/test/CodeGen/AMDGPU buffer-fat-pointers-memcpy.ll lower-mem-intrinsics.ll, llvm/test/CodeGen/AMDGPU/GlobalISel llvm.memset.ll llvm.memcpy.ll

[AMDGPU] Don't unroll memcpy loops with sub-dword split accesses

If dword accesses aren't allowed at the copy's alignment, the unrolled
<64 x i32> loop is split into bytes, which causes heavy spilling. Only
unroll when dword accesses are allowed, and pick residual types the
alignment allows.

Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+822-14,317llvm/test/CodeGen/AMDGPU/memintrinsic-unroll.ll
+258-1,118llvm/test/CodeGen/AMDGPU/lower-buffer-fat-pointers-mem-transfer.ll
+294-179llvm/test/CodeGen/AMDGPU/lower-mem-intrinsics.ll
+79-167llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.memcpy.ll
+80-60llvm/test/CodeGen/AMDGPU/buffer-fat-pointers-memcpy.ll
+25-52llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.memset.ll
+1,558-15,8935 files not shown
+1,680-15,99511 files

LLVM/project 62a5ff0 — bolt/lib/Passes LongJmp.cpp, bolt/test/AArch64 long-jmp-hugify-fixup-out-of-range.s branch-relax-adrp-range.s

[BOLT][AArch64] Enable clustered branch relaxation by default (#234932)

Use clustered relaxation by default when code relocations are available,
and keep --relax-exp as a hidden alias. Without relocations, fall back to
local branch relaxation or stub-insertion pass unless clustered relaxation
was explicitly requested, in which case exit with an error message.

Allow clustered relaxation to handle short-range branches without
requiring the --compact-code-model option.

Move tests that are exclusive to stub-insertion pass into a separate folder.

Link with test/Inputs/stub.c in eh-frame-hdr.test and eh-frame-overwrite.test
to avoid external-call thunks, whose FDEs would prevent the unwind sections
from being rewritten in place when using clustered relaxation.
DeltaFile
+0-68bolt/test/AArch64/branch-relax-limits.s
+68-0bolt/test/AArch64/legacy-longjmp/branch-relax-limits.s
+0-53bolt/test/AArch64/branch-relax-adrp-range.s
+37-16bolt/lib/Passes/LongJmp.cpp
+53-0bolt/test/AArch64/legacy-longjmp/branch-relax-adrp-range.s
+0-52bolt/test/AArch64/long-jmp-hugify-fixup-out-of-range.s
+158-18927 files not shown
+571-48133 files

LLVM/project acd59d2 — clang/lib/Basic/Targets AMDGPU.h, clang/test/CodeGenOpenCL inline-asm-amdgcn.cl

[AMDGPU][Clang] Support the RF inline asm constraint (#244752)

Accept the AMDGPU-specific "RF" (flat memory address) inline asm
constraint in clang and lower it to "^RF" in IR. The backend support was
added in #241996. The "m" constraint needs no clang change since it is
handled by the generic TargetInfo code.

Add Sema tests for valid and invalid uses of "RF", and CodeGen tests
checking the IR constraint strings for "RF" and "m". Document "RF" in
the AMDGPU section of LangRef.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+26-0clang/test/Sema/inline-asm-validate-amdgpu.cl
+12-0clang/test/CodeGenOpenCL/inline-asm-amdgcn.cl
+8-1clang/lib/Basic/Targets/AMDGPU.h
+1-0llvm/docs/LangRef.md
+47-14 files

LLVM/project 4157e0d — llvm/test/CodeGen/AMDGPU cvt_f32_ubyte.ll

[AMDGPU] Test byte conversion through an i16 funnel shift

Keep both byte conversions and a store of the funnel-shift result to exercise the combine through both shift directions.
DeltaFile
+85-0llvm/test/CodeGen/AMDGPU/cvt_f32_ubyte.ll
+85-01 files

LLVM/project 908622d — llvm/lib/Target/AMDGPU SIISelLowering.cpp

[AMDGPU] Look through any_extend in cvt_f32_ubyteN combine

Fold a shift through an any-extend when the selected byte is within the width of the shift result. This avoids an extra shift when converting elements of an unaligned vector load expanded into smaller pieces.

Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+4-3llvm/lib/Target/AMDGPU/SIISelLowering.cpp
+4-31 files

LLVM/project ca38db7 — clang/lib/CIR/Dialect/Transforms CallConvLoweringPass.cpp, clang/lib/CIR/Dialect/Transforms/TargetLowering CIRABIRewriteContext.h CIRABIRewriteContext.cpp

[CIR] Dispatch va_arg lowering via target CIRABIRewriteContext subclasses (#244977)

#244116 included `clang/CIR/Dialect/Passes.h` from
`TargetLowering/CIRABIRewriteContext.h` for `cir::CallConvTarget`,
pulling
in the generated `Passes.h.inc` (`MLIRCIRPassIncGen`) from a
higher-level
library and breaking builds when `CIRABIRewriteContext.cpp` compiles
first.

Keep `CallConvTarget` out of `TargetLowering` by dispatching non-ignored
`cir.va_arg` lowering through a virtual `expandVAArg` hook on
`CIRABIRewriteContext`, implemented by X86_64 and AMDGPU subclasses
selected in `CallConvLoweringPass` (matching the structure of #244729).

Fixes build failure on
https://lab.llvm.org/buildbot/#/builders/sanitizer-windows.

Assisted-by: Gemini
DeltaFile
+29-26clang/lib/CIR/Dialect/Transforms/TargetLowering/CIRABIRewriteContext.h
+42-13clang/lib/CIR/Dialect/Transforms/TargetLowering/CIRABIRewriteContext.cpp
+21-1clang/lib/CIR/Dialect/Transforms/CallConvLoweringPass.cpp
+92-403 files

LLVM/project 1bc975b — llvm/lib/Target/SystemZ SystemZInstrVector.td, llvm/test/CodeGen/SystemZ vec-strict-conv-04.ll vec-conv-04.ll

[SystemZ] Select WCEFB/WCELFB/WCFEB/WCLFEB for vector-element conversions

On z15, use the scalar-in-vector convert instructions when one side of
an i32<->f32 conversion already lives in a vector register:

* (s|u)itofp of an extracted <4 x i32> element -> WCEFB/WCELFB, using
  VREPF first for elements 1-3.
* fptosi/fptoui whose i32 result goes into element 0 of a vector
  (scalar_to_vector, insert into undef, or splat) -> WCFEB/WCLFEB.

This avoids the GPR round trip (vlgvf + cefbr, cfebr + vlvgf). GPR<->FPR
conversions and variable-index extracts are unchanged.

Also fix the dest/source operand types of VCFEB/VCLFEB/WCFEB/WCLFEB
(which were reversed) and VCEFB/VCELFB (v128g -> v128f).

Add vec-conv-04.ll and vec-strict-conv-04.ll, including negative and
z14 checks.
DeltaFile
+351-0llvm/test/CodeGen/SystemZ/vec-conv-04.ll
+348-0llvm/test/CodeGen/SystemZ/vec-strict-conv-04.ll
+38-6llvm/lib/Target/SystemZ/SystemZInstrVector.td
+737-63 files

LLVM/project 7367dff — llvm/lib/Target/RISCV RISCVGISel.td RISCVInstrGISel.td, llvm/lib/Target/RISCV/GISel RISCVRegisterBankInfo.cpp RISCVLegalizerInfo.cpp

[RISCV][GISel] Add G_ORC_B opcode and reuse SelectionDAG isel pattern. (#245331)

Eventually, we should also add computeKnownBits support to match SDAG.

Assisted-by: Claude
DeltaFile
+11-8llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp
+9-0llvm/lib/Target/RISCV/RISCVInstrGISel.td
+0-7llvm/lib/Target/RISCV/RISCVGISel.td
+1-2llvm/lib/Target/RISCV/GISel/RISCVRegisterBankInfo.cpp
+21-174 files

LLVM/project c6ecd4a — llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Passes LoadStoreVec.h, llvm/lib/Transforms/Vectorize/SandboxVectorizer/Passes LoadStoreVec.cpp

[SandboxVec][LoadStoreVec] Support mixed-type load vectorization (#236647)

- Allow reinterpretation of same sized values in load vectorization. A
chain of mixed types such as {i32, float} or {double, i32, i32} is
loaded as a vector of integers (as chosen by
`VecUtils::getWidenedType())`, each original load is unpacked from the
lanes it occupies, and then reinterpreted back to its own type with
`SameSizeReinterpret::reinterpretValue()`.
- Chains involving a non-integral pointer are left alone, since such a
pointer cannot be recovered from an integer lane.

Stacked on #243765.

Co-authored-by: Cursor <cursoragent at cursor.com>

---------

Co-authored-by: Cursor <cursoragent at cursor.com>
DeltaFile
+401-0llvm/test/Transforms/SandboxVectorizer/Passes/LoadStoreVec/load_store_vec_mixed_type_loads.ll
+40-10llvm/lib/Transforms/Vectorize/SandboxVectorizer/Passes/LoadStoreVec.cpp
+11-1llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Passes/LoadStoreVec.h
+452-113 files

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

[NFC][VPlan] More tests for VPlan-based stride speculation

For #182595.

`@predicate_simplification_unknown_to_scev` has been added to #182595
quite some time ago and likely can be considered reviewed already.

Two other `@*might_trigger_ub_if_not_guarded` are for the latest review
round.
DeltaFile
+376-0llvm/test/Transforms/LoopVectorize/vplan-based-stride-mv.ll
+329-0llvm/test/Transforms/LoopVectorize/VPlan/vplan-based-stride-mv.ll
+705-02 files

LLVM/project 5c4ead3 — llvm/lib/Transforms/Utils Evaluator.cpp, llvm/test/Transforms/GlobalOpt ctor-eval-byval-argument.ll

[GlobalOpt] Copy byval arguments when evaluating calls (#241675)

Fixes #241245.

The Evaluator bound the actual argument of a byval parameter directly to
the caller's object. The callee should get a private copy, so a later
store to the global changed the parameter. In the issue, GlobalOpt
evaluated the static constructor and committed a wrong value.

getFormalParams now copies the pointee of a byval argument byte by byte
into a temporary global and binds the parameter to it, the same way the
Evaluator models allocas. A byte-wise copy keeps the padding and does
not depend on the layout of the type. If a byte cannot be read, for
example when the object holds pointers, or the object is larger than 256
bytes, it gives up on the call as before.

The test is reduced from the issue and its checks are added with
update_test_checks.py. The lit tests under Transforms/GlobalOpt pass.
DeltaFile
+69-0llvm/test/Transforms/GlobalOpt/ctor-eval-byval-argument.ll
+37-2llvm/lib/Transforms/Utils/Evaluator.cpp
+106-22 files

LLVM/project d5b9943 — llvm/lib/Target/LoongArch LoongArch.h LoongArchMergeBaseOffset.cpp, llvm/test/CodeGen/LoongArch newpm-pipeline.ll

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+254-270llvm/lib/Target/LoongArch/LoongArchExpandPseudoInsts.cpp
+140-136llvm/lib/Target/LoongArch/LoongArchExpandAtomicPseudoInsts.cpp
+174-0llvm/lib/Target/LoongArch/LoongArchCodeGenPassBuilder.cpp
+160-0llvm/test/CodeGen/LoongArch/newpm-pipeline.ll
+62-71llvm/lib/Target/LoongArch/LoongArchMergeBaseOffset.cpp
+98-18llvm/lib/Target/LoongArch/LoongArch.h
+888-49515 files not shown
+1,197-64521 files

LLVM/project fa8a40c — llvm/lib/Target/LoongArch LoongArch.h LoongArchMergeBaseOffset.cpp, llvm/test/CodeGen/LoongArch newpm-pipeline.ll

[𝘀𝗽𝗿] changes to main this commit is based on

Created using spr 1.3.7

[skip ci]
DeltaFile
+254-270llvm/lib/Target/LoongArch/LoongArchExpandPseudoInsts.cpp
+140-136llvm/lib/Target/LoongArch/LoongArchExpandAtomicPseudoInsts.cpp
+173-0llvm/lib/Target/LoongArch/LoongArchCodeGenPassBuilder.cpp
+154-0llvm/test/CodeGen/LoongArch/newpm-pipeline.ll
+62-71llvm/lib/Target/LoongArch/LoongArchMergeBaseOffset.cpp
+98-18llvm/lib/Target/LoongArch/LoongArch.h
+881-49513 files not shown
+1,132-64519 files

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

[NFC][VPlan] More tests for VPlan-based stride speculation

For #182595.

`@predicate_simplification_unknown_to_scev` has been added to #182595
quite some time ago and likely can be considered reviewed already.

Two other `@*might_trigger_ub_if_not_guarded` are for the latest review
round.
DeltaFile
+287-0llvm/test/Transforms/LoopVectorize/vplan-based-stride-mv.ll
+246-0llvm/test/Transforms/LoopVectorize/VPlan/vplan-based-stride-mv.ll
+533-02 files

LLVM/project 31b2ad6 — llvm/lib/Target/AMDGPU SIISelLowering.h SIISelLowering.cpp, llvm/test/CodeGen/AMDGPU llvm.amdgcn.cluster.workgroup.max.id.ll llvm.amdgcn.cluster.workgroup.id.ll

[AMDGPU] Read TTMP6 only if clusters are enabled (#244508)

The hardware only initializes TTMP6 when clusters are enabled, but
`llvm.amdgcn.cluster.workgroup.{id,max.id}.{x,y,z}` and
`llvm.amdgcn.cluster.workgroup.max.flat.id` read it without a check, so
they could potentially return stale values without clusters. The
programming model treats a launch without clusters as an implicit 1x1x1
cluster, so all of these values are 0.

Fixes LCOMPILER-3241.

This PR was assisted by AI but I reviewed all the changes.
DeltaFile
+592-3llvm/test/CodeGen/AMDGPU/llvm.amdgcn.cluster.workgroup.max.flat.id.ll
+503-18llvm/test/CodeGen/AMDGPU/llvm.amdgcn.cluster.workgroup.id.ll
+446-18llvm/test/CodeGen/AMDGPU/llvm.amdgcn.cluster.workgroup.max.id.ll
+58-41llvm/lib/Target/AMDGPU/SIISelLowering.cpp
+70-29llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
+4-0llvm/lib/Target/AMDGPU/SIISelLowering.h
+1,673-1091 files not shown
+1,676-1097 files

LLVM/project 0f036c3 — llvm/lib/Target/Hexagon HexagonDepIICHVX.td HexagonDepIICScalar.td, llvm/test/CodeGen/AArch64/Atomics aarch64_be-atomicrmw-lscp.ll aarch64-atomicrmw-lscp.ll

Merge branch 'main' into filecheck-pattern-notes
DeltaFile
+18,437-18,198llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
+15,374-15,524llvm/lib/Target/Hexagon/HexagonDepIICScalar.td
+7,442-8,018llvm/lib/Target/Hexagon/HexagonDepIICHVX.td
+9,174-0llvm/test/CodeGen/AArch64/Atomics/aarch64-atomicrmw-lscp.ll
+4,455-4,505llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.512bit.ll
+8,819-0llvm/test/CodeGen/AArch64/Atomics/aarch64_be-atomicrmw-lscp.ll
+63,701-46,2458,086 files not shown
+444,872-255,5968,092 files

LLVM/project 76cd07e — llvm/lib/ProfileData SampleProf.cpp SampleProfReader.cpp, llvm/lib/Transforms/IPO SampleProfile.cpp SampleProfileMatcher.cpp

[SampleProfile] Retrieve root profiles for inlined functions

Pre-link inlining can leave an inline frame whose samples are stored in a
separate root. Reading profiles only for surviving Function objects misses
that root. Looking only under the caller also fails when the profile and
IR inline trees disagree, including when an inner function is inlined first.

Put selective inline-root retrieval in the sample-profile reader so sample
loading and stale matching can both use it. Collect inline frames once,
prefer matching nested profiles, and batch missing-root reads by depth.
Do not let a missing outer profile hide a deeper frame or repeatedly request
names that are absent from the profile.

Let stale matching collect anchors inside eliminated inline frames and
reuse its existing matching algorithm and location-map distribution. For
MD5 profiles, resolve known callee hashes before the comparison loop.

Keep retrieval separate from permission to reuse sample counts. Post-link
fallback still checks the caller's count and probe checksum. Reject zero-head

    [4 lines not shown]
DeltaFile
+306-0llvm/test/Transforms/SampleProfile/thinlto-orphaned-local-root.ll
+95-77llvm/lib/Transforms/IPO/SampleProfileMatcher.cpp
+104-0llvm/test/Transforms/SampleProfile/thinlto-orphaned-nonlocal-root.ll
+97-0llvm/lib/ProfileData/SampleProfReader.cpp
+77-7llvm/lib/Transforms/IPO/SampleProfile.cpp
+11-9llvm/lib/ProfileData/SampleProf.cpp
+690-933 files not shown
+714-989 files