LLVM/project b80bed2 — 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 da161a8 — llvm/lib/Transforms/Utils CallGraphUpdater.cpp, llvm/test/Transforms/OpenMP preserve-function-analyses.ll

fixup! OpenMPOpt: Invalidate function analyses individually

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+7-1llvm/test/Transforms/OpenMP/preserve-function-analyses.ll
+3-0llvm/lib/Transforms/Utils/CallGraphUpdater.cpp
+10-12 files

LLVM/project d527f06 — 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 cc5ed0c — llvm/lib/Transforms/IPO Attributor.cpp

Attributor: Decide which instructions access memory in the opcode switch (#241115)

initializeInformationCache already switches over the opcode of every
instruction, and then called mayReadOrWriteMemory out of line for each
one. Decide in the switch instead, where only calls need to check their
memory effects.

Instruction counts (callgrind) with other pending attributor-light
changes applied: attributor-light sqlite3 -0.79%, kimwitu++ k -0.32%,
SPASS cnf -0.31%, consumer-typeset z08 -8.59%; the full attributor
-0.02% to -0.08%.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+22-7llvm/lib/Transforms/IPO/Attributor.cpp
+22-71 files

LLVM/project 1779f11 — llvm/lib/Transforms/IPO ExpandVariadics.cpp, llvm/test/Transforms/ExpandVariadics no-callers-report-change.ll

ExpandVariadics: Report a change when rewriting a function without calls

This only reported a change if it rewrote a call, but it always
rewrites the function itself. In lowering mode a variadic function
without callers was changed without being reported.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+17-0llvm/test/Transforms/ExpandVariadics/no-callers-report-change.ll
+4-7llvm/lib/Transforms/IPO/ExpandVariadics.cpp
+21-72 files

LLVM/project 9720628 — llvm/lib/Transforms/Instrumentation PGOForceFunctionAttrs.cpp, llvm/test/Instrumentation/PGOForceFunctionAttrs preserve-function-analyses.ll

PGOForceFunctionAttrs: Only clear analyses of changed functions

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+26-0llvm/test/Instrumentation/PGOForceFunctionAttrs/preserve-function-analyses.ll
+10-1llvm/lib/Transforms/Instrumentation/PGOForceFunctionAttrs.cpp
+36-12 files

LLVM/project 6d49ca2 — compiler-rt/lib/ubsan ubsan_signals_standalone.cpp ubsan_flags.cpp

[spr] update

Created using spr 2.0.0-beta.2
DeltaFile
+5-0compiler-rt/lib/ubsan/ubsan_flags.cpp
+2-0compiler-rt/lib/ubsan/ubsan_signals_standalone.cpp
+7-02 files

LLVM/project 7ef5d3e — llvm/lib/Target/X86/AsmParser X86AsmParser.cpp, llvm/test/MC/X86 intel-syntax-scale-register-parentheses-error.s intel-syntax-scale-register-parentheses.s

[X86][MC] Fold parenthesized register scale expressions (#237899)

Fix incorrect scales in Intel memory operands such as `rbx*(1+1)` and
`rbx*(4/2)`, which currently use scales 1 and 8 instead of 2.

Evaluate parenthesized constants with the existing intel expression
parser, preserving named operators. Validate the full-width scale and
diagnose division/modulo by zero, signed division overflow, and invalid
shift counts.

Validation:

- 713 selected X86 MC and llvm-ml tests passed with assertions enabled.
- 537 supplementary local checks passed across 16/32/64-bit modes.

Partially addresses #150427. Expressions such as `(rax+1)*2` remain
outside this change.
DeltaFile
+83-35llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
+24-0llvm/test/MC/X86/intel-syntax-scale-register-parentheses.s
+21-0llvm/test/MC/X86/intel-syntax-scale-register-parentheses-error.s
+128-353 files

LLVM/project bb91f24 — llvm/lib/Target/X86 X86InstrInfo.cpp X86InstrAVX512.td, llvm/test/CodeGen/X86 avx512-mask-spills.ll

[X86] Fix spill folding of zero-extending mask moves (#240833)

`KMOVBkk`, `KMOVDkk` and, with BWI, `KMOVWkk` zero the mask bits above
their width, but `X86InstrInfo::isCopyInstrImpl` reports them as copies.
Since 4d42e8b5 (D150388), spill folding then replaces such a move with a
spill of its source, so the zero extension is lost (#240463).

Spill folding is correct for real copies, so this patch stops treating
these moves as copies: `KMOVBkk`, `KMOVDkk` and their `_EVEX` forms are
no longer marked `isMoveReg`, and `isCopyInstrImpl` excludes `KMOVWkk`
when BWI is available. Without BWI, `KMOVWkk` moves the whole mask
register and stays a copy.

Fixes #240463

Assisted-by: Claude Opus 5.5
DeltaFile
+69-0llvm/test/CodeGen/X86/avx512-mask-spills.ll
+8-6llvm/lib/Target/X86/X86InstrAVX512.td
+6-0llvm/lib/Target/X86/X86InstrInfo.cpp
+83-63 files

LLVM/project 24c4b81 — clang/lib/Sema SemaExprMember.cpp, clang/test/Sema ext_vector_components.c

[Clang] Fix qualifiers of ext vector components accessed via `->`

For `p->x` where `p` points to an `ext_vector_type` vector, Sema takes the
qualifiers from the type of `p`, which is the pointer itself, instead of the
vector it points to. As a result, `p->x = 1` is accepted even if `p` points to a
`const` vector, while `(*p).x = 1` is rejected. An address space on the vector
is lost in the same way.

This PR takes the qualifiers from the vector for both `.` and `->`. A swizzle
that repeats a component, e.g. `v.xx`, is a computed value, so it doesn't get
any qualifiers.

This PR was assisted by AI but I reviewed all the changes.
DeltaFile
+18-0clang/test/SemaCXX/ext-vector-component-qualifiers.cpp
+7-0clang/test/Sema/ext_vector_components.c
+3-3clang/lib/Sema/SemaExprMember.cpp
+28-33 files

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

fixup! [LICM] Refresh cache for load update
DeltaFile
+16-9llvm/lib/Analysis/InstructionPrecedenceTracking.cpp
+7-4llvm/include/llvm/Analysis/InstructionPrecedenceTracking.h
+0-5llvm/lib/Analysis/MustExecute.cpp
+0-4llvm/lib/Transforms/Scalar/LICM.cpp
+0-2llvm/include/llvm/Analysis/MustExecute.h
+23-245 files

LLVM/project 334f68c — flang/lib/Lower/OpenMP OpenMP.cpp, flang/test/Lower/OpenMP distribute-parallel-do.f90 distribute-parallel-do-simd.f90

[flang][OpenMP] Evaluate composite DISTRIBUTE clauses outside PARALLEL

In composite DISTRIBUTE PARALLEL DO [SIMD], omp.distribute is nested
inside omp.parallel, and the DISTRIBUTE clauses were evaluated after
omp.parallel was created. A DECLARE VARIANT call in the DIST_SCHEDULE
chunk-size expression therefore matched construct={parallel}, although
DISTRIBUTE encloses PARALLEL in the source, and every thread evaluated
the expression.

Evaluate the DISTRIBUTE clauses before creating omp.parallel, as for the
explicit nesting, and destroy their temporaries once, after omp.parallel.

Fixes #244760

Assisted-by: GitHub Copilot
Co-authored-by: Copilot <223556219+Copilot at users.noreply.github.com>
DeltaFile
+44-0flang/test/Lower/OpenMP/declare-variant-construct.f90
+12-8flang/lib/Lower/OpenMP/OpenMP.cpp
+6-4flang/test/Lower/OpenMP/distribute-parallel-do.f90
+6-4flang/test/Lower/OpenMP/distribute-parallel-do-simd.f90
+68-164 files

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 351157f — llvm/lib/Transforms/Utils NameAnonGlobals.cpp CanonicalizeAliases.cpp, llvm/test/Transforms/CanonicalizeAliases preserve-function-analyses.ll

Utils: Preserve function analyses in CanonicalizeAliases and NameAnonGlobals

These passes only change aliases and the names of globals, so they do
not need to invalidate any function analyses.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+16-0llvm/test/Transforms/CanonicalizeAliases/preserve-function-analyses.ll
+14-0llvm/test/Transforms/NameAnonGlobals/preserve-function-analyses.ll
+5-1llvm/lib/Transforms/Utils/NameAnonGlobals.cpp
+5-1llvm/lib/Transforms/Utils/CanonicalizeAliases.cpp
+40-24 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