LLVM/project 3db365dflang/include/flang/Runtime extensions.h

[flang-rt] Fix defining `pid_t` on GPU builds (#178470)

Summary:
We support building flang-rt on GPU targets. These do not have POSIX
types so we should not include this if it's not present.
DeltaFile
+2-2flang/include/flang/Runtime/extensions.h
+2-21 files

LLVM/project 3d5dc54llvm/test/CodeGen/AMDGPU amdgcn.bitcast.1024bit.ll amdgcn.bitcast.512bit.ll

Merge branch 'main' into users/usx95/01-23-transparent_functions_for_all_gsl_pointers
DeltaFile
+74,257-82,975llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
+26,135-30,267llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.512bit.ll
+9,044-11,203llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.320bit.ll
+5,872-6,681llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.256bit.ll
+2,674-3,346llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.128bit.ll
+1,521-1,873llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.96bit.ll
+119,503-136,345136 files not shown
+129,256-141,451142 files

LLVM/project c75d371llvm/test/CodeGen/AArch64 sve-calling-convention.ll stp-opt-with-renaming-undef-assert.mir, llvm/test/CodeGen/Mips optimizeAndPlusShift.ll

[LLVM] Fix typo "LABLE" in test checks (#178451)

DeltaFile
+9-9llvm/test/CodeGen/Mips/optimizeAndPlusShift.ll
+2-2llvm/test/CodeGen/AArch64/sve-calling-convention.ll
+2-2llvm/test/CodeGen/X86/tailregccpic.ll
+1-1llvm/utils/DSAclean.py
+1-1llvm/test/CodeGen/AArch64/stp-opt-with-renaming-undef-assert.mir
+1-1llvm/test/MC/AsmParser/altmacro_string_escape.s
+16-162 files not shown
+17-188 files

LLVM/project fd45140llvm/lib/CodeGen/SelectionDAG TargetLowering.cpp, llvm/test/CodeGen/AArch64 tbz-tbnz.ll

[DAG] SimplifyDemandedBits - ICMP_SLT(X,0) - only sign mask of X is required (#164946)

Resolves #164589
DeltaFile
+35-31llvm/test/CodeGen/X86/is_fpclass-fp80.ll
+21-28llvm/test/CodeGen/X86/test-shrink.ll
+28-16llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+22-19llvm/test/CodeGen/AMDGPU/divergence-driven-trunc-to-i1.ll
+5-24llvm/test/CodeGen/AArch64/tbz-tbnz.ll
+8-11llvm/test/CodeGen/X86/combine-smax.ll
+119-1299 files not shown
+162-17515 files

LLVM/project 7e3859cllvm/lib/Target/X86 X86ISelLowering.cpp

[X86] LowerBUILD_VECTORvXbf16 - pull out repeated MVT::f16/bf16 selection. NFC. (#178467)

DeltaFile
+3-4llvm/lib/Target/X86/X86ISelLowering.cpp
+3-41 files

LLVM/project ffeb7d7mlir/lib/Analysis DataFlowFramework.cpp

[mlir][dataflow ] Drop LLVM_DEBUG of DATAFLOW_DEBUG (NFC) (#177398)

We kept the DATAFLOW_DEBUG macro because when
LLVM_ENABLE_ABI_BREAKING_CHECKS is 0, the debugName in AnalysisState is
not defined, which prevents us from printing debug logs(In this case, we
define DATAFLOW_DEBUG(X) as an empty macro, so it won't print any logs).
Therefore, this PR only removes LLVM_DEBUG. We are now using LDBG, so
LLVM_DEBUG is no longer needed.
https://github.com/llvm/llvm-project/pull/176911
DeltaFile
+1-1mlir/lib/Analysis/DataFlowFramework.cpp
+1-11 files

LLVM/project c113a14flang/test/Lower computed-goto.f90 c_ptr-constant-init.f90

[flang][NFC] Converted five tests from old lowering to new lowering (part 10) (#178357)

Tests converted from test/Lower: c_ptr-constant-init.f90,
complex-real.f90,
computed-goto.f90, constant-literal-mangling.f90, control-flow.f90

---------

Co-authored-by: Jean Perier <jperier at nvidia.com>
DeltaFile
+36-28flang/test/Lower/computed-goto.f90
+19-18flang/test/Lower/c_ptr-constant-init.f90
+6-6flang/test/Lower/complex-real.f90
+1-1flang/test/Lower/constant-literal-mangling.f90
+1-1flang/test/Lower/control-flow.f90
+63-545 files

LLVM/project 662acc2llvm/test/CodeGen/AArch64 fcvt_combine.ll

[AArch64][GlobalISel] Update testing for fixed point fcvt. NFC

This adds GlobalISel test coverage for fcvt_combine.ll and adds more variants
for testing.
DeltaFile
+1,420-248llvm/test/CodeGen/AArch64/fcvt_combine.ll
+1,420-2481 files

LLVM/project 3943134clang-tools-extra/clang-tidy/readability NonConstParameterCheck.cpp, clang-tools-extra/docs ReleaseNotes.rst

[clang-tidy] Fix false positive in readability-non-const-parameter for dependent expression (#177345)

Closes #176623
DeltaFile
+22-0clang-tools-extra/test/clang-tidy/checkers/readability/non-const-parameter.cpp
+9-5clang-tools-extra/clang-tidy/readability/NonConstParameterCheck.cpp
+4-0clang-tools-extra/docs/ReleaseNotes.rst
+35-53 files

LLVM/project e72c4fcclang/lib/AST ExprConstant.cpp, clang/lib/AST/ByteCode InterpBuiltin.cpp

[clang][constexpr] Move inf/nan/denormal handling into FP binop callbacks (#178421)

Update the callback signature for `EvaluateFpBinOpExpr` and
`interp__builtin_elementwise_fp_binop` to return
`std::optional<APFloat>`, allowing individual callbacks to decide
whether to handle special floating-point cases (inf/nan/denormal).

Previously, the helper functions had hardcoded validation that forced
all callbacks to reject these cases. This blocked intrinsics needing
custom validation (e.g., rounding mode checks). Now each callback
controls its own validation and returns `std::nullopt` when the fold is
invalid.

Fixes #178416
DeltaFile
+15-7clang/lib/AST/ByteCode/InterpBuiltin.cpp
+15-7clang/lib/AST/ExprConstant.cpp
+30-142 files

LLVM/project 6869509clang/lib/StaticAnalyzer/Checkers/WebKit NoDeleteChecker.cpp, clang/test/Analysis/Checkers/WebKit nodelete-annotation.cpp

[alpha.webkit.NoDeleteChecker] Fix a nullptr deference crash during lookupInBases (#178351)

Added a null check in the lambda passed to lookupInBases.
DeltaFile
+12-0clang/test/Analysis/Checkers/WebKit/nodelete-annotation.cpp
+3-0clang/lib/StaticAnalyzer/Checkers/WebKit/NoDeleteChecker.cpp
+15-02 files

LLVM/project bcf3c2dllvm/lib/Target/AArch64 AArch64SystemOperands.td AArch64Features.td, llvm/lib/Target/AArch64/AsmParser AArch64AsmParser.cpp

[AArch64][llvm] Allow some `tlbip` insns to be used with only +tlbid

Allow `tlbip` instructions containing *E1IS*, *E1OS*, *E2IS* or *E2OS*
to be used with `+tlbid` or `+d128`. This is because the 2025 Armv9.7-A
MemSys specification says:

```
All TLBIP *E1IS*, TLBIP*E1OS*, TLBIP*E2IS* and TLBIP*E2OS* instructions
that are currently dependent on FEAT_D128 are updated to be dependent
on FEAT_D128 or FEAT_TLBID
```
DeltaFile
+110-110llvm/test/MC/AArch64/armv9a-sysp.s
+21-0llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.h
+14-3llvm/lib/Target/AArch64/AArch64SystemOperands.td
+12-4llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
+7-4llvm/lib/Target/AArch64/AArch64Features.td
+10-0llvm/unittests/TargetParser/TargetParserTest.cpp
+174-1213 files not shown
+185-1279 files

LLVM/project ff7bfb9llvm/lib/Analysis StaticDataProfileInfo.cpp, llvm/lib/Transforms/Instrumentation MemProfUse.cpp

Move option from transforms to analysis pass
DeltaFile
+8-1llvm/lib/Analysis/StaticDataProfileInfo.cpp
+1-8llvm/lib/Transforms/Instrumentation/MemProfUse.cpp
+9-92 files

LLVM/project fa3b3a0lldb/tools/lldb-dap DAP.cpp

[lldb-dap] Fix debugger initialisation order in DAP::InitializeDebugger (#178022)

Validate the debugger before assigning it to the member debugger to
avoid setting an invalid debugger on error.

We usually have an existing session with that debugger ends up messing
with that session.
DeltaFile
+6-4lldb/tools/lldb-dap/DAP.cpp
+6-41 files

LLVM/project 5d018e9llvm/test/CodeGen/AMDGPU amdgcn.bitcast.1024bit.ll amdgcn.bitcast.512bit.ll

AMDGPU: Perform zero/any extend combine into permute (#177370)

Increases opportunities to generate permutes.
Motivated sub-optimal code generation of a CK kernel.
DeltaFile
+74,257-82,975llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
+26,135-30,267llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.512bit.ll
+9,044-11,203llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.320bit.ll
+5,872-6,681llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.256bit.ll
+2,674-3,346llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.128bit.ll
+1,521-1,873llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.96bit.ll
+119,503-136,34514 files not shown
+122,472-140,14520 files

LLVM/project d7f177ellvm/lib/Target/AArch64 AArch64SystemOperands.td AArch64Features.td, llvm/lib/Target/AArch64/AsmParser AArch64AsmParser.cpp

[AArch64][llvm] Allow some `tlbip` insns to be used with only +tlbid

Allow `tlbip` instructions containing *E1IS*, *E1OS*, *E2IS* or *E2OS*
to be used with `+tlbid` or `+d128`. This is because the 2025 Armv9.7-A
MemSys specification says:

```
All TLBIP *E1IS*, TLBIP*E1OS*, TLBIP*E2IS* and TLBIP*E2OS* instructions
that are currently dependent on FEAT_D128 are updated to be dependent
on FEAT_D128 or FEAT_TLBID
```
DeltaFile
+110-110llvm/test/MC/AArch64/armv9a-sysp.s
+22-7llvm/lib/Target/AArch64/AArch64SystemOperands.td
+21-0llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.h
+12-4llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
+7-4llvm/lib/Target/AArch64/AArch64Features.td
+6-4llvm/test/MC/AArch64/directive-arch_extension-negative.s
+178-1293 files not shown
+193-1319 files

LLVM/project c98cdd4llvm/lib/Target/SPIRV SPIRVEmitNonSemanticDI.cpp, llvm/test/CodeGen/SPIRV/debug-info crash-000.ll debug-inlinedAt-Declare.ll

[SPIRV] Fix crash due to incorrect state of the SPIRVGlobalRegistry.

Also, simplified checks in test that were not stricly necessary and were failing with this fix.
DeltaFile
+15-0llvm/test/CodeGen/SPIRV/debug-info/crash-000.ll
+0-11llvm/test/CodeGen/SPIRV/debug-info/debug-inlinedAt-Declare.ll
+2-0llvm/lib/Target/SPIRV/SPIRVEmitNonSemanticDI.cpp
+17-113 files

LLVM/project 596a835mlir/test/Dialect/Arith expand-ops.mlir, mlir/test/Dialect/Tensor fold-into-pack-and-unpack.mlir

[MLIR] Fix typo "LABLE" in test checks (#178448)

DeltaFile
+1-1mlir/test/Dialect/Tensor/fold-into-pack-and-unpack.mlir
+1-1mlir/test/Dialect/Arith/expand-ops.mlir
+2-22 files

LLVM/project c3d4375lldb/source/Plugins/SymbolFile/NativePDB PdbAstBuilderClang.cpp SymbolFileNativePDB.cpp, lldb/test/Shell/SymbolFile/NativePDB invalid-inlinee-not-in-ipi.yaml lit.local.cfg

[lldb][NativePDB] Fix crash in debugger when PDB has bad type index value (#166455)

Fix crash when an inline site record in the PDB file contains type index
which is out of bounds
DeltaFile
+300-0lldb/test/Shell/SymbolFile/NativePDB/invalid-inlinee-not-in-ipi.yaml
+10-5llvm/lib/DebugInfo/CodeView/LazyRandomTypeCollection.cpp
+10-5lldb/source/Plugins/SymbolFile/NativePDB/PdbAstBuilderClang.cpp
+9-5lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp
+1-1llvm/include/llvm/DebugInfo/CodeView/LazyRandomTypeCollection.h
+1-0lldb/test/Shell/SymbolFile/NativePDB/lit.local.cfg
+331-166 files

LLVM/project 5413a22llvm/lib/Transforms/Vectorize SLPVectorizer.cpp, llvm/test/Transforms/SLPVectorizer/X86 disjoint-or-reductions.ll

[SLP] Reordered disjoint or reduction of shl(zext, (0, stride, 2* stride)) modelled as bitcast

Added support for reorder reduction of shl(zext)-like construct. Such
constructs are modelled currently as shuffle + bitcast.

Reviewers: RKSimon, hiraditya

Pull Request: https://github.com/llvm/llvm-project/pull/178292
DeltaFile
+62-18llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+8-12llvm/test/Transforms/SLPVectorizer/X86/disjoint-or-reductions.ll
+70-302 files

LLVM/project 362c39dllvm/include/llvm/Transforms/Utils LoopUtils.h, llvm/lib/Transforms/Utils LoopUnrollRuntime.cpp LoopUtils.cpp

[LoopUnroll] Use branch probability in multi-exit loop unrolling (#164799)

This patch improves multi-exit loop unrolling by taking into account
branch probability and not only other exit being deopting one.

This implementation uses branch metadata directly because of unstable
state of BPI in this part of code (runtime unrolling invalidates the
state of the map and using BPI in my tests has caused errors).
If branch probability metadata are not present then the current deopt
heuristic is still used.

---------

Co-authored-by: Marek Sedlacek <msedlacek at azul.com>
DeltaFile
+161-0llvm/test/Transforms/LoopUnroll/unroll-multi-exit-loop-heuristics.ll
+32-13llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp
+34-0llvm/lib/Transforms/Utils/LoopUtils.cpp
+9-0llvm/include/llvm/Transforms/Utils/LoopUtils.h
+236-134 files

LLVM/project 1873c74llvm/test/CodeGen/AMDGPU release-vgprs-spill.ll

[AMDGPU] Add test for early release VGPRs with spills (#178444)

DeltaFile
+49-0llvm/test/CodeGen/AMDGPU/release-vgprs-spill.ll
+49-01 files

LLVM/project 5feb202mlir/include/mlir/Dialect/SPIRV/IR SPIRVTosaOps.td SPIRVTosaTypes.td, mlir/lib/Dialect/SPIRV/IR SPIRVTosaOps.cpp

[mlir][spirv] Add Pooling, Fourier Transform, and MatMul operations (#177585)

to TOSA Extended Instruction Set (001000.1)

This patch expands support for the TOSA Extended Instruction Set
(001000.1) to the SPIR-V dialect in MLIR. The TOSA extended instruction
set provides a standardized set of machine learning operations designed
to be used within spirv.ARM.Graph operations (corresponding to
OpGraphARM in SPV_ARM_graph) and typed with !spirv.arm.tensor<...>
(corresponding to OpTypeTensorARM in SPV_ARM_tensor).

The change introduces:

* Extending dialect plumbing for import, serialization, and
deserialization of the TOSA extended instruction set.
* The spirv.Tosa.*Pool* pooling operations, spirv.Tosa.MatMul, and
spirv.Tosa.*FFT* (Fourier Transform) operations from TOSA extended
instruction, each lowering to the corresponding OpExtInst.
* Verification enforcing that new convolution operations appears only

    [12 lines not shown]
DeltaFile
+360-35mlir/include/mlir/Dialect/SPIRV/IR/SPIRVTosaOps.td
+173-0mlir/test/Target/SPIRV/tosa-ops.mlir
+113-56mlir/test/Dialect/SPIRV/IR/tosa-ops-verification.mlir
+0-128mlir/lib/Dialect/SPIRV/IR/SPIRVTosaOps.cpp
+104-0mlir/test/Dialect/SPIRV/IR/tosa-ops.mlir
+46-0mlir/include/mlir/Dialect/SPIRV/IR/SPIRVTosaTypes.td
+796-2191 files not shown
+804-2237 files

LLVM/project 562c0b0libcxx/include __tree

[libc++] Use the fast path for move assignment in __tree if the allocator is_always_equal (#177115)

This avoids instantiating some code that we know is dead. This is also a
prerequisite for #134330, since we avoid trying to `const_cast` in the
common case now.
DeltaFile
+4-1libcxx/include/__tree
+4-11 files

LLVM/project e19611dclang/include/clang/Analysis/Analyses/LifetimeSafety FactsGenerator.h, clang/lib/Analysis/LifetimeSafety FactsGenerator.cpp

[LifetimeSafety] Handle temporaries of non-trivial view types
DeltaFile
+22-0clang/test/Sema/warn-lifetime-safety.cpp
+10-7clang/lib/Analysis/LifetimeSafety/FactsGenerator.cpp
+1-0clang/include/clang/Analysis/Analyses/LifetimeSafety/FactsGenerator.h
+33-73 files

LLVM/project c21aed2clang/include/clang/Basic AttrDocs.td, clang/lib/Analysis/LifetimeSafety LifetimeAnnotations.cpp

Transparent functions for all gsl::Pointers
DeltaFile
+75-0clang/test/Sema/warn-lifetime-safety.cpp
+32-19clang/lib/Analysis/LifetimeSafety/LifetimeAnnotations.cpp
+40-0clang/include/clang/Basic/AttrDocs.td
+147-193 files

LLVM/project e36cd26llvm/lib/Transforms/Vectorize VPlanUtils.h VPlanTransforms.cpp, llvm/test/Transforms/LoopVectorize epilog-vectorization-reductions.ll

[VPlan] Remove non-reductions after simplifications. (#176795)

In some cases, we identify patterns as reductions, even though they can
be simplified to a non-reduction.

Mark VPReductionPHIRecipe as not reading from memory & not having
side-effects, to clean them up.

We also need to remove ComputeReductionResult VPInstructions with
live-in arguments. This means there is actually no reduction, and we
need to fold it to the live in. Otherwise we would incorrectly reduce
the live-in.

PR: https://github.com/llvm/llvm-project/pull/176795
DeltaFile
+18-22llvm/test/Transforms/LoopVectorize/epilog-vectorization-reductions.ll
+3-3llvm/lib/Transforms/Vectorize/VPlanUtils.h
+5-0llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+3-0llvm/lib/Transforms/Vectorize/VPlanPatternMatch.h
+2-0llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
+31-255 files

LLVM/project 2489e03llvm/lib/CodeGen/SelectionDAG LegalizeIntegerTypes.cpp LegalizeTypes.h, llvm/test/CodeGen/AArch64 pr161013.ll

[LegalizeIntegerTypes] Add `PromoteIntOp_ANY_EXTEND_VECTOR_INREG` (#178144)

Fixes #161013
DeltaFile
+1,124-0llvm/test/CodeGen/X86/pr161013.ll
+49-0llvm/test/CodeGen/AArch64/pr161013.ll
+13-0llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
+1-0llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.h
+1,187-04 files

LLVM/project 43ac23cclang/include/clang/Analysis/Analyses/LifetimeSafety FactsGenerator.h, clang/lib/Analysis/LifetimeSafety FactsGenerator.cpp

[LifetimeSafety] Handle temporaries of non-trivial view types
DeltaFile
+22-0clang/test/Sema/warn-lifetime-safety.cpp
+10-7clang/lib/Analysis/LifetimeSafety/FactsGenerator.cpp
+1-0clang/include/clang/Analysis/Analyses/LifetimeSafety/FactsGenerator.h
+33-73 files

LLVM/project e5902caclang/include/clang/Basic AttrDocs.td, clang/lib/Analysis/LifetimeSafety LifetimeAnnotations.cpp

Transparent functions for all gsl::Pointers
DeltaFile
+75-0clang/test/Sema/warn-lifetime-safety.cpp
+32-19clang/lib/Analysis/LifetimeSafety/LifetimeAnnotations.cpp
+40-0clang/include/clang/Basic/AttrDocs.td
+147-193 files