LLVM/project 9d2c4c1 — llvm/lib/Target/LoongArch LoongArchTargetMachine.cpp LoongArchISelDAGToDAG.cpp

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+11-2llvm/lib/Target/LoongArch/LoongArch.h
+10-2llvm/lib/Target/LoongArch/LoongArchISelDAGToDAG.cpp
+2-1llvm/lib/Target/LoongArch/LoongArchTargetMachine.cpp
+23-53 files

LLVM/project b6f762d — llvm/lib/Target/AMDGPU SIMachineScheduler.cpp R600MachineScheduler.cpp

[AMDGPU] Remove write-only private member variables (NFC) (#244910)

This patch removes private member variables in AMDGPU that are
initialized or assigned to but never read, along with their
initializers and assignments.

Assisted-by: Antigravity
DeltaFile
+2-8llvm/lib/Target/AMDGPU/SIAnnotateControlFlow.cpp
+2-3llvm/lib/Target/AMDGPU/SILateBranchLowering.cpp
+1-3llvm/lib/Target/AMDGPU/AMDGPURegBankLegalize.cpp
+1-2llvm/lib/Target/AMDGPU/SIMachineScheduler.cpp
+1-2llvm/lib/Target/AMDGPU/R600MachineScheduler.cpp
+1-2llvm/lib/Target/AMDGPU/AMDGPUGlobalISelUtils.cpp
+8-205 files not shown
+8-2711 files

LLVM/project 4552f5d — llvm/lib/Transforms/IPO CalledValuePropagation.cpp

[CalledValuePropagation] Fix non-deterministic metadata generation (#244837)

Fixes non-deterministic metadata numbers in CVP outputs.

Non-deterministic numbers in CVP outputs make it difficult to trace when
and how two compilations (with two versions of the compiler) start to
diverge by tracing `-print-after-all` outputs.

To repro: copy sqlite3.c from llvm-test-suite and optimize with `opt -O3
-print-after-all -ir-dump-directory=...` and save the outputs of a few
runs in different directories. The outputs start to diverge after CVP
before this change. With this change we reliably get identical IRs
throughout the pipeline.
DeltaFile
+5-2llvm/lib/Transforms/IPO/CalledValuePropagation.cpp
+5-21 files

LLVM/project 963ab28 — mlir/lib/Conversion/SPIRVToLLVM SPIRVToLLVM.cpp, mlir/test/Conversion/SPIRVToLLVM constant-op-to-llvm.mlir

[mlir][SPIR-V] Lower #spirv.null constants to llvm.mlir.zero (#241924)
DeltaFile
+21-1mlir/lib/Conversion/SPIRVToLLVM/SPIRVToLLVM.cpp
+11-0mlir/test/Conversion/SPIRVToLLVM/constant-op-to-llvm.mlir
+32-12 files

LLVM/project 33fa8d6 — mlir/lib/Dialect/SPIRV/IR SPIRVTypes.cpp SPIRVDialect.cpp, mlir/test/Dialect/SPIRV/IR types.mlir

[mlir][SPIR-V] Allow pointers to function types (#244321)
DeltaFile
+18-3mlir/lib/Dialect/SPIRV/IR/SPIRVDialect.cpp
+18-2mlir/lib/Dialect/SPIRV/IR/SPIRVTypes.cpp
+16-0mlir/test/Dialect/SPIRV/IR/types.mlir
+14-0mlir/test/Target/SPIRV/intel-ext-ops.mlir
+11-0mlir/test/Dialect/SPIRV/Transforms/vce-deduction.mlir
+77-55 files

LLVM/project 8662516 — llvm/test/Transforms/SLPVectorizer/X86 sese-region-non-schedulable-revec.ll sese-region-non-schedulable-non-power-of-2.ll

[SLP][NFC]Add tests for SESE region vectorization, NFC

Pull-request: https://github.com/llvm/llvm-project/pull/244929
DeltaFile
+2,062-0llvm/test/Transforms/SLPVectorizer/X86/sese-region-non-schedulable-cost.ll
+1,247-2llvm/test/Transforms/SLPVectorizer/X86/sese-region-non-schedulable.ll
+385-0llvm/test/Transforms/SLPVectorizer/X86/sese-region-non-schedulable-copyable.ll
+63-0llvm/test/Transforms/SLPVectorizer/X86/sese-region-non-schedulable-non-power-of-2.ll
+47-0llvm/test/Transforms/SLPVectorizer/X86/sese-region-non-schedulable-revec.ll
+3,804-25 files

LLVM/project 2cea451 — llvm/test/Transforms/SLPVectorizer/X86 sese-region-non-schedulable-revec.ll sese-region-non-schedulable-non-power-of-2.ll

[𝘀𝗽𝗿] initial version

Created using spr 2.0.0-beta.1
DeltaFile
+2,062-0llvm/test/Transforms/SLPVectorizer/X86/sese-region-non-schedulable-cost.ll
+1,247-2llvm/test/Transforms/SLPVectorizer/X86/sese-region-non-schedulable.ll
+385-0llvm/test/Transforms/SLPVectorizer/X86/sese-region-non-schedulable-copyable.ll
+63-0llvm/test/Transforms/SLPVectorizer/X86/sese-region-non-schedulable-non-power-of-2.ll
+47-0llvm/test/Transforms/SLPVectorizer/X86/sese-region-non-schedulable-revec.ll
+3,804-25 files

LLVM/project c515e16 — llvm/lib/Target/AMDGPU SIInsertWaitcnts.cpp, llvm/test/CodeGen/AMDGPU extract-subvector-16bit.ll flat-saddr-atomics.ll

[AMDGPU] Keep soft waitcnts unchanged until SIInsertWaitcnts converges

On the first visit to a loop header only the preheader state is known.
A soft waitcnt there (e.g. from a release fence) can have some of its
counters simplified away while another counter keeps the instruction
alive: the fence's own vmcnt(0), a preceding wait.asyncmark, or an
explicit s_waitcnt. The soft waitcnt was then rewritten with the
simplified value and promoted to a hard waitcnt, or merged into a
preceding hard one. When the back edge later brought a pending LDS
store, the original lgkmcnt(0) request was gone, and the s_barrier after
the release fence no longer waited for it.

Treat soft waitcnts as requests that depend on the incoming state: never
merge, promote or rewrite them while the analysis iterates. They are
kept unchanged in DeferredErasures, a hard waitcnt (existing or new)
carries what is needed on each visit, and the soft waitcnts are erased
once the analysis converges. This extends #220357, which did the same
only for soft waitcnts that were simplified away entirely.


    [11 lines not shown]
DeltaFile
+66-66llvm/test/CodeGen/AMDGPU/function-args.ll
+48-48llvm/test/CodeGen/AMDGPU/a-v-flat-atomicrmw.ll
+32-32llvm/test/CodeGen/AMDGPU/flat-saddr-atomics.ll
+12-11llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
+10-10llvm/test/CodeGen/AMDGPU/extract-subvector-16bit.ll
+10-10llvm/test/CodeGen/AMDGPU/GlobalISel/flat-scratch.ll
+178-17712 files not shown
+221-21618 files

LLVM/project 1f7e300 — llvm/test/CodeGen/AMDGPU waitcnt-loop-carried-fence-drain.mir

[AMDGPU][NFC] Pre-commit tests for soft waitcnt requests lost at a loop header (#244686)

Two cases where a soft waitcnt at a loop header loses its `lgkmcnt(0)`.
On the first visit to the header no LDS operation is pending yet, so the
soft waitcnt's `lgkmcnt` is simplified away, while a `vmcnt` keeps the
instruction alive. That `vmcnt` comes either from the soft waitcnt
itself or from a preceding hard `vmcnt(0)` that it is merged into. The
DS write at the end of the loop is then not waited for before the
`S_BARRIER` on the next iteration.

The checks show the current, incorrect output (`S_WAITCNT .Vmcnt_0`
before `S_BARRIER`).

Assisted-by: Claude Opus 5.5

---------

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+108-0llvm/test/CodeGen/AMDGPU/waitcnt-loop-carried-fence-drain.mir
+108-01 files

LLVM/project c6cb610 — llvm/lib/Transforms/IPO ExpandVariadics.cpp, llvm/test/Transforms/ExpandVariadics preserve-function-analyses.ll

ExpandVariadics: Invalidate function analyses individually

Avoid discarding analyses that never need to be invalidated, such as
TargetLibraryInfo. Clear the analyses of erased functions.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+51-0llvm/test/Transforms/ExpandVariadics/preserve-function-analyses.ll
+28-6llvm/lib/Transforms/IPO/ExpandVariadics.cpp
+79-62 files

LLVM/project fd1f949 — libc/benchmarks LibcMemoryBenchmarkMain.cpp LibcMemoryGoogleBenchmarkMain.cpp

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

Created using spr 1.3.7

[skip ci]
DeltaFile
+6-2libc/benchmarks/LibcMemoryBenchmark.h
+7-0libc/benchmarks/LibcDefaultImplementations.cpp
+4-2libc/benchmarks/LibcMemoryBenchmark.cpp
+6-0libc/benchmarks/LibcFunctionPrototypes.h
+5-0libc/benchmarks/LibcMemoryGoogleBenchmarkMain.cpp
+4-0libc/benchmarks/LibcMemoryBenchmarkMain.cpp
+32-41 files not shown
+36-47 files

LLVM/project 4869c7e — libc/benchmarks LibcMemoryBenchmarkMain.cpp LibcMemoryGoogleBenchmarkMain.cpp

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+10-5libc/benchmarks/LibcMemoryBenchmark.cpp
+14-0libc/benchmarks/LibcDefaultImplementations.cpp
+11-2libc/benchmarks/LibcMemoryBenchmark.h
+12-0libc/benchmarks/LibcFunctionPrototypes.h
+10-0libc/benchmarks/LibcMemoryGoogleBenchmarkMain.cpp
+8-0libc/benchmarks/LibcMemoryBenchmarkMain.cpp
+65-71 files not shown
+73-77 files

LLVM/project c25eade — libc/benchmarks LibcMemoryBenchmarkMain.cpp LibcMemoryGoogleBenchmarkMain.cpp

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+6-2libc/benchmarks/LibcMemoryBenchmark.h
+7-0libc/benchmarks/LibcDefaultImplementations.cpp
+4-2libc/benchmarks/LibcMemoryBenchmark.cpp
+6-0libc/benchmarks/LibcFunctionPrototypes.h
+5-0libc/benchmarks/LibcMemoryGoogleBenchmarkMain.cpp
+4-0libc/benchmarks/LibcMemoryBenchmarkMain.cpp
+32-41 files not shown
+36-47 files

LLVM/project bbaf5a7 — llvm/lib/Transforms/Instrumentation AllocToken.cpp, llvm/test/Instrumentation/AllocToken preserve-function-analyses.ll

AllocToken: Only invalidate analyses of instrumented functions

AllocToken tried to preserve the CFG analyses, but did not preserve the
function analysis manager proxy, so all function analyses were
invalidated.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+29-0llvm/test/Instrumentation/AllocToken/preserve-function-analyses.ll
+15-3llvm/lib/Transforms/Instrumentation/AllocToken.cpp
+44-32 files

LLVM/project 00f6af1 — llvm/lib/Transforms/IPO CalledValuePropagation.cpp

[CalledValuePropagation] Use SmallSetVector instead of SmallPtrSet for deterministic output
DeltaFile
+5-2llvm/lib/Transforms/IPO/CalledValuePropagation.cpp
+5-21 files

LLVM/project 6896640 — mlir/lib/Dialect/EmitC/Transforms WrapFuncInClass.cpp, mlir/lib/Dialect/SCF/IR SCF.cpp

[mlir] Notify rewriter when replacing SCF, Vector and EmitC bodies (#244448)

Fixes a few places where block manipulation was done without notifying
the rewriter.
DeltaFile
+5-2mlir/lib/Dialect/Vector/Transforms/VectorDistribute.cpp
+2-2mlir/lib/Dialect/EmitC/Transforms/WrapFuncInClass.cpp
+1-1mlir/lib/Dialect/SCF/IR/SCF.cpp
+8-53 files

LLVM/project 901520f — llvm/lib/Target/RISCV RISCVAsmPrinter.cpp, llvm/test/CodeGen/RISCV calls-cf-branch-kcfi.ll

[RISCV][Zicfilp] fix KCFI clobbering x7 when cf-protection=branch is enabled (#240347)

When enabling KCFI and cf-protection=branch
(-fcf-branch-label-scheme=unlabeled,
-riscv-landing-pad-label=<some-non-0-value>),
the KCFI check sequence lands between the cf-protection=branch Label
loading (`lui t2, Label`) instruction and the indirect call `jalr a2`.
KCFI may clobber x7/t2 because it is one of its default scratch
registers; at the time of the indirect jump
it may no longer contain the correct value for the landing pad label.

KCFI now avoids x7/t2 when cf-protection=branch is enabled, causing it
to select one of its fallback scratch registers
(x28-x31) instead. In the test example it falls back to x28/t3.

This patch is a prerequisite for the zicfilp func-sig label scheme
implementation https://github.com/llvm/llvm-project/pull/240344 because
the func-sig label scheme working correctly also depends on this bug
being fixed. The patch contains a corresponding regression test.
DeltaFile
+106-0llvm/test/CodeGen/RISCV/calls-cf-branch-kcfi.ll
+6-0llvm/lib/Target/RISCV/RISCVAsmPrinter.cpp
+112-02 files

LLVM/project 9e3fb0a — llvm/lib/Transforms/IPO CalledValuePropagation.cpp, llvm/test/Transforms/CalledValuePropagation unnamed-functions.ll

[CalledValuePropagation] Fix handling of unnamed functions (#244846)

A function without a name gets an empty string as the name, so they were
all treated equal.

Assign each function a unique integer (their position in the module) and
use the integers for ordering them.

Also fixes a source of non-determinism in the pass as we no longer
compare pointer values.
DeltaFile
+52-0llvm/test/Transforms/CalledValuePropagation/unnamed-functions.ll
+23-11llvm/lib/Transforms/IPO/CalledValuePropagation.cpp
+75-112 files

LLVM/project 4de72b3 — llvm/lib/TableGen TGParser.h TGParser.cpp

[TableGen] Remove unused member functions (NFC) (#244911)

ClassReference::isInvalid: This function was added on November 22, 2007
in commit f4127dd48e11297ed3c545bb6ee6a70bf91388c7 without any callers.

MultiClassReference::isInvalid: This function was added on April 22,
2009 in commit 753ed8fd9ccd481d668adf30e167d4ae34d5bcdf without any
callers.

RecordsEntry::RecordsEntry: The default constructor was added on June
21, 2018 in commit 7d69e0f37d2829e720662d6398a956c6b2e6048d without any
callers.

Assisted-by: Antigravity
DeltaFile
+0-3llvm/lib/TableGen/TGParser.cpp
+0-1llvm/lib/TableGen/TGParser.h
+0-42 files

LLVM/project bb3ba1c — llvm/include/llvm/Analysis SparsePropagation.h, llvm/lib/Transforms/IPO CalledValuePropagation.cpp

[CalledValuePropagation] Use SmallMapVector instead of SmallDenseMap for deterministic iteration in the fixpoint loop (#244851)

The changed values type `SmallDenseMap<PointerIntPair<Value *, 2, IPOGrouping>,
...>` is iterated non-deterministically because of the pointer key type,
causing non-deterministic debug outputs (`-debug-only=sparseprop`) and compile
times (when counting instructions).
DeltaFile
+17-13llvm/unittests/Analysis/SparsePropagation.cpp
+13-11llvm/lib/Transforms/IPO/CalledValuePropagation.cpp
+4-3llvm/include/llvm/Analysis/SparsePropagation.h
+34-273 files

LLVM/project 934533b — llvm/include/llvm/Analysis SparsePropagation.h, llvm/lib/Transforms/IPO CalledValuePropagation.cpp

[CalledValuePropagation] Use SmallMapVector instead of SmallDenseMap for deterministic iteration in the fixpoint loop
DeltaFile
+17-13llvm/unittests/Analysis/SparsePropagation.cpp
+13-11llvm/lib/Transforms/IPO/CalledValuePropagation.cpp
+4-3llvm/include/llvm/Analysis/SparsePropagation.h
+34-273 files

LLVM/project 8865402 — mlir/lib/Dialect/Tensor/Transforms FoldTensorSubsetOps.cpp, mlir/test/Dialect/Tensor fold-tensor-subset-ops-into-vector-transfers.mlir

[mlir][tensor] Keep the vector.mask pass-thru when folding extract_slice into transfer_read (#244844)

`TransferReadOfExtractSliceOpFolder` re-masks the folded
`vector.transfer_read` with the mask of the enclosing `vector.mask` but
drops its pass-thru, so the masked-off lanes get the padding instead of
the pass-thru.
Pass the pass-thru to the new `vector.mask` as well.

Found while reviewing #243710, which fixed the same issue in
`TransferReadDropUnitDimsPattern`.
 #228140 also touches this function.

Part of #239511.

Assisted-by: Claude
DeltaFile
+17-0mlir/test/Dialect/Tensor/fold-tensor-subset-ops-into-vector-transfers.mlir
+2-1mlir/lib/Dialect/Tensor/Transforms/FoldTensorSubsetOps.cpp
+19-12 files

LLVM/project 90044d5 — llvm/test/Transforms/CalledValuePropagation unnamed-functions.ll

Add test
DeltaFile
+52-0llvm/test/Transforms/CalledValuePropagation/unnamed-functions.ll
+52-01 files

LLVM/project 03cd85e — llvm/lib/Transforms/IPO CalledValuePropagation.cpp, llvm/test/Transforms/CalledValuePropagation unnamed-functions.ll

Fix it
DeltaFile
+23-11llvm/lib/Transforms/IPO/CalledValuePropagation.cpp
+1-1llvm/test/Transforms/CalledValuePropagation/unnamed-functions.ll
+24-122 files

LLVM/project b2530d9 — flang/lib/Lower/OpenMP Utils.cpp, flang/lib/Semantics openmp-utils.cpp

[flang][OpenMP] Require an enclosing SIMD for construct={simd}

A construct={simd} selector without properties was ignored, because SIMD
is a predefined trait selector name (it can take clause properties)
rather than a directive name. A DECLARE VARIANT or METADIRECTIVE
alternative that requires SIMD was therefore selected everywhere,
including outside any SIMD construct.

Record the SIMD construct trait for such a selector. Lowering builds the
construct trait set from the enclosing MLIR operations, so also recognize
omp.simd there; otherwise calls inside SIMD would no longer match.

Fixes #244759

Assisted-by: GitHub Copilot
DeltaFile
+21-0flang/test/Lower/OpenMP/declare-variant-construct.f90
+9-2flang/lib/Semantics/openmp-utils.cpp
+10-0flang/test/Lower/OpenMP/metadirective-construct.f90
+2-0flang/lib/Lower/OpenMP/Utils.cpp
+42-24 files

LLVM/project 471f9dd — flang/lib/Lower/OpenMP Utils.cpp, flang/lib/Semantics openmp-utils.cpp

[flang][OpenMP] Require an enclosing SIMD for construct={simd}

A construct={simd} selector without properties was ignored, because SIMD
is a predefined trait selector name (it can take clause properties)
rather than a directive name. A DECLARE VARIANT or METADIRECTIVE
alternative that requires SIMD was therefore selected everywhere,
including outside any SIMD construct.

Record the SIMD construct trait for such a selector. Lowering builds the
construct trait set from the enclosing MLIR operations, so also recognize
omp.simd there; otherwise calls inside SIMD would no longer match.

Fixes #244759

Assisted-by: GitHub Copilot
DeltaFile
+21-0flang/test/Lower/OpenMP/declare-variant-construct.f90
+10-0flang/test/Lower/OpenMP/metadirective-construct.f90
+7-0flang/lib/Semantics/openmp-utils.cpp
+2-0flang/lib/Lower/OpenMP/Utils.cpp
+40-04 files

LLVM/project c93f7fa — llvm/runtimes CMakeLists.txt

[cmake][runtimes] Pass variable type for passthrough CMake options (#227662)

Passing the types affects the handling of `PATH` cache variables.
The motivating case is setting `COMPILER_RT_INSTALL_LIBRARY_DIR` without `CMAKE_BINARY_DIR` getting prepended to it.

Previously reverted because of https://github.com/llvm/llvm-project/pull/198505#issuecomment-4496493320.  
However there's insufficient information to replicate or fix the non-upstream build issue so I'll go ahead with reapplying in the hopes that maybe it's magically resolved itself.

Revert-Of: 313ab4dc3b3a5f4c14079c82806c1f28975f724f
Re-Apply-Of: 2e06e008a7b44fab5c0d7fbc4331c696b5e19b06
DeltaFile
+8-0llvm/runtimes/CMakeLists.txt
+8-01 files

LLVM/project d1d4bfa — clang/docs ReleaseNotes.md

[Clang] add relese note for 232629 (#244864)

The release note for was not added for #232629.
DeltaFile
+4-0clang/docs/ReleaseNotes.md
+4-01 files

LLVM/project d9ec1f2 — llvm/lib/Target/AArch64 AArch64MIPeepholeOpt.cpp, llvm/test/CodeGen/AArch64 pr222095.ll

Revert "[AArch64] Share materialized constant between add x,k and sub x,k (#225430)"

This reverts commit aabb9609da40d6257a94c991d16ed96f6a81f0bf to fix
miscompilation, reported in https://github.com/llvm/llvm-project/pull/225430#issuecomment-7039795522

Pull-request: https://github.com/llvm/llvm-project/pull/244907
DeltaFile
+4-111llvm/lib/Target/AArch64/AArch64MIPeepholeOpt.cpp
+0-105llvm/test/CodeGen/AArch64/pr222095.ll
+4-2162 files

LLVM/project 4c01a29 — mlir/lib/Dialect/Linalg/Transforms Vectorization.cpp, mlir/test/Dialect/Linalg/vectorization pad-patterns.mlir

[mlir][linalg] Do not fold tensor.pad into a read inside vector.mask (#243927)

`PadOpVectorizationWithTransferReadPattern` folds a `tensor.pad` into a
`vector.transfer_read` of its result and replaces the read's padding
with the pad value. It bails out on a mask operand, but not on
`vector.mask`, where the masked-off lanes take the read's padding.

For example, vectorizing a `linalg.pack` (tile 8, padding `-1`) of a
`tensor.pad` (3 to 5 elements, value `7`) gives a masked read of the
pad. After `pad_vectorization`, the packed row is `1 2 3 7 7 7 7 7`
instead of `1 2 3 7 7 -1 -1 -1`.

The pattern now bails out on reads inside `vector.mask` too. Tested by
`@negative_pad_and_transfer_read_in_vector_mask`.

Part of #227821 and #239511.

Assisted-by: Claude
DeltaFile
+35-0mlir/test/Dialect/Linalg/vectorization/pad-patterns.mlir
+2-2mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
+37-22 files