LLVM/project 3fd37bd — clang/lib/StaticAnalyzer/Checkers NullabilityChecker.cpp

[analyzer] Check the nonnull annotation first for parameters in NullabilityChecker (#245167)

NullabilityChecker checks on every dead-symbol callback (and before
reporting) whether the nonnull preconditions of the current function are
violated. checkParamsForPreconditionViolation computed the lvalue of
every parameter, i.e. looked up its VarRegion, before checking whether
the parameter is annotated _Nonnull, which it rarely is. Check the
annotation first.

On some LLVM TUs (GVN, LiveVariables, RegionStore, SemaExpr) this
reduces the instructions of the static analyzer by 0.3-0.4% and the
cycles by 0.7-1.2%.

Assisted-by: Claude Opus 5.5

Co-authored-by: Gabor Horvath <gaborh at apple.com>
DeltaFile
+5-0clang/lib/StaticAnalyzer/Checkers/NullabilityChecker.cpp
+5-01 files

LLVM/project f19973f — clang/docs ReleaseNotes.md, clang/lib/Analysis CFG.cpp

[clang] Suppress -Wuninitialized for unevaluated builtin args (#217816)

CFGBuilder leaves the arguments of `__builtin_object_size` and
`__builtin_dynamic_object_size` out of the CFG because they are never
evaluated. Use `CallExpr::isUnevaluatedBuiltinCall` instead, which
checks the
`UnevaluatedArguments` attribute, so the same applies to every builtin
declared
that way. `EvaluatedExprVisitor` and `-Wunsequenced` already use the
same
query.

That adds seven builtins: `__builtin_classify_type`,
`__builtin_constant_p`,
`__builtin_infer_alloc_token`, `__GetExceptionInfo`,
`__builtin_os_log_format_buffer_size`, `__builtin_amdgcn_processor_is`
and
`__builtin_amdgcn_is_invocable`. None of them depends on its arguments'
values.

    [24 lines not shown]
DeltaFile
+21-0clang/test/Sema/uninit-variables.c
+19-0clang/test/Analysis/cfg.cpp
+5-0clang/docs/ReleaseNotes.md
+1-2clang/lib/Analysis/CFG.cpp
+46-24 files

LLVM/project 98cf09e — llvm/lib/Transforms/Vectorize/SandboxVectorizer/Passes LoadStoreVec.cpp, llvm/test/Transforms/SandboxVectorizer/Passes/LoadStoreVec load_store_vec_mixed_type_loads.ll

[SandboxVec][LoadStoreVec] Address review on mixed-type loads

Rename getLanesTypeFor to getSameBitWidthType and document that a wider
scalar spans several lanes. Drop the unused LoadInst cast, explain the
test data layout, and cover a reversed vector/scalar chain plus loads
with multiple uses.

Co-authored-by: Cursor <cursoragent at cursor.com>
DeltaFile
+264-3llvm/test/Transforms/SandboxVectorizer/Passes/LoadStoreVec/load_store_vec_mixed_type_loads.ll
+19-17llvm/lib/Transforms/Vectorize/SandboxVectorizer/Passes/LoadStoreVec.cpp
+283-202 files

LLVM/project 1c61570 — llvm/lib/Target/SystemZ SystemZInstrVector.td SystemZISelLowering.cpp

Changes based on review comments
DeltaFile
+15-0llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
+0-14llvm/lib/Target/SystemZ/SystemZInstrVector.td
+15-142 files

LLVM/project 905ece8 — llvm/lib/Transforms/Vectorize VPlanTransforms.cpp, llvm/test/Transforms/LoopVectorize vplan-based-stride-mv-livein-rewrite-under-guard.ll

Expand rewritten live-ins in the vector preheader
DeltaFile
+15-11llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+8-9llvm/test/Transforms/LoopVectorize/vplan-based-stride-mv-livein-rewrite-under-guard.ll
+23-202 files

OPNSense/core 2b8c230 — src/opnsense/scripts/suricata listAlertLogs.py

IDS: list rotated alert logs in rotation order (#11295)

The alert log selector listed the eve.json files sorted as text, so
with more than ten rotated logs eve.json.10 came before eve.json.2
and the dates were out of order. Sort on the rotation number instead.
DeltaFile
+2-1src/opnsense/scripts/suricata/listAlertLogs.py
+2-11 files

LLVM/project 29336f1 — llvm/lib/Analysis LoopAccessAnalysis.cpp, llvm/test/Analysis/LoopAccessAnalysis invariant-accesses-disjoint.ll

[LAA] Find no dependence between non-overlapping loop-invariant accesses

A loop-invariant access touches the same bytes in every iteration, so
two of them are independent iff they do not overlap. LAA proved that
only by showing one ends before the other begins, e.g. p + 4 <=u p + 8
for a and c below, which fails unless SCEV knows the addresses do not
wrap. Otherwise it reported an unknown dependence and gave up on the
loop, so a loop that updates three or more fields of a struct through a
pointer was not vectorized:

  struct trio { int a, b, c; };
  void acc3(struct trio *p, const int *x, int n) {
    for (int i = 0; i < n; i++) {
      p->a += x[i];
      p->b ^= x[i];
      p->c |= x[i];
    }
  }


    [14 lines not shown]
DeltaFile
+8-48llvm/test/Analysis/LoopAccessAnalysis/invariant-accesses-disjoint.ll
+16-4llvm/lib/Analysis/LoopAccessAnalysis.cpp
+24-522 files

LLVM/project 091b8cb — llvm/test/Analysis/LoopAccessAnalysis invariant-accesses-disjoint.ll

[LAA] Precommit tests for non-overlapping loop-invariant accesses (NFC)

Assisted-by: Claude Code
DeltaFile
+769-0llvm/test/Analysis/LoopAccessAnalysis/invariant-accesses-disjoint.ll
+769-01 files

LLVM/project f5ff484 — llvm/test/Transforms/LoopVectorize vplan-based-stride-mv-livein-rewrite-under-guard.ll

Add a test for the liveins rewrite expansion placement
DeltaFile
+71-0llvm/test/Transforms/LoopVectorize/vplan-based-stride-mv-livein-rewrite-under-guard.ll
+71-01 files

LLVM/project 54f3a4a — flang/test/Transforms loop-idiom-recognize-minmaxloc.fir, llvm/test/CodeGen/AMDGPU memintrinsic-unroll.ll

Merge remote-tracking branch 'origin/main' into HEAD

# Conflicts:
#       llvm/test/Transforms/LoopVectorize/VPlan/vplan-based-stride-mv.ll
DeltaFile
+11-7,561mlir/lib/Dialect/LLVMIR/IR/NVVMDialect.cpp
+2,788-2,771llvm/test/CodeGen/AMDGPU/memintrinsic-unroll.ll
+2,192-0mlir/lib/Dialect/LLVMIR/IR/NVVMMmaOps.cpp
+2,062-0llvm/test/Transforms/SLPVectorizer/X86/sese-region-non-schedulable-cost.ll
+1,986-0flang/test/Transforms/loop-idiom-recognize-minmaxloc.fir
+1,386-0mlir/lib/Dialect/LLVMIR/IR/NVVMConvertOps.cpp
+10,425-10,3322,614 files not shown
+79,108-38,6562,620 files

LLVM/project f667e48 — clang/lib/Headers/hlsl hlsl_debugging.h, clang/test/CodeGenHLSL/builtins IsDebuggingEnabled.hlsl

[HLSL][DirectX] Add IsDebuggingEnabled() (#243638)

Adds support for `bool IsDebuggingEnabled()` to Shader Model 6.10. The
function is defined in `hlsl::dx` namespace that is available only for
the DirectX target.

It uses a new built-in function `__builtin_hlsl_isdebuggingenabled`
which is translated to LLVM intrinsic `llvm.dx.isdebuggingenabled` and
lowered to DXIL operation `dx.op.isDebuggingEnabled`.

Fixes #231326
Fixes  #231276
DeltaFile
+26-0clang/test/SemaHLSL/BuiltIns/IsDebuggingEnabled-availability.hlsl
+25-0llvm/test/CodeGen/DirectX/isdebuggingenabled.ll
+14-0clang/test/CodeGenHLSL/builtins/IsDebuggingEnabled.hlsl
+11-0clang/lib/Headers/hlsl/hlsl_debugging.h
+5-5llvm/test/CodeGen/SPIRV/llvm-intrinsics/debugtrap-nonsemantic-debugbreak.ll
+9-0llvm/lib/Target/DirectX/DXIL.td
+90-54 files not shown
+114-510 files

NetBSD/pkgsrc-wip f763647 — dma Makefile

dma: Note reason for setting version
DeltaFile
+3-0dma/Makefile
+3-01 files

LLVM/project 8fd6a1e — llvm/lib/Target/LoongArch LoongArchMemoryBarrierOpt.cpp LoongArchMergeBaseOffset.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
+254-270llvm/lib/Target/LoongArch/LoongArchExpandPseudoInsts.cpp
+140-136llvm/lib/Target/LoongArch/LoongArchExpandAtomicPseudoInsts.cpp
+164-0llvm/lib/Target/LoongArch/LoongArchCodeGenPassBuilder.cpp
+153-0llvm/test/CodeGen/LoongArch/newpm-pipeline.ll
+62-71llvm/lib/Target/LoongArch/LoongArchMergeBaseOffset.cpp
+59-47llvm/lib/Target/LoongArch/LoongArchMemoryBarrierOpt.cpp
+832-52412 files not shown
+1,078-62018 files

LLVM/project a6d7147 — llvm/lib/Target/LoongArch LoongArch.h LoongArchMergeBaseOffset.cpp, llvm/test/CodeGen/LoongArch newpm-pipeline.ll

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+254-270llvm/lib/Target/LoongArch/LoongArchExpandPseudoInsts.cpp
+140-136llvm/lib/Target/LoongArch/LoongArchExpandAtomicPseudoInsts.cpp
+173-0llvm/lib/Target/LoongArch/LoongArchCodeGenPassBuilder.cpp
+154-0llvm/test/CodeGen/LoongArch/newpm-pipeline.ll
+62-71llvm/lib/Target/LoongArch/LoongArchMergeBaseOffset.cpp
+98-18llvm/lib/Target/LoongArch/LoongArch.h
+881-49513 files not shown
+1,132-64519 files

LLVM/project 2da4e9f — clang/www c_dr_status.html

[Clang][C] Update the C DR Status page (#245339)

This updates based on the current snapshot; the issue list will be
updated again with all the issues that moved from Open to Review state
at the last meeting, but those updates will be handled in a future PR.
DeltaFile
+63-9clang/www/c_dr_status.html
+63-91 files

NetBSD/pkgsrc-wip ad8a9dd — dma Makefile

dma: Explain suid plan
DeltaFile
+9-1dma/Makefile
+9-11 files

LLVM/project f44c6ac — openmp/runtime/src kmp_invoke_microtask.cpp z_Linux_asm.S

[OpenMP] Add __kmp_invoke_microtask assembly for SPARC (#243945)

Add an assembly implementation of __kmp_invoke_microtask for 32-bit
(V8) and 64-bit (V9) SPARC.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+190-0openmp/runtime/src/z_Linux_asm.S
+1-1openmp/runtime/src/kmp_invoke_microtask.cpp
+191-12 files

LLVM/project 01787d3 — compiler-rt/lib/hwasan hwasan_linux.cpp

[hwasan] Don't use the tagging ABI in aliasing mode (#245126)

On x86_64 hosts with LAM, CanUseTaggingAbi() succeeds in aliasing mode
because it only checks the number of LAM tag bits, not their position.
LAM uses bits 57-62 while aliasing mode tags bits 39-41, so
EnableTaggingAbi() then fails and every aliasing-mode test dies with:

  FATAL: HWAddressSanitizer failed to enable tagged address syscall ABI.

Aliasing mode doesn't rely on hardware tagging, so make
CanUseTaggingAbi() return false when HWASAN_ALIASING_MODE is defined.

Root-cause analysis and fix produced with AI (Claude Code).

---------

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
Co-authored-by: Vitaly Buka <vitalybuka at gmail.com>
DeltaFile
+6-2compiler-rt/lib/hwasan/hwasan_linux.cpp
+6-21 files

LLVM/project 64321f0 — llvm/include/llvm/Analysis PHITransAddr.h, llvm/lib/Analysis PHITransAddr.cpp

Revert "[GVN] Match select-dependent load addresses in decomposed form (#231196)"

This reverts commit 389804c296a75e74392569027c02903ba2db38eb.
DeltaFile
+0-306llvm/test/Transforms/GVN/phi-translate-gep-select-load-address.ll
+1-63llvm/lib/Analysis/PHITransAddr.cpp
+0-6llvm/include/llvm/Analysis/PHITransAddr.h
+1-3753 files

FreeNAS/freenas 79fd0f3 — src/middlewared/middlewared/plugins/smb_ util_param.py constants.py, tests/unit test_smb_share.py

NAS-145377 / 27.0.0 / Pass the dataset of an SMB share to zfs_core (by anodos325) (#20286)

zfs_core:share_dataset lets smbd refuse a share whose dataset is not
mounted and keeps dataset auto-creation inside that dataset. It cannot
be set as an auxiliary parameter.

Original PR: https://github.com/truenas/middleware/pull/20284

Co-authored-by: Andrew Walker <andrew.walker at truenas.com>
DeltaFile
+54-0tests/unit/test_smb_share.py
+4-0src/middlewared/middlewared/plugins/smb_/util_smbconf.py
+1-0src/middlewared/middlewared/plugins/smb_/util_param.py
+1-0src/middlewared/middlewared/plugins/smb_/constants.py
+60-04 files

LLVM/project 969ed85 — llvm/lib/Transforms/Vectorize VectorCombine.cpp

fixup! Rename variables and update comments
DeltaFile
+11-12llvm/lib/Transforms/Vectorize/VectorCombine.cpp
+11-121 files

FreeNAS/freenas c72a989 — src/middlewared/middlewared/plugins/smb_ util_param.py constants.py, tests/unit test_smb_share.py

NAS-145377 / 27.1.0 / Pass the dataset of an SMB share to zfs_core (by anodos325) (#20287)

zfs_core:share_dataset lets smbd refuse a share whose dataset is not
mounted and keeps dataset auto-creation inside that dataset. It cannot
be set as an auxiliary parameter.

Original PR: https://github.com/truenas/middleware/pull/20284

Co-authored-by: Andrew Walker <andrew.walker at truenas.com>
DeltaFile
+54-0tests/unit/test_smb_share.py
+4-0src/middlewared/middlewared/plugins/smb_/util_smbconf.py
+1-0src/middlewared/middlewared/plugins/smb_/util_param.py
+1-0src/middlewared/middlewared/plugins/smb_/constants.py
+60-04 files

LLVM/project 19e9e4e — llvm/lib/Target/LoongArch LoongArchMemoryBarrierOpt.cpp LoongArchMergeBaseOffset.cpp, llvm/test/CodeGen/LoongArch newpm-pipeline.ll

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+254-270llvm/lib/Target/LoongArch/LoongArchExpandPseudoInsts.cpp
+140-136llvm/lib/Target/LoongArch/LoongArchExpandAtomicPseudoInsts.cpp
+164-0llvm/lib/Target/LoongArch/LoongArchCodeGenPassBuilder.cpp
+153-0llvm/test/CodeGen/LoongArch/newpm-pipeline.ll
+62-71llvm/lib/Target/LoongArch/LoongArchMergeBaseOffset.cpp
+59-47llvm/lib/Target/LoongArch/LoongArchMemoryBarrierOpt.cpp
+832-52412 files not shown
+1,078-62018 files

LLVM/project b4ae80e — llvm/lib/Target/LoongArch LoongArch.h LoongArchMergeBaseOffset.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
+254-270llvm/lib/Target/LoongArch/LoongArchExpandPseudoInsts.cpp
+140-136llvm/lib/Target/LoongArch/LoongArchExpandAtomicPseudoInsts.cpp
+165-0llvm/lib/Target/LoongArch/LoongArchCodeGenPassBuilder.cpp
+152-0llvm/test/CodeGen/LoongArch/newpm-pipeline.ll
+62-71llvm/lib/Target/LoongArch/LoongArchMergeBaseOffset.cpp
+78-14llvm/lib/Target/LoongArch/LoongArch.h
+851-49111 files not shown
+1,005-56917 files

LLVM/project b3a71ae — llvm/include/llvm/Support ScopedPrinter.h

[llvm][Support] Mark llvm::DictScope and llvm::ListScope classes nodiscard (#231870)

Similar to #231700
I didn't find any uses of these classes that discarded the result.
DeltaFile
+2-2llvm/include/llvm/Support/ScopedPrinter.h
+2-21 files

LLVM/project 0fd5a70 — clang/www c_status.html

[Clang][C2y] Update the C Status Page (#245332)

This adds the papers adopted for C at the recent meeting in Buzios.
DeltaFile
+26-0clang/www/c_status.html
+26-01 files

LLVM/project 6cb33fa — llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Passes LoadStoreVec.h, llvm/lib/Transforms/Vectorize/SandboxVectorizer/Passes LoadStoreVec.cpp

[SandboxVec][LoadStoreVec] Support mixed-type load vectorization

Remove the restriction that every load in a top-level load chain must have the vector's element type. A chain of mixed types such as {i32, float} or {double, i32, i32} is loaded as a vector of integers (as chosen by VecUtils::getCombinedVectorTypeFor()), each original load is unpacked from the lanes it occupies, and then reinterpreted back to its own type with SameSizeReinterpret::reinterpretValue().

Chains involving a non-integral pointer are left alone, since such a pointer cannot be recovered from an integer lane.

SameSizeReinterpret is also used by createConstantVector() to pack constants of mixed types into a constant vector.

Co-authored-by: Cursor <cursoragent at cursor.com>
DeltaFile
+140-0llvm/test/Transforms/SandboxVectorizer/Passes/LoadStoreVec/load_store_vec_mixed_type_loads.ll
+38-10llvm/lib/Transforms/Vectorize/SandboxVectorizer/Passes/LoadStoreVec.cpp
+11-1llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Passes/LoadStoreVec.h
+189-113 files

LLVM/project 5e181d2 — llvm/lib/Transforms/Vectorize/SandboxVectorizer/Passes LoadStoreVec.cpp, llvm/test/Transforms/SandboxVectorizer/Passes/LoadStoreVec load_store_vec_mixed_type_loads.ll

[SandboxVec][LoadStoreVec] Address review on mixed-type loads

Rename getLanesTypeFor to getSameBitWidthType and document that a wider
scalar spans several lanes. Drop the unused LoadInst cast, explain the
test data layout, and cover a reversed vector/scalar chain plus loads
with multiple uses.

Co-authored-by: Cursor <cursoragent at cursor.com>
DeltaFile
+264-3llvm/test/Transforms/SandboxVectorizer/Passes/LoadStoreVec/load_store_vec_mixed_type_loads.ll
+18-17llvm/lib/Transforms/Vectorize/SandboxVectorizer/Passes/LoadStoreVec.cpp
+282-202 files

LLVM/project 3cc482f — llvm/include/llvm/ADT GenericUniformityImpl.h, llvm/test/Analysis/UniformityAnalysis/AMDGPU divergent-exit-into-sibling-cycle.ll

[UniformityAnalysis] Fix missed temporal divergence when a cycle exits into another cycle (#243181)

In the current implementation of `propagateCycleExitDivergence`, the
outer-most cycle (from which temporal divergence is propagated) is found
by starting from the inner cycle, walking up its parent while the depth
of the cycle is greater than that of the exit block’s cycle.

This is only correct when every cycle (if any) that contains the exit
block also contains the branch. When the exit block is in a separate
loop, this is not correct, and can lead to mislabeling divergent
instructions as uniform - see the following example (corresponding IR in
the lit-test):

```c
void exit_into_next_loop(int n, bool c) {
  int tid = workitem_id_x();
  int o, i;

  for (o = 0;; o++) {            // outer (the actual outer-most cycle)

    [19 lines not shown]
DeltaFile
+106-0llvm/test/Analysis/UniformityAnalysis/AMDGPU/divergent-exit-into-sibling-cycle.ll
+43-0llvm/test/Analysis/UniformityAnalysis/AMDGPU/MIR/divergent-exit-into-sibling-cycle.mir
+1-4llvm/include/llvm/ADT/GenericUniformityImpl.h
+150-43 files

LLVM/project 080b746 — llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Passes LoadStoreVec.h, llvm/lib/Transforms/Vectorize/SandboxVectorizer/Passes LoadStoreVec.cpp

[SandboxVec][LoadStoreVec] Support mixed-type load vectorization

Remove the restriction that every load in a top-level load chain must have the vector's element type. A chain of mixed types such as {i32, float} or {double, i32, i32} is loaded as a vector of integers (as chosen by VecUtils::getCombinedVectorTypeFor()), each original load is unpacked from the lanes it occupies, and then reinterpreted back to its own type with SameSizeReinterpret::reinterpretValue().

Chains involving a non-integral pointer are left alone, since such a pointer cannot be recovered from an integer lane.

SameSizeReinterpret is also used by createConstantVector() to pack constants of mixed types into a constant vector.

Co-authored-by: Cursor <cursoragent at cursor.com>
DeltaFile
+140-0llvm/test/Transforms/SandboxVectorizer/Passes/LoadStoreVec/load_store_vec_mixed_type_loads.ll
+38-10llvm/lib/Transforms/Vectorize/SandboxVectorizer/Passes/LoadStoreVec.cpp
+11-1llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Passes/LoadStoreVec.h
+189-113 files