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

LLVM/project 648d2e5 — llvm/lib/Target/AMDGPU AMDGPUCodeGenPrepare.cpp, llvm/test/CodeGen/AMDGPU amdgpu-codegenprepare-mul24-mad64.ll mad_u64_u32_mul24.ll

address review feedback
DeltaFile
+186-66llvm/test/CodeGen/AMDGPU/mad_u64_u32_mul24.ll
+100-27llvm/test/CodeGen/AMDGPU/amdgpu-codegenprepare-mul24-mad64.ll
+4-0llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
+290-933 files

LLVM/project 4eda37e — llvm/lib/Target/AMDGPU AMDGPUCodeGenPrepare.cpp, llvm/test/CodeGen/AMDGPU atomic_optimizations_local_pointer.ll atomic_optimizations_global_pointer.ll

[AMDGPU] Keep divergent i64 mul feeding an add for the mad64 fold
DeltaFile
+123-0llvm/test/CodeGen/AMDGPU/mad_u64_u32_mul24.ll
+84-0llvm/test/CodeGen/AMDGPU/amdgpu-codegenprepare-mul24-mad64.ll
+24-30llvm/test/CodeGen/AMDGPU/idot4-test.ll
+20-4llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
+9-9llvm/test/CodeGen/AMDGPU/atomic_optimizations_global_pointer.ll
+7-7llvm/test/CodeGen/AMDGPU/atomic_optimizations_local_pointer.ll
+267-506 files

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

[CIR] Lower va_arg for AMDGPU in CallConvLowering (#244116)

Summary:

AMDGPU classifier rejected every `cir.va_arg` as NYI. 
This PR expands `cir.va_arg` the same way classic
`AMDGPUABIInfo::EmitVAArg` does.
The `va_list` is a single pointer into one buffer of 4-byte slots, so
each fetch:
- loads the cursor,
- moves it by the type's alloc size rounded up to 4,
- reads the value at the old cursor with align 4.

Relates to : https://github.com/llvm/llvm-project/issues/220471

Assisted by: claude opus 5.5
DeltaFile
+130-0clang/test/CIR/Transforms/abi-lowering/amdgpu-vaarg.cir
+89-0clang/test/CodeGen/AMDGPU/abi-va-arg.c
+71-17clang/lib/CIR/Dialect/Transforms/TargetLowering/CIRABIRewriteContext.cpp
+24-5clang/lib/CIR/Dialect/Transforms/TargetLowering/CIRABIRewriteContext.h
+4-5clang/lib/CIR/Dialect/Transforms/CIRABIClassifierAMDGPU.cpp
+1-1clang/lib/CIR/Dialect/Transforms/CallConvLoweringPass.cpp
+319-286 files

LLVM/project f4895f7 — llvm/include/llvm/Analysis MemorySSA.h, llvm/test/Analysis/MemorySSA scalable-vec.ll loop-invariant.ll

fixup! more cleanup
DeltaFile
+10-6llvm/include/llvm/Analysis/MemorySSA.h
+1-1llvm/test/Instrumentation/HWAddressSanitizer/memaccess-clobber.ll
+1-1llvm/test/Analysis/MemorySSA/scalable-vec.ll
+1-1llvm/test/Analysis/MemorySSA/loop-invariant.ll
+1-1llvm/test/Analysis/MemorySSA/lifetime-simple.ll
+1-1llvm/test/Analysis/MemorySSA/basicaa-memcpy.ll
+15-111 files not shown
+16-127 files

LLVM/project c163842 — llvm/lib/Transforms/IPO InferFunctionAttrs.cpp

Remove redundant TargetLibraryAnalysis preserve
DeltaFile
+0-1llvm/lib/Transforms/IPO/InferFunctionAttrs.cpp
+0-11 files

LLVM/project 260ed9f — clang/test/CIR/Tools cir-translate-data-layout-from-cirgen.c cir-translate-data-layout-compatible.cir, clang/tools/cir-translate cir-translate.cpp

[CIR] Canonicalize data layoutin to llvm tranlation

MLIR spell data layout in their own ways. It causes two compatibly
layout string not the same order become mismatch. Add a canonicalize
function to tranlate to llvm one if two are the same layout.
DeltaFile
+33-9clang/tools/cir-translate/cir-translate.cpp
+15-0clang/test/CIR/Tools/cir-translate-data-layout-compatible.cir
+13-0clang/test/CIR/Tools/cir-translate-data-layout-from-cirgen.c
+61-93 files

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

[MC] Allocate ELFUniquingMap entries from the MCContext allocator. NFC (#244796)

Each ELF section's uniquing key, which embeds the group signature for
COMDAT sections, is otherwise malloc'ed and freed separately.
DeltaFile
+2-2llvm/lib/MC/MCContext.cpp
+1-1llvm/include/llvm/MC/MCContext.h
+3-32 files

LLVM/project 1ca8ac1 — llvm/lib/Target/RISCV RISCVFrameLowering.h RISCVFrameLowering.cpp, llvm/test/CodeGen/RISCV/rvv interrupt-attr-nocall.ll callee-saved-regs.ll

[RISCV] Fix RVV callee-saves in realigned frames

The prologue saves RVV callee-saved registers before it realigns SP
and sets up BP, but their slots were addressed from the realigned SP
or BP. The epilogue reloaded them from the wrong address, BP frames
stored them through the caller's s1, and their CFI was wrong.

Address these slots from FP, which does not move, and derive their
CFI from getFrameIndexReference so the two cannot diverge.

Fixes #244792
DeltaFile
+430-0llvm/test/CodeGen/RISCV/rvv/rvv-cfi-info.ll
+145-0llvm/test/CodeGen/RISCV/rvv/callee-saved-regs.ll
+49-0llvm/test/CodeGen/RISCV/rvv/interrupt-attr-nocall.ll
+23-12llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
+1-2llvm/lib/Target/RISCV/RISCVFrameLowering.h
+648-145 files

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

Also lcg
DeltaFile
+5-4llvm/test/Transforms/InferFunctionAttrs/preserve-function-analyses.ll
+2-0llvm/lib/Transforms/IPO/InferFunctionAttrs.cpp
+7-42 files

LLVM/project 1beb798 — clang/test/CIR/CodeGen dlti_be.c dlti.c, mlir/lib/Target/LLVMIR DataLayoutImporter.cpp

[CIR] Sync default DataLayout with LLVM side

Since #156657, we remove the i1 alignment entry. Sync this to cir-translate side.
DeltaFile
+3-2mlir/lib/Target/LLVMIR/DataLayoutImporter.cpp
+1-3mlir/test/Target/LLVMIR/Import/data-layout.ll
+0-1clang/test/CIR/CodeGen/dlti_be.c
+0-1clang/test/CIR/CodeGen/dlti.c
+4-74 files

LLVM/project e22bfd4 — llvm/lib/Transforms/Instrumentation SanitizerCoverage.cpp, llvm/test/Instrumentation/SanitizerCoverage missing_dbg.ll

[spr] update

Created using spr 2.0.0-beta.2
DeltaFile
+68-0llvm/test/Instrumentation/SanitizerCoverage/missing_dbg.ll
+5-3llvm/lib/Transforms/Instrumentation/SanitizerCoverage.cpp
+73-32 files

LLVM/project 85d842f — llvm/lib/Transforms/Instrumentation SanitizerCoverage.cpp

[spr] update

Created using spr 2.0.0-beta.2
DeltaFile
+1-1llvm/lib/Transforms/Instrumentation/SanitizerCoverage.cpp
+1-11 files

LLVM/project b45ec9c — llvm/lib/Transforms/Instrumentation SanitizerCoverage.cpp

[spr] update

Created using spr 2.0.0-beta.2
DeltaFile
+6-4llvm/lib/Transforms/Instrumentation/SanitizerCoverage.cpp
+6-41 files

LLVM/project 9d781d4 — llvm/lib/Target/SystemZ SystemZISelLowering.cpp SystemZInstrVector.td, llvm/test/CodeGen/SystemZ vec-avg.ll

[SystemZ] Support ISD::AVGCEILS and ISD::AVGCEILU

Mark ISD::AVGCEILS and ISD::AVGCEILU as legal for vector types on z13+
and for i128 on z17 (VectorEnhancements3). Match them to VAVG* and VAVGL*
instructions while preserving mappings for existing s390 intrinsics.

Assisted by: IBM Bob
DeltaFile
+207-0llvm/test/CodeGen/SystemZ/vec-avg.ll
+24-10llvm/lib/Target/SystemZ/SystemZInstrVector.td
+3-0llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
+234-103 files

LLVM/project 327e55b — llvm/lib/Target/SystemZ SystemZInstrVector.td, llvm/test/CodeGen/SystemZ vec-eval.ll

[SystemZ] Add TableGen patterns for z17 VEVAL ternary logic

Add SelectionDAG patterns to BitwiseVectorOps for canonical 3-input
bitwise boolean operations on z17 (VEVAL), including:
- Majority and Full Adder carry variants (immediate 23)
- InstCombine canonical and commuted Choose/multiplexer forms
  (immediates 83, 53)
- 3-way bitwise difference and AND-NOT/XOR combinations (immediates 6,
  16, 96, 112, 120, 135)
- Inverted/negated forms (immediates 172, 225, 232, 241, 246, 247)

This collapses previously unhandled 3-way boolean expressions from
multiple vector instructions into a single VEVAL instruction.
Update and add test coverage in vec-eval.ll.

Assisted by: IBM Bob
DeltaFile
+102-3llvm/test/CodeGen/SystemZ/vec-eval.ll
+48-0llvm/lib/Target/SystemZ/SystemZInstrVector.td
+150-32 files

LLVM/project 04e0e9c — llvm/include/llvm/SandboxIR Instruction.h, llvm/lib/SandboxIR Instruction.cpp

[SandboxIR] Fix GCC warning (NFC) (#244379)

GCC was complaining about LLVM_TEMPLATE_ABI in:
`extern template class LLVM_TEMPLATE_ABI
SwitchInst::CaseHandleImpl<llvm::SwitchInst::CaseIt, BasicBlock,
ConstantInt>`

```
warning: type attributes ignored after type is already defined [-Wattributes]
```
This patch gets rid of the warning.
DeltaFile
+2-7llvm/include/llvm/SandboxIR/Instruction.h
+4-4llvm/lib/SandboxIR/Instruction.cpp
+6-112 files

LLVM/project d1c341c — llvm/lib/Transforms/Instrumentation SanitizerCoverage.cpp, llvm/test/Instrumentation/SanitizerCoverage wineh.ll funclet-bundle.ll

[SanitizerCoverage] Give calls inserted into funclets their funclet bundle (#226762)

With scoped EH (MSVC C++), `WinEHPrepare` requires calls inside a catch
or cleanup funclet to carry a `"funclet"` operand bundle naming the
funclet's pad. Because `SanitizerCoverage` inserted its runtime calls
without one, `WinEHPrepare` treated them as implausible and replaced the
call and the rest of its basic block with `unreachable`, dropping catch
handler bodies that contain comparisons or indirect calls under
`-fsanitize=fuzzer`.

Color the function's EH funclets after instrumentation and attach the
enclosing pad's `"funclet"` bundle to inserted runtime calls, similar to
`AddressSanitizer`.

Fixes #212404

Assisted-by: Claude Code (Claude Opus 5.5)
DeltaFile
+76-17llvm/lib/Transforms/Instrumentation/SanitizerCoverage.cpp
+9-10llvm/test/Instrumentation/SanitizerCoverage/funclet-bundle.ll
+7-7llvm/test/Instrumentation/SanitizerCoverage/wineh.ll
+92-343 files

LLVM/project 02bec6a — llvm/lib/Target/RISCV/MCTargetDesc RISCVAsmBackend.cpp RISCVAsmBackend.h

[RISCV] Remove unused RISCVAsmBackend::getTargetOptions (NFC) (#244651)

The last caller was removed on September 23, 2026 in commit
674fd8d37e9b5806bc1a7ff31dc56bf3a0839c6b. This patch also removes the
now-unused TargetOptions member variable.

Assisted-by: Antigravity
DeltaFile
+0-3llvm/lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.h
+1-1llvm/lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.cpp
+1-42 files

LLVM/project 6376883 — llvm/lib/Target/Mips MipsSubtarget.h

[Mips] Remove unused MipsSubtarget::MIPS1WarningPrinted (NFC) (#244650)

The definition and last uses were removed on September 19, 2026 in
commit 73641283fc038d819b5a0d3e5fd1315d501ff9e1.

Assisted-by: Antigravity
DeltaFile
+0-3llvm/lib/Target/Mips/MipsSubtarget.h
+0-31 files

LLVM/project d361f7b — llvm/lib/Target/RISCV RISCVISelLowering.cpp, llvm/test/CodeGen/RISCV mul-to-addsub-shl-xlen.ll

[RISCV] Specially handle multiply by negative power-of-two cases (#244731)

Prior to this change, for power-of-two negative values in
`expandMulToAddOrSubOfShl()`, the `Shift1` was calculated as a `SHL` by
`32`, which for `i32` overflows, so is considered `undef`. In addition,
for the `i64` negative power-of-two case, `MulAmt + MulAmtLowBit`
overflowed in `uint64_t` causing a missed optimization.

Fixes #244328

Based on discussions with @lenary.

AI Usage: Reviewed by Codex.
DeltaFile
+116-0llvm/test/CodeGen/RISCV/mul-to-addsub-shl-xlen.ll
+20-1llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+136-12 files

LLVM/project d57c884 — llvm/lib/Target/RISCV RISCVCallingConv.cpp

[RISCV] Remove repeated calls to getFastCCArgGPRs. NFC (#244756)
DeltaFile
+4-4llvm/lib/Target/RISCV/RISCVCallingConv.cpp
+4-41 files

LLVM/project 5f3c2b5 — llvm/lib/Target/SystemZ SystemZISelLowering.cpp

[SystemZ][z/OS] Fix unsued variable error (#244755)

Missed a variable only used in assert. Fix is to move the call inside
the assert, and remove the variable.
DeltaFile
+1-2llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
+1-21 files

LLVM/project 14fee62 — llvm/lib/Target/RISCV RISCVAsmPrinter.cpp

[RISCV] Rewrite scratch register search in LowerKCFI_CHECK to avoid incrementing past X31. (#240941)

We don't know where X31 is in the register list, we really shouldn't
look at values after it.

Use a list of scratch registers instead of incrementing the register id.
This allows us to check when we we've reached the end of the array.

While there change unsigned to MCRegister and MCPhysReg.

Assisted-by: Claude
DeltaFile
+12-8llvm/lib/Target/RISCV/RISCVAsmPrinter.cpp
+12-81 files

LLVM/project 6065368 — llvm/lib/Transforms/Vectorize VectorCombine.cpp

fixup! Do not use ArrayRef as key
DeltaFile
+4-3llvm/lib/Transforms/Vectorize/VectorCombine.cpp
+4-31 files

LLVM/project 83a1950 — llvm/include/llvm/MC MCDwarf.h MCSection.h, llvm/lib/MC MCStreamer.cpp MCDwarf.cpp

[MC] Emit line table rows for subsections in layout order (#242138)

Line table entries are recorded per section in emission order, but
subsections are laid out after subsection 0 in increasing order of their
numbers. For example, assembling the following with -g:
```
    .text
    nop               # 0x0
    .subsection 1
    nop               # 0x2
    .subsection 0
    nop               # 0x1
```
produces rows for 0x0, 0x2 and 0x1, in that order. The negative address
delta of the last row is encoded as a wrapped-around unsigned
DW_LNS_advance_pc operand. DWARF requires addresses to only increase
within a sequence: llvm-dwarfdump --verify reports "decreases in address
from previous row", and consumers using checked arithmetic, such as
gimli, reject the whole line program. The Linux kernel hits this on

    [21 lines not shown]
DeltaFile
+99-0llvm/test/DebugInfo/X86/debug-line-subsection.ll
+88-0llvm/test/MC/ELF/debug-line-subsection.s
+25-6llvm/lib/MC/MCDwarf.cpp
+4-3llvm/lib/MC/MCStreamer.cpp
+7-0llvm/include/llvm/MC/MCSection.h
+3-0llvm/include/llvm/MC/MCDwarf.h
+226-96 files

LLVM/project c5d2fa0 — llvm/test/tools/dsymutil/AArch64 mergeable-libs-relocation-map.test mergeable-libs-relocations-lost.test, llvm/tools/dsymutil DwarfLinkerForBinary.h DwarfLinkerForBinary.cpp

[dsymutil] Warn when the relocations of an object file were all lost (#241515)

A valid relocation is against a symbol of the binary, whose DIE is kept
along with the relocation.
An object file with valid relocations that saves none of them to the
relocation map has lost them, and merging the library would drop its
debug info.
That is how the relocation maps came out empty without notice. dsymutil
now warns about it.

Depends on #241512, only the last commit is new.
DeltaFile
+25-0llvm/test/tools/dsymutil/AArch64/mergeable-libs-relocations-lost.test
+10-2llvm/tools/dsymutil/DwarfLinkerForBinary.cpp
+9-1llvm/tools/dsymutil/DwarfLinkerForBinary.h
+1-1llvm/test/tools/dsymutil/AArch64/mergeable-libs-relocation-map.test
+45-44 files