LLVM/project 7287b4a — clang/lib/CIR/Dialect/Transforms CallConvLoweringPass.cpp, clang/lib/CIR/Dialect/Transforms/TargetLowering CIRABIRewriteContext.h CIRABIRewriteContext.cpp

[spr] update

Created using spr 2.0.0-beta.2
DeltaFile
+29-26clang/lib/CIR/Dialect/Transforms/TargetLowering/CIRABIRewriteContext.h
+42-13clang/lib/CIR/Dialect/Transforms/TargetLowering/CIRABIRewriteContext.cpp
+21-1clang/lib/CIR/Dialect/Transforms/CallConvLoweringPass.cpp
+92-403 files

LLVM/project 11a72e0 — clang/include/clang/CIR/Dialect Passes.h, clang/include/clang/CIR/Dialect/Transforms CallConvTarget.h

[spr] update

Created using spr 2.0.0-beta.2
DeltaFile
+21-0clang/include/clang/CIR/Dialect/Transforms/CallConvTarget.h
+1-7clang/include/clang/CIR/Dialect/Passes.h
+1-1clang/lib/CIR/Dialect/Transforms/TargetLowering/CIRABIRewriteContext.h
+0-1clang/lib/CIR/Dialect/Transforms/TargetLowering/CMakeLists.txt
+23-94 files

LLVM/project 1922c0c — llvm/test/CodeGen/X86 gather-scatter-sink-gep.ll, llvm/test/Transforms/CodeGenPrepare/AArch64 sink-gather-scatter-addressing.ll

[CodeGenPrepare][X86] Add tests for sinking GEPs  (#242745)

Pre-commit tests for sinking the GEPs computing the address of a
gather/scatter into its block.
This is a preparation for the PR that addresses FIXME in CodegenPrepare.
(https://github.com/llvm/llvm-project/pull/242746)
DeltaFile
+380-0llvm/test/Transforms/CodeGenPrepare/X86/gather-scatter-sink-gep.ll
+276-0llvm/test/CodeGen/X86/gather-scatter-sink-gep.ll
+29-0llvm/test/Transforms/CodeGenPrepare/AArch64/sink-gather-scatter-addressing.ll
+685-03 files

LLVM/project 3cbaa7f — clang-tools-extra/test/clang-tidy/infrastructure export-SARIF-diagnostics-macro-thread-flows.cpp

[clang-tidy] Fix SARIF test missing '--' (#244927)

[clang-tidy] Fix SARIF test missing '--'

export-SARIF-diagnostics-macro-thread-flows.cpp was missing a "--" that
caused this test to fail.

Co-authored-by: Jones, Matthew (DI SW SIM FRWK PLAT SIMFW HPC) <jones.matthew at siemens.com>
DeltaFile
+1-1clang-tools-extra/test/clang-tidy/infrastructure/export-SARIF-diagnostics-macro-thread-flows.cpp
+1-11 files

LLVM/project f7a1289 — llvm/cmake/modules LLVMExternalProjectUtils.cmake

[CMake] Update regex to match typed arguments (#244963)

The regex used to match arguments in the cross-compiling case didn't
account for types and would fail to match.
DeltaFile
+5-5llvm/cmake/modules/LLVMExternalProjectUtils.cmake
+5-51 files

LLVM/project d0a9352 — llvm/runtimes CMakeLists.txt

[CMake] Fix variable name shadowing (#244962)

The append_passthrough_options macro has an argument named type, but it
also reads the property into the variable of the same name. Because
CMake macros perform textual substitution of the ${type} argument before
dereferencing the ${type} variable, passthrough options are emitted as
-DCMAKE_CXX_FLAGS:RUNTIMES=... instead of -DCMAKE_CXX_FLAGS:STRING=...
DeltaFile
+3-3llvm/runtimes/CMakeLists.txt
+3-31 files

LLVM/project 258f237 — llvm/lib/Transforms/IPO Attributor.cpp, llvm/test/Transforms/OpenMP no-change-preserve-analyses.ll

Attributor: Don't report a change when no functions are internalized

internalizeFunctions returned true for an empty set, so this reported
a change for every module and invalidated all function analyses even
when it did nothing.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+21-0llvm/test/Transforms/OpenMP/no-change-preserve-analyses.ll
+3-0llvm/lib/Transforms/IPO/Attributor.cpp
+24-02 files

LLVM/project 67f78df — clang/lib/CIR/Dialect/Transforms/TargetLowering CMakeLists.txt

[spr] update

Created using spr 2.0.0-beta.2
DeltaFile
+1-0clang/lib/CIR/Dialect/Transforms/TargetLowering/CMakeLists.txt
+1-01 files

LLVM/project 1625c1a — clang/lib/CIR/Dialect/Transforms/TargetLowering CIRABIRewriteContext.cpp, clang/test/CIR func-simple.cpp

[CIR][NFC] Mark return value slots on cir.alloca (#244192)
DeltaFile
+44-44clang/test/CIR/CodeGen/unary.cpp
+33-33clang/test/CIR/CodeGen/fixed-point-arith.cpp
+31-31clang/test/CIR/Transforms/abi-lowering/coerce-record-return-from-memory.cir
+16-16clang/test/CIR/CodeGen/pointer-to-data-member.cpp
+16-13clang/lib/CIR/Dialect/Transforms/TargetLowering/CIRABIRewriteContext.cpp
+16-8clang/test/CIR/func-simple.cpp
+156-145115 files not shown
+449-425121 files

LLVM/project 18ed904 — clang/include/clang/CIR/Dialect/IR CIROps.td, clang/lib/CIR/Dialect/IR CIRMemorySlot.cpp

[CIR] Fix mem2reg promotion of copies and unions, drop lifetime markers (#244294)
DeltaFile
+175-0clang/test/CIR/Transforms/mem2reg.cir
+60-4clang/lib/CIR/Dialect/IR/CIRMemorySlot.cpp
+6-2clang/include/clang/CIR/Dialect/IR/CIROps.td
+241-63 files

LLVM/project 68cc5e1 — llvm/lib/Target/LoongArch LoongArchTargetMachine.cpp LoongArchISelDAGToDAG.cpp, llvm/test/CodeGen/LoongArch newpm-pipeline.ll

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

Created using spr 1.3.7

[skip ci]
DeltaFile
+169-0llvm/lib/Target/LoongArch/LoongArchCodeGenPassBuilder.cpp
+143-0llvm/test/CodeGen/LoongArch/newpm-pipeline.ll
+21-0llvm/lib/Target/LoongArch/LoongArchPassRegistry.def
+11-2llvm/lib/Target/LoongArch/LoongArch.h
+10-2llvm/lib/Target/LoongArch/LoongArchISelDAGToDAG.cpp
+6-5llvm/lib/Target/LoongArch/LoongArchTargetMachine.cpp
+360-92 files not shown
+370-98 files

LLVM/project 2a3c560 — llvm/lib/Target/LoongArch LoongArchTargetMachine.cpp LoongArchPassRegistry.def, llvm/test/CodeGen/LoongArch newpm-pipeline.ll

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+168-0llvm/lib/Target/LoongArch/LoongArchCodeGenPassBuilder.cpp
+144-0llvm/test/CodeGen/LoongArch/newpm-pipeline.ll
+37-32llvm/lib/Target/LoongArch/LoongArchOptWInstrs.cpp
+25-4llvm/lib/Target/LoongArch/LoongArch.h
+22-0llvm/lib/Target/LoongArch/LoongArchPassRegistry.def
+8-7llvm/lib/Target/LoongArch/LoongArchTargetMachine.cpp
+404-433 files not shown
+424-459 files

LLVM/project e8fe7e5 — llvm/lib/CodeGen MachineBasicBlock.cpp PHIElimination.cpp, llvm/test/CodeGen/AMDGPU phi-elim-subreg-lanes-multi-pred.mir

PHIElim: Trim PHI source subranges without a full shrinkToUses (#228488)

This contains a repurposed version of #226209, plus a supplemental fix
branch which was never posted. #228073 was an alternative implementation which
landed first; this replaces the brute-force shrinkToUses with targeted live range
adjustments. Some crude stress test benchmarking suggests this is 2-4x
faster measuring the pass in isolation.

shrinkToUses rescans every use of each subrange which is much more than is
necessary. The only segments that need changing are the ones ending at the 
inserted phi source copies. Instead, track the per-lane copies as they are inserted 
and trim each lane at its last read, clamped to the predecessor block, and stop 
SplitCriticalEdge from extending subranges for lanes the PHI does not read. This 
keeps the live ranges correct while avoiding the per-subrange rescans. The 
shrinkToUses implementation's cost scales with the number of uses, but this remains 
relatively flat. An example with 640 uses is 7.2x faster.

Because this edits segments surgically instead of recomputing them, it has to get the 
bounds exactly right in cases shrinkToUses handles. The clamp to the predecessor 

    [14 lines not shown]
DeltaFile
+139-0llvm/test/CodeGen/Hexagon/phi-elim-subreg-lanes.mir
+99-27llvm/lib/CodeGen/PHIElimination.cpp
+62-0llvm/test/CodeGen/AMDGPU/phi-elim-subreg-lanes-multi-pred.mir
+51-0llvm/test/CodeGen/Hexagon/phi-elim-subreg-lanes-debug-use.mir
+18-9llvm/lib/CodeGen/MachineBasicBlock.cpp
+369-365 files

LLVM/project 341bd0a — lldb/source/API SBTarget.cpp SBSymbol.cpp

[lldb] Intern remaining SB API strings in the right pool (#244422)

Strings returned straight from a ConstString now go through the system
pool, or the owning debugger's pool. Only the strings that live in the
object itself (such as SBError, SBCommandReturnObject) and static
literals are left as they are.

SBDebugger::GetVersionString continues to use the global pool because it
can be called before SBDebugger::Initialize.

Assisted-by: Claude
DeltaFile
+5-17lldb/source/API/SBModule.cpp
+9-8lldb/source/API/SBType.cpp
+9-6lldb/source/API/SBFunction.cpp
+12-3lldb/source/API/SBValue.cpp
+3-10lldb/source/API/SBTarget.cpp
+8-5lldb/source/API/SBSymbol.cpp
+46-4927 files not shown
+127-10933 files

LLVM/project 8c786b2 — libc/benchmarks LibcMemoryBenchmarkMain.cpp LibcMemoryGoogleBenchmarkMain.cpp

[libc] Add strcmp benchmark

To guide some optimization work around implementing an optimized strcmp
implementation.

Assisted-By: LLM

Reviewers: petrhosek

Pull Request: https://github.com/llvm/llvm-project/pull/244924
DeltaFile
+6-3libc/benchmarks/LibcMemoryBenchmark.cpp
+7-0libc/benchmarks/LibcDefaultImplementations.cpp
+6-0libc/benchmarks/LibcFunctionPrototypes.h
+5-0libc/benchmarks/LibcMemoryGoogleBenchmarkMain.cpp
+5-0libc/benchmarks/LibcMemoryBenchmark.h
+4-0libc/benchmarks/LibcMemoryBenchmarkMain.cpp
+33-31 files not shown
+37-37 files

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

[libc] Add a benchmark for strlen

Add a benchmark for strlen to guide optimization efforts.

Just reuse the SearchSetup that memchr uses by making it put a \0 at the
end.

Reviewers: petrhosek

Pull Request: https://github.com/llvm/llvm-project/pull/244923
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 17d93c0 — llvm/lib/Support/Windows Process.inc

[Windows][Support] Use FindFirstFileExW for better performance, NFC (#244675)
DeltaFile
+3-1llvm/lib/Support/Windows/Process.inc
+3-11 files

LLVM/project ab9992f — llvm/include/llvm/Transforms/IPO Attributor.h, llvm/include/llvm/Transforms/Utils CallGraphUpdater.h

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
+43-0llvm/test/Transforms/OpenMP/preserve-function-analyses.ll
+18-3llvm/lib/Transforms/IPO/OpenMPOpt.cpp
+7-6llvm/include/llvm/Transforms/IPO/Attributor.h
+2-0llvm/include/llvm/Transforms/Utils/CallGraphUpdater.h
+70-94 files

LLVM/project f9bf2ab — libc/test/src/__support/File line_reader_test.cpp

[libc] Fix dangling paths in line_reader_test (#244912)

Kept the CString returned by libc_make_test_file_path alive instead of
storing a pointer to its temporary string. The dangling pointers caused
intermittent failures when opening the test files.

Assisted-by: Gemini
DeltaFile
+6-6libc/test/src/__support/File/line_reader_test.cpp
+6-61 files

LLVM/project 79a0b1e — clang/lib/Sema SemaCast.cpp, clang/test/SemaOpenCLCXX address-space-reference-casts.clcpp

[Clang] Check address space overlap for C-style casts to references

In OpenCL and SYCL, `TryAddressSpaceCast` rejects a pointer cast between
two address spaces that don't overlap, but a C-style cast to a reference
is not checked (there is a FIXME for it). As a result,
`(__local int &)global_var` is accepted and we emit an `addrspacecast`.

This PR checks such reference casts in the same way. We only check the
case where the reference binds to the operand directly, i.e. the two
types are related. Other casts to a reference are not affected.

This PR was assisted by AI but I reviewed all the changes.
DeltaFile
+65-0clang/test/SemaOpenCLCXX/address-space-reference-casts.clcpp
+30-3clang/lib/Sema/SemaCast.cpp
+10-0clang/test/SemaSYCL/address-space-array-reference-casts.cpp
+3-0clang/test/SemaSYCL/address-space-conversions.cpp
+108-34 files

LLVM/project dcc4fd8 — clang/test/CodeGen/AArch64/sve rinta.c, clang/test/CodeGen/AArch64/sve-intrinsics acle_sve_rinta.c

[clang][CIR] Add tests for SVE RINTA intrinsics (#240756)

adds CIR tests for svrinta (plain SVE) intrinsics.

Moves and adapts `sve-intrinsics/acle_sve_rinta.c` to `sve/rinta.c`

Part of #223963
DeltaFile
+190-0clang/test/CodeGen/AArch64/sve/rinta.c
+0-176clang/test/CodeGen/AArch64/sve-intrinsics/acle_sve_rinta.c
+190-1762 files

LLVM/project 90e7eb8 — clang/test/CodeGen/AArch64/sve rintm.c, clang/test/CodeGen/AArch64/sve-intrinsics acle_sve_rintm.c

[clang][CIR] Add tests for SVE RINTM intrinsics (#240758)

adds CIR tests for svrintm (plain SVE) intrinsics.

Moves and adapts `sve-intrinsics/acle_sve_rintm.c` to `sve/rintm.c`

Part of #223963
DeltaFile
+190-0clang/test/CodeGen/AArch64/sve/rintm.c
+0-176clang/test/CodeGen/AArch64/sve-intrinsics/acle_sve_rintm.c
+190-1762 files

LLVM/project 8742bd9 — clang/lib/CIR/Dialect/Transforms FlattenCFG.cpp, clang/test/CIR/Transforms flatten-cleanup-scope-return-load.cir

[CIR] Load return values before cleanups that can change them (#244202)

When FlattenCFG routes a `cir.return` through a cleanup, it sinks the
load feeding the return past the cleanup. If the cleanup stores to the
slot, ends its lifetime, or calls something holding its address, the
function returns the post-cleanup value.

Sink the load only when the slot provably can't change: its address does
not escape and nothing after the load or in the cleanup uses it.
Otherwise spill it through the existing return-operand temporary, as
volatile and atomic loads already are. Under NRVO, where return slot
escapes, the value is now read before the cleanups, which is also valid.

Fixing this issue unblocks more usage of mem2reg in CIR.
DeltaFile
+395-0clang/test/CIR/Transforms/flatten-cleanup-scope-return-load.cir
+72-23clang/lib/CIR/Dialect/Transforms/FlattenCFG.cpp
+467-232 files

LLVM/project b6d8f9a — llvm/lib/Transforms/InstCombine CMakeLists.txt InstCombineSimplifyDemanded.cpp, llvm/utils/gn/secondary/llvm/lib/Transforms/InstCombine BUILD.gn

[InstCombine][NFC] Move SimplifyDemandedUseFPClass functions verbatim to InstCombineSimplifyDemandedFP.cpp
DeltaFile
+1,938-0llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemandedFP.cpp
+0-1,913llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
+1-0llvm/utils/gn/secondary/llvm/lib/Transforms/InstCombine/BUILD.gn
+1-0llvm/lib/Transforms/InstCombine/CMakeLists.txt
+1,940-1,9134 files

LLVM/project c9eda5e — llvm/lib/Analysis CMakeLists.txt ValueTracking.cpp, llvm/utils/gn/secondary/llvm/lib/Analysis BUILD.gn

[ValueTracking][NFC] Move computeKnownFPClass functions verbatim to ValueTrackingFP.cpp
DeltaFile
+1,959-0llvm/lib/Analysis/ValueTrackingFP.cpp
+0-1,906llvm/lib/Analysis/ValueTracking.cpp
+1-0llvm/utils/gn/secondary/llvm/lib/Analysis/BUILD.gn
+1-0llvm/lib/Analysis/CMakeLists.txt
+1,961-1,9064 files

LLVM/project 4fd371d — llvm/runtimes CMakeLists.txt

Revert "[cmake][runtimes] Pass variable type for passthrough CMake options (#…"

This reverts commit c93f7fabe831aafabd158831175ab123c9e77ec6.
DeltaFile
+0-8llvm/runtimes/CMakeLists.txt
+0-81 files

LLVM/project 80e7cab — llvm/test/Transforms/LoopVectorize/RISCV epilogue-strided-access.ll, llvm/test/Transforms/LoopVectorize/X86 cleanup-runtime-checks.ll

[LV] Add tests for reusing IR values with poison-generating flags (NFC) (#244948)

Add a test where computing an exit value via SCEV while building VPlans
reuses an 'add nsw' in the preheader, which drops its nsw flag, even
though vectorization is not profitable and the plans are discarded.

Also add a test where only the epilogue vector loop uses a strided
access, whose start reuses a 'getelementptr inbounds' that requires
dropping its inbounds flag.
DeltaFile
+100-0llvm/test/Transforms/LoopVectorize/RISCV/epilogue-strided-access.ll
+35-0llvm/test/Transforms/LoopVectorize/X86/cleanup-runtime-checks.ll
+135-02 files

LLVM/project 82b5356 — llvm/lib/Analysis ValueTracking.cpp ValueTrackingInternal.h

[ValueTracking][NFC] Prepare computeKnownFPClass before moving it to ValueTrackingFP.cpp
DeltaFile
+42-0llvm/lib/Analysis/ValueTrackingInternal.h
+13-13llvm/lib/Analysis/ValueTracking.cpp
+55-132 files

LLVM/project 4465b80 — llvm/lib/Target/LoongArch LoongArchTargetMachine.cpp LoongArchISelDAGToDAG.cpp, llvm/test/CodeGen/LoongArch newpm-pipeline.ll

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+169-0llvm/lib/Target/LoongArch/LoongArchCodeGenPassBuilder.cpp
+143-0llvm/test/CodeGen/LoongArch/newpm-pipeline.ll
+21-0llvm/lib/Target/LoongArch/LoongArchPassRegistry.def
+11-2llvm/lib/Target/LoongArch/LoongArch.h
+10-2llvm/lib/Target/LoongArch/LoongArchISelDAGToDAG.cpp
+6-5llvm/lib/Target/LoongArch/LoongArchTargetMachine.cpp
+360-92 files not shown
+370-98 files

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

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

Created using spr 1.3.7

[skip ci]
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