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

LLVM/project c012cae — llvm/lib/Transforms/IPO FunctionAttrs.cpp, llvm/test/Transforms/FunctionAttrs norecurse-lto-preserve-function-analyses.ll

FunctionAttrs: Only invalidate analyses of changed functions in norecurse LTO inference

NoRecurseLTOInferencePass only adds norecurse, so invalidate only the
changed functions and their direct callers instead of every function
analysis.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+38-0llvm/test/Transforms/FunctionAttrs/norecurse-lto-preserve-function-analyses.ll
+9-4llvm/lib/Transforms/IPO/FunctionAttrs.cpp
+47-42 files

LLVM/project 84a7a7d — mlir/lib/Dialect/XeGPU/Transforms XeGPUSgToLaneDistribute.cpp, mlir/lib/Dialect/XeGPU/Utils XeGPUUtils.cpp

[mlir][XeGPU] Lower multi_reduction over a unit dim as an elementwise combine (#244005)

Lower a vector.multi_reduction over a unit dim to an elementwise combine
with the accumulator in SgToLaneDistribute, fixing out-of-bounds slices
for tiles like vector<1x8x16> [0] that blocking produces since #240592.

assisted-by-claude

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+27-0mlir/test/Dialect/XeGPU/sg-to-lane-distribute.mlir
+9-7mlir/lib/Dialect/XeGPU/Transforms/XeGPUSgToLaneDistribute.cpp
+2-0mlir/lib/Dialect/XeGPU/Utils/XeGPUUtils.cpp
+38-73 files

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

ConstantMerge: Preserve CFG analyses

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 9dcedd5 — llvm/docs TestingGuide.md

Recommend common check prefixes for overlapping output
DeltaFile
+6-0llvm/docs/TestingGuide.md
+6-01 files

LLVM/project b91d623 — llvm/docs TestingGuide.md

Keep CFI in stack frame tests
DeltaFile
+1-1llvm/docs/TestingGuide.md
+1-11 files

LLVM/project 2d715e9 — llvm/docs TestingGuide.md

Explain how target-specific test subdirectories work
DeltaFile
+3-1llvm/docs/TestingGuide.md
+3-11 files

LLVM/project 794d05f — llvm/docs TestingGuide.md

Scope the test/Transforms rule to target-independent passes
DeltaFile
+5-3llvm/docs/TestingGuide.md
+5-31 files

LLVM/project 3db09f7 — llvm/docs TestingGuide.md

Clarify which tests need -filetype=obj
DeltaFile
+2-2llvm/docs/TestingGuide.md
+2-21 files

LLVM/project 1824898 — clang/lib/Sema SemaType.cpp, clang/test/Sema attr-counted-by-std-syntax-on-chunk.c

Diagnose [[clang::counted_by]] after the type specifiers outside a field

int [[clang::counted_by(n)]] *a; outside a field was silently dropped.

Assisted-by: Opus 5.5
DeltaFile
+8-7clang/lib/Sema/SemaType.cpp
+12-0clang/test/Sema/attr-counted-by-std-syntax-on-chunk.c
+20-72 files

LLVM/project ece0017 — mlir/lib/Dialect/Vector/Transforms VectorTransferOpTransforms.cpp, mlir/test/Dialect/Vector vector-transfer-drop-unit-dims-patterns.mlir

[mlir][vector] Keep the vector.mask pass-thru when dropping unit dims of a read (#243710)

`TransferReadDropUnitDimsPattern` rewrites a `vector.transfer_read`
inside `vector.mask` into a rank-reduced read and mask, but dropped the
pass-thru of the `vector.mask`. The masked-off lanes then got the
padding: for a `vector<3x2x1xf32>` read with mask `[2, 2, 1]` and
pass-thru `9`, the last row came out `0`.

The pass-thru is now shape-cast to the reduced type and kept.

`-lower-vector-mask` can't lower a pass-thru on `transfer_read` yet, so
such IR now stays unlowered instead of lowering to wrong values.

Tested by `@transfer_read_and_vector_rank_reducing_masked_passthru`.

Part of #227821.

Assisted-by: Claude
DeltaFile
+22-0mlir/test/Dialect/Vector/vector-transfer-drop-unit-dims-patterns.mlir
+5-1mlir/lib/Dialect/Vector/Transforms/VectorTransferOpTransforms.cpp
+27-12 files

LLVM/project ce281d2 — clang/include/clang/Sema Sema.h, clang/lib/Sema SemaBoundsSafety.cpp SemaType.cpp

Address comments: Clarify comments and tighten a test

Assisted-by: Opus 5.5
DeltaFile
+17-12clang/lib/Sema/SemaType.cpp
+12-13clang/lib/Sema/SemaBoundsSafety.cpp
+5-5clang/test/Sema/attr-counted-by-struct-ptrs.c
+6-1clang/test/Sema/attr-counted-by-vla.c
+2-2clang/include/clang/Sema/Sema.h
+0-2clang/test/Sema/attr-counted-by-return-type.c
+42-356 files

LLVM/project fc3c820 — llvm/lib/Target/SystemZ SystemZInstrInfo.td, llvm/test/CodeGen/SystemZ shift-17.ll fold-masked-merge.ll

[SystemZ] Use NORK/NOGRK for bitwise NOT on z15+

With the miscellaneous-extensions-3 facility, `xor x, -1` can be
selected as a single NORK (i32) or NOGRK (i64) with both source
operands equal. This replaces LR+XILF for i32 and LCGR+AGHI for i64:
one instruction instead of two, with a shorter encoding and no
register copy.

Update affected tests and add not-01.ll coverage for z15 and z14.

Assisted by: IBM Bob
DeltaFile
+12-20llvm/test/CodeGen/SystemZ/pdep-pext.ll
+23-0llvm/test/CodeGen/SystemZ/not-01.ll
+6-8llvm/test/CodeGen/SystemZ/fold-masked-merge.ll
+8-1llvm/lib/Target/SystemZ/SystemZInstrInfo.td
+2-2llvm/test/CodeGen/SystemZ/shift-17.ll
+51-315 files

LLVM/project 956c5d4 — llvm/include/llvm/MC MCContext.h, llvm/lib/MC MCContext.cpp

[MC] Remove MCContext::RelSecNames. NFC (#244813)

getOrCreateSectionSymbol called by createELFSectionImpl will create a
symbol table entry anyway. Create the symbol table entry earlier to be
reused by the REL/RELA section name, removing RelSecNames.
DeltaFile
+5-6llvm/lib/MC/MCContext.cpp
+0-1llvm/include/llvm/MC/MCContext.h
+5-72 files

LLVM/project 55d8d5f — llvm/docs MIRLangRef.md TestingGuide.md

feedback
DeltaFile
+6-3llvm/docs/TestingGuide.md
+0-3llvm/docs/MIRLangRef.md
+6-62 files

LLVM/project 70bfc8c — llvm/lib/Transforms/IPO FunctionAttrs.cpp, llvm/test/Transforms/FunctionAttrs rpo-preserve-function-analyses.ll

FunctionAttrs: Only invalidate analyses of changed functions in RPO attrs

Previously any inferred attribute invalidated all function analyses in
the module. Instead, invalidate only the changed functions and their
direct callers, like PostOrderFunctionAttrsPass.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+59-0llvm/test/Transforms/FunctionAttrs/rpo-preserve-function-analyses.ll
+36-22llvm/lib/Transforms/IPO/FunctionAttrs.cpp
+95-222 files

LLVM/project 6f458ca — llvm/docs MIRLangRef.md TestingGuide.md

docs: Add some best practices documentation for codegen tests

Document common review feedback.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+92-7llvm/docs/TestingGuide.md
+4-1llvm/docs/MIRLangRef.md
+96-82 files

LLVM/project 93dca8a — llvm/lib/Transforms/IPO InferFunctionAttrs.cpp, llvm/test/Transforms/InferFunctionAttrs preserve-function-analyses.ll

InferFunctionAttrs: Preserve CFG and TargetLibraryInfo analyses (#244764)

InferFunctionAttrs reported no preserved analyses whenever it inferred
anything, which clears every cached function analysis in the module.
It only adds attributes to declarations, so preserve the CFG analyses
and TargetLibraryInfo.

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

LLVM/project fcb05d5 — clang/lib/Sema SemaBoundsSafety.cpp, clang/test/Sema attr-counted-by-void-ptr-gnu.c

Restore the guard for bounds-safety on counted_by on void *
DeltaFile
+10-1clang/test/Sema/attr-counted-by-void-ptr-gnu.c
+4-1clang/lib/Sema/SemaBoundsSafety.cpp
+14-22 files

LLVM/project 45096ef — llvm/lib/Transforms/Coroutines CoroCleanup.cpp, llvm/test/Transforms/Coroutines coro-cleanup-preserve-function-analyses.ll

Coroutines: Only invalidate analyses of lowered functions in CoroCleanup

CoroCleanupPass already invalidates the analyses of the functions it
lowers, but then reported no preserved analyses, which clears every
cached function.

Also stop preserving CFG analyses for lowered functions, since noop
coroutine elision can change the CFG.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+57-0llvm/test/Transforms/Coroutines/coro-cleanup-preserve-function-analyses.ll
+12-5llvm/lib/Transforms/Coroutines/CoroCleanup.cpp
+69-52 files

LLVM/project 5a16359 — llvm/lib/MC MCDwarf.cpp

[MC] Sort FDE pointers instead of copies in MCDwarfFrameEmitter::emit. NFC (#244805)

Avoid large MCDwarfFrameInfo copies.
DeltaFile
+8-7llvm/lib/MC/MCDwarf.cpp
+8-71 files

LLVM/project ce43ec2 — llvm/lib/Target/SystemZ SystemZOperands.td SystemZInstrInfo.td, llvm/test/CodeGen/SystemZ lxa-05.ll lxa-04.ll

[SystemZ] Match more shift and displacement patterns for LXA/LLXA

Add TableGen selection patterns for LXA/LLXA instructions to support:
- Add + shift of an extended value with scaled 20-bit displacement (with base)
- Shift of an extended value with scaled 20-bit displacement (without base)
- Add of an extended value with unscaled 20-bit displacement (LXAB/LLXAB)

Update test cases in lxa-*.ll and llxa-*.ll to cover the new patterns.

Assisted by: IBM Bob
DeltaFile
+46-0llvm/lib/Target/SystemZ/SystemZInstrInfo.td
+36-0llvm/lib/Target/SystemZ/SystemZOperands.td
+24-0llvm/test/CodeGen/SystemZ/lxa-05.ll
+24-0llvm/test/CodeGen/SystemZ/lxa-04.ll
+24-0llvm/test/CodeGen/SystemZ/lxa-03.ll
+24-0llvm/test/CodeGen/SystemZ/lxa-02.ll
+178-06 files not shown
+298-012 files

LLVM/project 5c1d3a2 — llvm/lib/Target/AMDGPU AMDGPUCodeGenPrepare.cpp, llvm/test/CodeGen/AMDGPU mad_u64_u32_mul24.ll

Match the ISel selector choice when keeping i64 mul for mad
DeltaFile
+12-2llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
+0-2llvm/test/CodeGen/AMDGPU/mad_u64_u32_mul24.ll
+12-42 files

LLVM/project ac21a87 — llvm/lib/Target/AMDGPU AMDGPUCodeGenPrepare.cpp

use isNotGFX9Plus
DeltaFile
+1-1llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
+1-11 files