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

Rebase, address comments, improvements

Created using spr 2.0.0-beta.1
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,2457,239 files not shown
+414,435-241,0517,245 files

LLVM/project d7ce140 — llvm/test/Transforms/SLPVectorizer/AArch64 fast-two-sum-operand-order.ll, llvm/test/Transforms/SLPVectorizer/X86 fast-two-sum-operand-order-second-pass.ll

[SLP][NFC]Add extra tests for reordering in two-sum operands, NFC

Pull-request: https://github.com/llvm/llvm-project/pull/245097
DeltaFile
+357-0llvm/test/Transforms/SLPVectorizer/AArch64/fast-two-sum-operand-order.ll
+84-0llvm/test/Transforms/SLPVectorizer/X86/fast-two-sum-operand-order-second-pass.ll
+441-02 files

LLVM/project b0b28d6 — mlir/lib/Interfaces SideEffectInterfaces.cpp CMakeLists.txt, mlir/test/Dialect/EmitC canonicalize.mlir

[MLIR] Filter out recursive memory effect for ReturnLike

ReturnLike interface should be rule out from the MemoryEffect check
for RecursiveMemoryEffect. It makes sense as the memory effect for
ReturnLike never effect its parent scope.

Assisted-by: Claude # Test
DeltaFile
+25-0mlir/test/Transforms/remove-dead-values.mlir
+25-0mlir/test/Transforms/canonicalize-dce.mlir
+16-0mlir/test/Dialect/SparseTensor/canonicalize.mlir
+14-1mlir/lib/Interfaces/CMakeLists.txt
+10-2mlir/lib/Interfaces/SideEffectInterfaces.cpp
+8-0mlir/test/Dialect/EmitC/canonicalize.mlir
+98-32 files not shown
+103-38 files

LLVM/project e901b3d — mlir/include/mlir/Dialect/EmitC/IR EmitC.td, mlir/include/mlir/Dialect/SparseTensor/IR SparseTensorOps.td

[MLIR][EmitC][SparseTensor] Mark yield ops as ReturnLike

emitc.yield and sparse_tensor.yield only transfer control back to their
parent op (or to the next region iteration), which is exactly what the
ReturnLike trait models. Add the trait so these terminators implement
RegionBranchTerminatorOpInterface, and the region control flow of their
parents is verified through the generic RegionBranchOpInterface checks.

The sparse_tensor.iterate type-mismatch test now reports the generic
control-flow edge diagnostic.

Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+2-1mlir/test/Dialect/SparseTensor/invalid.mlir
+2-1mlir/include/mlir/Dialect/EmitC/IR/EmitC.td
+1-1mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorOps.td
+5-33 files

LLVM/project 466c2d1 — llvm/lib/Transforms/Vectorize VPlanTransforms.cpp, llvm/test/Transforms/LoopVectorize early_exit_with_stores.ll

[LV] Compute IV in trip count type for early exits with side effects. (#245081)

handleUncountableExitsWithSideEffects compares IV + FirstActiveLane
against the trip count in the middle block, but computed the sum in the
IV type. The trip count can be wider than the IV, e.g. i32 for an i8 IV,
which crashed with "different types inferred for different operands".

Compute the exit IV in the trip count type, which also avoids wrapping
when the exit IV is one past the largest IV value, and truncate it to
the IV type for the scalar loop resume value.
DeltaFile
+72-0llvm/test/Transforms/LoopVectorize/early_exit_with_stores.ll
+9-3llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+81-32 files

LLVM/project fe4c716 — llvm/test/tools/dsymutil/AArch64 typedef-unnamed-types.test, llvm/tools/dsymutil Options.td

[dsymutil] Make -j an alias for --num-threads (#245080)

The help text calls -j an alias for --num-threads, but the option was
declared without Alias<threads> when the options moved to TableGen.
DeltaFile
+11-0llvm/test/tools/dsymutil/AArch64/typedef-unnamed-types.test
+1-0llvm/tools/dsymutil/Options.td
+12-02 files

LLVM/project 482711b — llvm/lib/Transforms/Vectorize LoopVectorizationPlanner.h VPlan.h, llvm/test/Transforms/LoopVectorize/VPlan vplan-printing-branch-weights.ll vplan-based-stride-mv.ll

[VPlan] Encode single-scalar-ness of VPInstruction in a field (NFC). (#227761)

Add a dedicated field to VPInstruction to encode whether it produces a
single scalar.

The goal is to remove the hard-coded opcodes in isSingleScalar and
support opcodes both as single-scalar and vector.

The initial version just uses it for casts, to enable using
VPInstruction for VPWidenCastRecipe
(https://github.com/llvm/llvm-project/pull/129712)

Other single-scalar opcodes (PHI, Load, Intrinsic, ExplicitVectorLength,
ResumeForEpilogue) are still derived from the opcodes and will be
transitioned later.

PR: https://github.com/llvm/llvm-project/pull/227761
DeltaFile
+34-27llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
+14-8llvm/lib/Transforms/Vectorize/VPlan.h
+9-9llvm/test/Transforms/LoopVectorize/VPlan/vplan-based-stride-mv.ll
+4-4llvm/test/Transforms/LoopVectorize/VPlan/vplan-printing-branch-weights.ll
+3-3llvm/test/Transforms/LoopVectorize/VPlan/AArch64/vplan-memory-op-decisions.ll
+4-2llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h
+68-535 files not shown
+76-6111 files

LLVM/project 7ec938b — llvm/docs ProgrammersManual.md, llvm/include/llvm/ADT TinyPtrVector.h

[ADT] Allow null pointers in TinyPtrVector. (#244938)

The restriction that null pointers aren't allowed is a footgun, and it
isn't necessary for the class to function. Change the representation so
an empty vector is a null pointer on the other side of the PointerUnion.

(This is the underlying cause of
https://github.com/llvm/llvm-project/pull/243189 .)

This hopefully shouldn't have any noticeable performance impact.
DeltaFile
+75-58llvm/include/llvm/ADT/TinyPtrVector.h
+14-0llvm/unittests/ADT/TinyPtrVectorTest.cpp
+4-4llvm/docs/ProgrammersManual.md
+93-623 files

LLVM/project 0840454 — clang/docs ReleaseNotes.md, clang/lib/Basic/Targets ARM.cpp AArch64.cpp

[clang][ARM][AArch64] Make __ARM_SIZEOF_WCHAR_T match wchar_t (#240570)

__ARM_SIZEOF_WCHAR_T was 4 unless -fshort-wchar or -fwchar-type was
given. On Windows wchar_t is 2 bytes, so on ARM and AArch64 Windows the
macro said 4. Use the size of the target's wchar_t, which already takes those
options into account.

Assisted-by: Claude Opus 5.5 (Anthropic)
DeltaFile
+2-2clang/test/Preprocessor/init-aarch64.c
+1-2clang/lib/Basic/Targets/ARM.cpp
+1-2clang/lib/Basic/Targets/AArch64.cpp
+3-0clang/docs/ReleaseNotes.md
+1-0clang/test/Preprocessor/init-arm.c
+8-65 files

LLVM/project f4c2472 — llvm/lib/Analysis PHITransAddr.cpp, llvm/test/Transforms/GVN/PRE pre-load.ll

[Analysis] Do not reuse GEP instruction with tighten wrap flag

A GEP with tighten wrap flag can introduce poision to the user of phi
node. Skip such reuse so that GVN can produce another instruction and
merge the flag in next processInstruction round on the same target

Asissted-by: Claude # Test
DeltaFile
+43-1llvm/test/Transforms/GVN/PRE/pre-load.ll
+2-0llvm/lib/Analysis/PHITransAddr.cpp
+45-12 files

LLVM/project d09db45 — compiler-rt/include/profile CopyProfData.inc, compiler-rt/lib/copyprof copyprof_file_backend.cpp

[CopyProf] File backend and llvm-profdata support.
DeltaFile
+310-0llvm/lib/ProfileData/CopyProfReader.cpp
+210-0compiler-rt/lib/copyprof/copyprof_file_backend.cpp
+108-0llvm/include/llvm/ProfileData/CopyProfReader.h
+107-0llvm/include/llvm/ProfileData/CopyProfData.inc
+106-0compiler-rt/include/profile/CopyProfData.inc
+62-0compiler-rt/test/copyprof/TestCases/report_to_file_test.cpp
+903-06 files not shown
+991-312 files

LLVM/project 8982aa4 — compiler-rt/test/copyprof lit.site.cfg.py.in CMakeLists.txt, compiler-rt/test/copyprof/TestCases simple_allocation_test.cpp simple_test.cpp

[CopyProf] End-to-end testing.
DeltaFile
+117-0compiler-rt/test/copyprof/TestCases/simple_test.cpp
+113-0compiler-rt/test/copyprof/TestCases/simple_allocation_test.cpp
+36-0compiler-rt/test/copyprof/lit.cfg.py
+35-0compiler-rt/test/copyprof/CMakeLists.txt
+31-0compiler-rt/test/copyprof/Unit/lit.site.cfg.py.in
+12-0compiler-rt/test/copyprof/lit.site.cfg.py.in
+344-02 files not shown
+349-28 files

LLVM/project 2b0ccac — compiler-rt/lib/copyprof copyprof_report_buffer.h copyprof_flags.cpp, compiler-rt/lib/copyprof/tests copyprof_report_buffer_test.cpp copyprof_report_sink_test.cpp

[CopyProf] Asynchronous reporting.
DeltaFile
+265-0compiler-rt/lib/copyprof/copyprof_report_sink.cpp
+206-0compiler-rt/lib/copyprof/tests/copyprof_report_sink_test.cpp
+89-8compiler-rt/lib/copyprof/copyprof_reporting.cpp
+69-0compiler-rt/lib/copyprof/copyprof_flags.cpp
+62-0compiler-rt/lib/copyprof/tests/copyprof_report_buffer_test.cpp
+58-0compiler-rt/lib/copyprof/copyprof_report_buffer.h
+749-812 files not shown
+1,102-1518 files

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

Rebase, improvements

Created using spr 2.0.0-beta.1
DeltaFile
+15,373-16,115llvm/lib/Target/Hexagon/HexagonDepIICScalar.td
+15,749-15,507llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
+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
+4,234-4,226llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.960bit.ll
+60,791-43,8665,961 files not shown
+341,640-200,8485,967 files

LLVM/project 5e41025 — llvm/test/Transforms/SLPVectorizer/AArch64 spillcost-hoisted-external-user.ll

[SLP][NFC]Add extra tests for spills/reloads, NFC

Pull-request: https://github.com/llvm/llvm-project/pull/245079
DeltaFile
+425-0llvm/test/Transforms/SLPVectorizer/AArch64/spillcost-hoisted-external-user.ll
+425-01 files

LLVM/project 8d5e71d — llvm/lib/Target/AMDGPU/AsmParser AMDGPUAsmParser.cpp, llvm/lib/Target/CSKY/AsmParser CSKYAsmParser.cpp

[nspr] initial commit
DeltaFile
+22-21llvm/lib/Target/CSKY/AsmParser/CSKYAsmParser.cpp
+12-12llvm/lib/Target/VE/AsmParser/VEAsmParser.cpp
+12-12llvm/lib/Target/Lanai/AsmParser/LanaiAsmParser.cpp
+5-4llvm/utils/TableGen/AsmMatcherEmitter.cpp
+5-4llvm/lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp
+5-4llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
+61-5712 files not shown
+89-8918 files

LLVM/project c5ac148 — llvm/lib/Target/AVR AVRRegisterInfo.td, llvm/lib/Target/AVR/AsmParser AVRAsmParser.cpp

[nspr] initial commit
DeltaFile
+67-72llvm/lib/Target/AVR/AsmParser/AVRAsmParser.cpp
+10-0llvm/test/MC/AVR/error.s
+5-1llvm/lib/Target/AVR/AVRRegisterInfo.td
+82-733 files

LLVM/project 8c38e8a — llvm/lib/Target/VE VERegisterInfo.td, llvm/lib/Target/VE/AsmParser VEAsmParser.cpp

[nspr] initial commit
DeltaFile
+18-105llvm/lib/Target/VE/AsmParser/VEAsmParser.cpp
+18-8llvm/lib/Target/VE/VERegisterInfo.td
+36-1132 files

LLVM/project bca8028 — llvm/lib/Target/VE VERegisterInfo.td, llvm/lib/Target/VE/MCTargetDesc VEInstPrinter.h VEInstPrinter.cpp

[nspr] initial commit
DeltaFile
+28-30llvm/lib/Target/VE/VERegisterInfo.td
+1-6llvm/lib/Target/VE/MCTargetDesc/VEInstPrinter.cpp
+1-2llvm/lib/Target/VE/MCTargetDesc/VEInstPrinter.h
+30-383 files

LLVM/project 8bccd65 — llvm/lib/Target/Sparc SparcRegisterInfo.td, llvm/lib/Target/Sparc/AsmParser SparcAsmParser.cpp

[nspr] initial commit
DeltaFile
+10-174llvm/lib/Target/Sparc/AsmParser/SparcAsmParser.cpp
+26-6llvm/lib/Target/Sparc/SparcRegisterInfo.td
+18-0llvm/test/MC/Sparc/sparc-mem-instructions.s
+54-1803 files

LLVM/project 92de736 — clang/lib/Basic/Targets ARM.cpp, clang/test/Misc/target-invalid-cpu-note arm.c

[ARM] Add 'generic' to fillValidCPUList (#244526)

Matches the special case in isValidCPUName.
DeltaFile
+2-1clang/test/Misc/target-invalid-cpu-note/arm.c
+1-0clang/lib/Basic/Targets/ARM.cpp
+3-12 files

LLVM/project 75067f7 — llvm/include/llvm/CodeGen MachineBasicBlock.h, llvm/lib/CodeGen SafeStack.cpp InlineSpiller.cpp

[CodeGen] Remove write-only private member variables (NFC) (#245007)

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

Assisted-by: Antigravity
DeltaFile
+2-9llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.h
+1-5llvm/lib/CodeGen/GlobalISel/CSEInfo.cpp
+1-3llvm/lib/CodeGen/SafeStack.cpp
+1-3llvm/lib/CodeGen/InlineSpiller.cpp
+2-2llvm/lib/CodeGen/ModuloSchedule.cpp
+2-2llvm/include/llvm/CodeGen/MachineBasicBlock.h
+9-244 files not shown
+10-3010 files

LLVM/project 5d41ad3 — utils/bazel/llvm-project-overlay/lldb/source/Plugins BUILD.bazel

[Bazel] Fixes a337fd0 (#245063)

This fixes a337fd02f9c7c4d34e9955d1ec9eeadfc22b43e6 (#244453).

Buildkite error link:
https://buildkite.com/llvm-project/upstream-bazel/builds?commit=a337fd02f9c7c4d34e9955d1ec9eeadfc22b43e6

Co-authored-by: Google Bazel Bot <google-bazel-bot at google.com>
DeltaFile
+13-0utils/bazel/llvm-project-overlay/lldb/source/Plugins/BUILD.bazel
+13-01 files

LLVM/project 17fdfc3 — .github CODEOWNERS

[CODEOWNERS] Group MLIR rules and add section markers (NFC) (#244354)

This is part of improving CODEOWNERS hygiene for MLIR. For context, see:

https://discourse.llvm.org/t/rfc-mlir-align-codeowners-with-active-reviewing/

This PR adds markers around the MLIR section and moves the rules
introduced in #234652 so that MLIR and non-MLIR rules are no longer
interleaved.
DeltaFile
+13-7.github/CODEOWNERS
+13-71 files

LLVM/project 21a6608 — llvm/lib/MCA/HardwareUnits Scheduler.cpp, llvm/lib/Target/ARM ARMScheduleA9.td

[llvm-mca][ARM] Fix Cortex-A9 dispatch hazards and NEON memory resources (#230454)

Fix the Cortex-A9 llvm-mca crash by checking execution-resource
availability for instructions that must issue immediately.

Restore NEON structure load/store resource pressure by using the
existing `ItinRW` mappings instead of resource-free `SchedRW` entries.

Add regression tests for the dispatch hazard, original crash reproducer,
and NEON load/store resource pressure.

Fixes #225087.
DeltaFile
+89-0llvm/test/tools/llvm-mca/ARM/cortex-a9-neon-structure-ldst.s
+81-0llvm/test/tools/llvm-mca/ARM/cortex-a9-dispatch-hazard.s
+27-33llvm/lib/Target/ARM/ARMScheduleA9.td
+24-0llvm/test/tools/llvm-mca/ARM/cortex-a9-neon-crash.s
+8-0llvm/lib/MCA/HardwareUnits/Scheduler.cpp
+229-335 files

LLVM/project 4a9276a — llvm/lib/Target/DirectX DXILContainerGlobals.cpp, llvm/lib/Target/DirectX/DXILWriter DXILWriterPass.cpp

[DirectX] Declare command line options in TableGen (#234865)

Move the options into MCTargetDesc/DirectXMCOptions.td, since the object
writer reads them too. The asm backend hands them from MCTargetOptions
to the object writer; the passes read them from the module's
LLVMContext.

-disable-dxil-remove-unused-resources is renamed to
-dx-remove-unused-resources, with the old spelling kept as an alias.

Aided by Opus 5.5
DeltaFile
+34-0llvm/lib/Target/DirectX/MCTargetDesc/DirectXMCOptions.td
+10-19llvm/lib/Target/DirectX/MCTargetDesc/DirectXContainerObjectWriter.cpp
+12-16llvm/lib/Target/DirectX/DXILWriter/DXILWriterPass.cpp
+24-0llvm/lib/Target/DirectX/MCTargetDesc/DirectXMCOptions.h
+9-14llvm/lib/Target/DirectX/DXILContainerGlobals.cpp
+11-4llvm/lib/Target/DirectX/MCTargetDesc/DirectXMCTargetDesc.cpp
+100-5324 files not shown
+135-10130 files

LLVM/project 3d183e6 — llvm/docs ReleaseNotes.md, llvm/lib/Target/ARM CMakeLists.txt ARM.h

[ARM] Trap after a noreturn call that ends a function or funclet on Windows (#242026)

On Windows the unwinder finds the function or funclet of a frame from
its return address. When a noreturn call is the last instruction of a
function or funclet, the return address is the start of the next one. With
C++ EH (#240693), MSVC's runtime then catches a rethrow from the
end of a catch funclet again and again until the stack overflows. I hit
this running Kodi's exception tests on a Surface RT.

MSVC puts a `__debugbreak` after these calls. This adds a pass that puts
a trap there. AArch64 does this in its AsmPrinter (#232358), but on ARM
blocks can't grow after ARMConstantIslands, so the pass runs before it.

Assisted-by: Claude Opus 5.5 (Anthropic)
DeltaFile
+82-4llvm/test/CodeGen/ARM/Windows/trap-unreachable.ll
+73-0llvm/lib/Target/ARM/ARMAvoidTrailingCall.cpp
+5-0llvm/lib/Target/ARM/ARMTargetMachine.cpp
+3-0llvm/docs/ReleaseNotes.md
+2-0llvm/lib/Target/ARM/ARM.h
+1-0llvm/lib/Target/ARM/CMakeLists.txt
+166-46 files

LLVM/project fe2720f — llvm/lib/Target/ARM ARMConstantIslandPass.cpp, llvm/test/CodeGen/ARM/Windows funclet-align.ll

[ARM] Count the funclet entry alignment in ARMConstantIslands (#242153)

WinException aligns each funclet entry to the function's preferred
alignment, which is 4 once ARMConstantIslands has placed a
constant pool or found a Thumb-2 jump table. ARMConstantIslands
didn't count that padding, so in a function with many funclets a
constant pool load could end up out of range, and the assembler
stopped with "out of range pc-relative fixup value". I hit this building
Kodi for Windows on Arm: a vldr ended up 1032 bytes from its
pool, behind 38 bytes of funclet padding.

This gives funclet entries that alignment once it is final, and updates
the block offsets.

Assisted-by: Claude Opus 5.5 (Anthropic)
DeltaFile
+91-0llvm/test/CodeGen/ARM/Windows/funclet-align.ll
+13-0llvm/lib/Target/ARM/ARMConstantIslandPass.cpp
+104-02 files

LLVM/project 2c38d37 — lld/COFF Writer.cpp, lld/test/COFF cgprofile-same-name.s

[LLD][COFF] Make the call graph profile sort deterministic (#240563)

sortSections copied the call graph priorities into ctx.config.order,
which is keyed by symbol name. When two sections had leaders
with the same name, for example static functions with the same
name in different files, both got the priority of whichever came
last in a map keyed by pointers. So the layout could change
between two links of the same inputs. Sort by each section's
own priority instead.

Assisted-by: Claude Opus 5.5 (Anthropic)
DeltaFile
+43-0lld/test/COFF/cgprofile-same-name.s
+16-9lld/COFF/Writer.cpp
+59-92 files

LLVM/project a148afa — lld/COFF Writer.cpp, lld/test/COFF arm64-thunks-same-chunk.s arm-thumb-thunks-same-chunk.s

[LLD][COFF] Don't thunk an in-range branch within one section (#240564)

createThunks gives a branch a range extension thunk when it is out of
range with a safety margin, and the margin grows when a pass fails. A
branch to a target in its own section chunk got one too, although its
distance can't change: thunks are only placed between chunks. The
thunk clobbers r12 on ARM (x16 on ARM64) in the middle of a function.
MSVC's __rt_sdiv keeps a value in r12 across such a branch, so its
remainders came back with the wrong sign. Check these branches
without the margin.

Assisted-by: Claude Opus 5.5 (Anthropic)
DeltaFile
+39-0lld/test/COFF/arm-thumb-thunks-same-chunk.s
+36-0lld/test/COFF/arm64-thunks-same-chunk.s
+8-0lld/COFF/Writer.cpp
+83-03 files