LLVM/project db44d5b — llvm/lib/Transforms/IPO LowerTypeTests.cpp, llvm/test/Transforms/SimplifyTypeTests preserve-function-analyses.ll

LowerTypeTests: Only invalidate analyses of modified functions in SimplifyTypeTests

SimplifyTypeTests 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
+48-0llvm/test/Transforms/SimplifyTypeTests/preserve-function-analyses.ll
+16-5llvm/lib/Transforms/IPO/LowerTypeTests.cpp
+64-52 files

LLVM/project ec6a5c9 — 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 60e1884 — 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 73273da — llvm/test/Transforms/CalledValuePropagation unnamed-functions.ll

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

LLVM/project aab5b20 — llvm/lib/CodeGen/SelectionDAG DAGCombiner.cpp, llvm/test/CodeGen/X86 zext-logicop-shift-load.ll

[SelectionDAG] Use the widened type to select the shift amount type (#244781)

This fixes https://github.com/llvm/llvm-project/issues/244518.
CombineZExtLogicopShiftLoad reuses the original shift amount when
widening a shift. On X86, widening an i16 shift to i512 leaves the count
as i8, which cannot represent all valid shift amounts for i512. Use
getShiftAmountOperand to convert the count to the type required by the
widened shift.

Assisted-by: OpenAI Codex
DeltaFile
+47-0llvm/test/CodeGen/X86/zext-logicop-shift-load.ll
+2-2llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+49-22 files

LLVM/project 2c2bb60 — llvm/lib/Passes CodeGenPassBuilder.cpp

formatting

Created using spr 1.3.7
DeltaFile
+3-6llvm/lib/Passes/CodeGenPassBuilder.cpp
+3-61 files

LLVM/project 51faef0 — llvm/lib/Target/DirectX DirectXCodeGenPassBuilder.cpp

formatting

Created using spr 1.3.7
DeltaFile
+3-6llvm/lib/Target/DirectX/DirectXCodeGenPassBuilder.cpp
+3-61 files

LLVM/project b523b7a — llvm/include/llvm/Passes CodeGenPassBuilder.h, llvm/lib/Passes CodeGenPassBuilder.cpp

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+155-0llvm/lib/Target/DirectX/DirectXCodeGenPassBuilder.cpp
+34-12llvm/lib/Passes/CodeGenPassBuilder.cpp
+42-0llvm/test/CodeGen/DirectX/newpm-pipeline.ll
+10-0llvm/include/llvm/Passes/CodeGenPassBuilder.h
+0-9llvm/lib/Target/DirectX/DirectXTargetMachine.cpp
+7-0llvm/lib/Target/DirectX/DirectXTargetMachine.h
+248-211 files not shown
+250-217 files

LLVM/project a12a364 — llvm/include/llvm/Passes CodeGenPassBuilder.h, llvm/lib/Passes CodeGenPassBuilder.cpp

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

Created using spr 1.3.7

[skip ci]
DeltaFile
+34-12llvm/lib/Passes/CodeGenPassBuilder.cpp
+10-0llvm/include/llvm/Passes/CodeGenPassBuilder.h
+44-122 files

LLVM/project e1640e1 — llvm/include/llvm/Passes CodeGenPassBuilder.h, llvm/lib/Passes CodeGenPassBuilder.cpp

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+34-12llvm/lib/Passes/CodeGenPassBuilder.cpp
+10-0llvm/include/llvm/Passes/CodeGenPassBuilder.h
+44-122 files

LLVM/project 59fc82e — llvm/lib/Transforms/IPO WholeProgramDevirt.cpp, llvm/test/Transforms/WholeProgramDevirt preserve-function-analyses.ll

WholeProgramDevirt: Invalidate function analyses individually

Avoid discarding analyses that never need to be invalidated, such as
TargetLibraryInfo.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+37-0llvm/test/Transforms/WholeProgramDevirt/preserve-function-analyses.ll
+17-2llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp
+54-22 files

LLVM/project 407afb8 — llvm/lib/Transforms/IPO CalledValuePropagation.cpp

[CalledValuePropagation] Generate metadata in program order

Fixes non-deterministic metadata numbers in CVP outputs.
DeltaFile
+27-7llvm/lib/Transforms/IPO/CalledValuePropagation.cpp
+27-71 files

LLVM/project 171940d — llvm/lib/Target/X86 X86ISelLowering.cpp, llvm/test/CodeGen/X86 sar_fold64.ll

[X86]: `sub(0, and(X, 1))` -> `ashr(shl(X, SizeInBits - 1), SizeInBits - 1)` (#243478)

In `InstCombine`, expressions of the form `ashr(shl(X, SizeInBits - 1),
SizeInBits - 1)` are canonicalized into the form `sub(0, and(X, 1))`.
The issue with this representation is that the generated code is
suboptimal and requires an additional register. To address this, an
inverse operation has been added for `x86`.

Fixes https://github.com/llvm/llvm-project/issues/208410
DeltaFile
+86-20llvm/test/CodeGen/X86/sar_fold64.ll
+14-0llvm/lib/Target/X86/X86ISelLowering.cpp
+100-202 files

LLVM/project 0928a93 — llvm/lib/Transforms/Scalar LICM.cpp

fixup! [LICM] Refresh cache for load update
DeltaFile
+1-1llvm/lib/Transforms/Scalar/LICM.cpp
+1-11 files

LLVM/project a89a14a — llvm/lib/Transforms/Scalar LICM.cpp

fixup! [LICM] Refresh cache for load update
DeltaFile
+1-1llvm/lib/Transforms/Scalar/LICM.cpp
+1-11 files

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

Merge remote-tracking branch 'origin/main' into users/aokblast/licm/refreh_cache
DeltaFile
+15,980-15,802llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
+15,374-15,228llvm/lib/Target/Hexagon/HexagonDepIICScalar.td
+1,212-20,041utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+7,442-8,018llvm/lib/Target/Hexagon/HexagonDepIICHVX.td
+9,174-0llvm/test/CodeGen/AArch64/Atomics/aarch64-atomicrmw-lscp.ll
+8,819-0llvm/test/CodeGen/AArch64/Atomics/aarch64_be-atomicrmw-lscp.ll
+58,001-59,08913,578 files not shown
+671,137-359,29113,584 files

LLVM/project ef9e67e — llvm/lib/CodeGen/SelectionDAG LegalizeDAG.cpp, llvm/test/CodeGen/RISCV rvp-simd-32.ll

[DAG] Use the alignment of actual stored type (#244632)

Fixes #244552.
`INSERT_VECTOR_ELT` may implicitly truncate the inserted operand. When
expanding it through the stack, we should compute the alignment from the
actual memory type rather than the untruncated operand type.
DeltaFile
+38-0llvm/test/CodeGen/RISCV/rvp-simd-32.ll
+6-2llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+44-22 files

LLVM/project d8aa345 — llvm/include/llvm/Analysis MustExecute.h, llvm/lib/Analysis MustExecute.cpp

[LICM] Refresh cache for load update

A load update for function pointer makes ICFLoopSafetyInfo invalidate
the old one. Refresh both MW and ICF so that it won't failed
validate().

Assisted-by: Claude # Test
DeltaFile
+38-0llvm/test/Transforms/LICM/scalar-promote-unwind.ll
+5-0llvm/lib/Analysis/MustExecute.cpp
+4-0llvm/lib/Transforms/Scalar/LICM.cpp
+2-0llvm/include/llvm/Analysis/MustExecute.h
+49-04 files

LLVM/project 66dd5e0 — llvm/include/llvm/Transforms/IPO LowerTypeTests.h, llvm/lib/Transforms/IPO LowerTypeTests.cpp

LowerTypeTests: Only invalidate analyses of modified functions in DropTypeTests

Previously everything was invalidated on any changes, so even
invariant function analyses were discarded.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+97-0llvm/test/Transforms/LowerTypeTests/drop-type-tests-preserve-function-analyses.ll
+41-13llvm/lib/Transforms/IPO/LowerTypeTests.cpp
+6-3llvm/include/llvm/Transforms/IPO/LowerTypeTests.h
+144-163 files

LLVM/project 1b2cd80 — llvm/lib/Target/AMDGPU AMDGPUInsertDelayAlu.cpp, llvm/test/CodeGen/AMDGPU write_register.ll materialize-frame-index-sgpr.gfx10.ll

[AMDGPU] Do not use s_delay_alu instskip to skip inline asm (#244627)

We cannot reliably count the number of instructions in an inline asm, so
do not include one in an instskip region. Emit a separate s_delay_alu
after it instead.

Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+89-0llvm/test/CodeGen/AMDGPU/insert-delay-alu-inline-asm.mir
+6-3llvm/test/CodeGen/AMDGPU/v_swap_b16.ll
+4-3llvm/lib/Target/AMDGPU/AMDGPUInsertDelayAlu.cpp
+2-2llvm/test/CodeGen/AMDGPU/materialize-frame-index-sgpr.ll
+2-1llvm/test/CodeGen/AMDGPU/write_register.ll
+2-1llvm/test/CodeGen/AMDGPU/materialize-frame-index-sgpr.gfx10.ll
+105-101 files not shown
+107-117 files

LLVM/project 16e056c — llvm/lib/Transforms/Coroutines CoroEarly.cpp, llvm/test/Transforms/Coroutines coro-early-preserve-function-analyses.ll

Coroutines: Only invalidate analyses of lowered functions in CoroEarly

CoroEarly invalidated every function analysis whenever the module declared
coroutine intrinsics. Only invalidate the functions it modified, and the
callers of functions which had noalias removed.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+83-0llvm/test/Transforms/Coroutines/coro-early-preserve-function-analyses.ll
+65-13llvm/lib/Transforms/Coroutines/CoroEarly.cpp
+148-132 files

LLVM/project fbc71a3 — libc/test/integration/src/unistd fork_test.cpp, libc/test/src/sched cpu_count_test.cpp CMakeLists.txt

[libc] Use the gettid syscall wrapper in tests
DeltaFile
+3-4libc/test/src/sched/affinity_test.cpp
+2-4libc/test/src/sched/linux/clone_test.cpp
+2-4libc/test/src/sched/CMakeLists.txt
+2-4libc/test/integration/src/unistd/fork_test.cpp
+2-2libc/test/src/sched/cpu_count_test.cpp
+1-2libc/test/src/sched/linux/CMakeLists.txt
+12-203 files not shown
+16-239 files

LLVM/project 58ca4e3 — llvm/include/llvm/Transforms/Utils SCCPSolver.h, llvm/lib/Transforms/IPO FunctionSpecialization.cpp

[IPSCC] Mark byval capture as Overdefined

ptr byval  reuse the original pointer identity. Any capture on ptr
byval can easily cause miscompilation as taking reference on pointer
is always considered as the same. Therefore, we put this in
OverDefined by default.

Take the added test as an example. `icmp eq ptr %p, @g` in
`cmp_byval(@g)` is always considered as the same identity in IPSCCP,
which is a miscompiliation.

EarlyCSE and InstCombine should be able to handle byval and ptr
elimination easily. So we don't add more thing to LatticeValue here.

Assisted-by: Claude # Test
DeltaFile
+35-0llvm/test/Transforms/SCCP/2009-09-24-byval-ptr.ll
+9-3llvm/lib/Transforms/Utils/SCCPSolver.cpp
+1-1llvm/lib/Transforms/IPO/FunctionSpecialization.cpp
+2-0llvm/include/llvm/Transforms/Utils/SCCPSolver.h
+47-44 files

LLVM/project 92be7d3 — llvm/include/llvm/Transforms/Utils CallGraphUpdater.h, llvm/lib/Transforms/IPO OpenMPOpt.cpp

OpenMPOpt: Invalidate function analyses individually

Avoid discarding analyses that never need to be invalidated, such as
TargetLibraryInfo.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+40-0llvm/test/Transforms/OpenMP/preserve-function-analyses.ll
+17-2llvm/lib/Transforms/IPO/OpenMPOpt.cpp
+2-0llvm/include/llvm/Transforms/Utils/CallGraphUpdater.h
+59-23 files

LLVM/project d71d3a9 — llvm/lib/CodeGen StackProtector.cpp EarlyIfConversion.cpp, llvm/lib/Target/AArch64 AArch64CodeLayoutOpt.cpp AArch64ConditionalCompares.cpp

[llvm] Remove write-only private member variables (NFC) (#244811)

This patch removes private member variables across llvm/ that are
assigned to but never read, along with their assignments.

Assisted-by: Antigravity
DeltaFile
+0-6llvm/lib/Target/Mips/MipsConstantIslandPass.cpp
+0-6llvm/lib/Target/AArch64/AArch64ConditionalCompares.cpp
+0-6llvm/lib/CodeGen/EarlyIfConversion.cpp
+0-4llvm/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.h
+0-4llvm/lib/Target/AArch64/AArch64CodeLayoutOpt.cpp
+0-4llvm/lib/CodeGen/StackProtector.cpp
+0-3053 files not shown
+0-13859 files

LLVM/project 6ddded2 — llvm/include/llvm/Transforms/Utils CallGraphUpdater.h, llvm/lib/Transforms/IPO OpenMPOpt.cpp

OpenMPOpt: Invalidate function analyses individually

Avoid discarding analyses that never need to be invalidated, such as
TargetLibraryInfo.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+40-0llvm/test/Transforms/OpenMP/preserve-function-analyses.ll
+17-2llvm/lib/Transforms/IPO/OpenMPOpt.cpp
+1-0llvm/include/llvm/Transforms/Utils/CallGraphUpdater.h
+58-23 files

LLVM/project 8bbb9d3 — llvm/lib/Transforms/IPO ConstantMerge.cpp, llvm/test/Transforms/ConstantMerge preserve-function-analyses.ll

ConstantMerge: Preserve CFG analyses (#244817)

ConstantMerge only changes global variables, so it does not need to
invalidate every function analysis.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+23-0llvm/test/Transforms/ConstantMerge/preserve-function-analyses.ll
+6-1llvm/lib/Transforms/IPO/ConstantMerge.cpp
+29-12 files

LLVM/project 0d8ca1b — llvm/lib/Target/RISCV RISCVCallingConv.cpp

[RISCV] Remove RVE specific array from getArgGPRs by slicing the front of the full array. (#244770)

The RVE array is a prefix of the full array so we can take the front. This
requires hardcoding the sizes, but these arrays aren't expected to
change so I don't think that's a maintenance issue.
DeltaFile
+27-67llvm/lib/Target/RISCV/RISCVCallingConv.cpp
+27-671 files

LLVM/project 88cb86b — libc/src/__support/OSUtil/linux CMakeLists.txt io.h, libc/src/__support/OSUtil/linux/syscall_wrappers CMakeLists.txt

[libc] Use the write syscall wrapper for Linux IO
DeltaFile
+2-5libc/src/__support/OSUtil/linux/io.h
+5-2utils/bazel/llvm-project-overlay/libc/src/__support/OSUtil/BUILD.bazel
+0-1libc/src/__support/OSUtil/linux/syscall_wrappers/CMakeLists.txt
+1-0libc/src/__support/OSUtil/linux/CMakeLists.txt
+8-84 files

LLVM/project 8a4ac21 — llvm/lib/Target/AVR AVRCodeGenPassBuilder.cpp, llvm/lib/Target/BPF BPFCodeGenPassBuilder.cpp

[Target] Move function definitions out of anonymous namespaces (#244814)

The coding standards say the following:

> Make anonymous namespaces as small as possible, and only use them for
> class declarations.

This also makes these files compliant with the
llvm-prefer-static-over-anonymous-namespaces clang-tidy check.
DeltaFile
+2-2llvm/lib/Target/XCore/XCoreCodeGenPassBuilder.cpp
+2-2llvm/lib/Target/X86/X86CodeGenPassBuilder.cpp
+2-2llvm/lib/Target/WebAssembly/WebAssemblyCodeGenPassBuilder.cpp
+2-2llvm/lib/Target/VE/VECodeGenPassBuilder.cpp
+2-2llvm/lib/Target/BPF/BPFCodeGenPassBuilder.cpp
+2-2llvm/lib/Target/AVR/AVRCodeGenPassBuilder.cpp
+12-128 files not shown
+28-2714 files