LLVM/project 53b6f95 — llvm/lib/Target/AMDGPU AMDGPULegalizerInfo.cpp, llvm/test/CodeGen/AMDGPU lds-relocs.ll

[AMDGPU][GlobalISel] Don't give GDS globals a relocation (#247363)

Stops GlobalISel from giving GDS globals the relocation that's meant
only for LDS globals and thus avoid a GlobalISel crash for external GDS
globals.
DeltaFile
+11-0llvm/test/CodeGen/AMDGPU/lds-relocs.ll
+11-0llvm/test/CodeGen/AMDGPU/GlobalISel/lds-relocs.ll
+1-1llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
+23-13 files

LLVM/project 07262c6 — clang/lib/Driver ToolChain.cpp, clang/lib/Driver/ToolChains Gnu.cpp

[clang][RISCV] Diagnose an invalid -march when selecting a multilib (#247480)

A link-only command with an -march that cannot be parsed gets no error
and silently uses the default multilib. The multilib code ignores the
parse error, which is only reported for compile jobs.

Report the same error in both RISC-V multilib paths, like ARM and
AArch64 do.

Assisted-by: Claude
DeltaFile
+7-2clang/lib/Driver/ToolChains/Gnu.cpp
+8-0clang/test/Driver/riscv-toolchain-gcc-multilib-reuse.c
+6-1clang/lib/Driver/ToolChain.cpp
+3-0clang/test/Driver/print-multi-selection-flags.c
+24-34 files

LLVM/project fefd383 — llvm/test/CodeGen/RISCV/rvv vpmerge-sdnode.ll

Remove type overload
DeltaFile
+3-3llvm/test/CodeGen/RISCV/rvv/vpmerge-sdnode.ll
+3-31 files

LLVM/project 6524ffa — llvm/test/CodeGen/RISCV/rvv vpmerge-sdnode.ll

Remove extraneous comment
DeltaFile
+0-3llvm/test/CodeGen/RISCV/rvv/vpmerge-sdnode.ll
+0-31 files

LLVM/project 3a06a05 — llvm/lib/Transforms/Vectorize VPlanTransforms.cpp

Address comment
DeltaFile
+2-0llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+2-01 files

LLVM/project 494df31 — llvm/test/tools/llvm-mca/X86/AlderlakeP resources-avxneconvert.s, llvm/test/tools/llvm-mca/X86/Generic resources-avxneconvert.s

[llvm-mca][x86] Add missing AVX-NE-CONVERT instruction tests (#246691)

Adds missing xmm and ymm instruction tests for the AVX-NE-CONVERT ISA
extension to the Machine Code Analyzer.
Generates baseline (generic) and Alder Lake scheduling models.

Fixes #246300
DeltaFile
+90-0llvm/test/tools/llvm-mca/X86/AlderlakeP/resources-avxneconvert.s
+85-0llvm/test/tools/llvm-mca/X86/Generic/resources-avxneconvert.s
+175-02 files

FreeBSD/ports 5c376a6 — devel/glab Makefile distinfo

devel/glab: update to 1.134.0

Changes:        https://gitlab.com/gitlab-org/cli/-/releases
DeltaFile
+5-5devel/glab/distinfo
+2-2devel/glab/Makefile
+7-72 files

LLVM/project a278da5 — llvm/lib/Target/SPIRV SPIRVGlobalRegistry.cpp, llvm/test/CodeGen/SPIRV/GlobalISel mir-roundtrip-type-keys.ll postlegalizer-mir.mir

[SPIR-V] Restore type keys from MIR (#245999)

Without them, passes run on parsed MIR declare duplicate types or assert
in getTypeForSPIRVType
DeltaFile
+246-1llvm/lib/Target/SPIRV/SPIRVGlobalRegistry.cpp
+87-0llvm/test/CodeGen/SPIRV/GlobalISel/postlegalizer-mir.mir
+82-0llvm/test/CodeGen/SPIRV/GlobalISel/mir-roundtrip-type-keys.ll
+415-13 files

LLVM/project 5b4b4f5 — llvm/lib/Analysis ValueTracking.cpp, llvm/test/Transforms/InstCombine freeze.ll

Revert "[Analysis] Improve isGuaranteedNotToBeUndefOrPoison for global variables" (#247651)

This caused assertion failures:

llvm/lib/IR/DataLayout.cpp:50:
llvm::StructLayout::StructLayout(StructType *, const DataLayout &):
Assertion `!ST->isOpaque() && "Cannot get layout of opaque structs"'
failed.

See comment on the original PR for reproducer.

Reverts llvm/llvm-project#247136
DeltaFile
+0-71llvm/test/Transforms/InstCombine/freeze.ll
+0-48llvm/test/Transforms/LoopVectorize/AArch64/speculate_load_global.ll
+0-18llvm/lib/Analysis/ValueTracking.cpp
+0-1373 files

LLVM/project 253c698 — llvm/lib/Target/X86 X86ISelLowering.cpp, llvm/test/CodeGen/X86 vector-fshr-rot-512.ll vector-fshr-rot-128.ll

[X86] LowerFunnelShift - apply modulo mask to the vXi16 amount splat source directly (#247649)

vXi16 lowering was being handled by the TLI expansion, but it was
suffering from the same issue as #247146 - we should prefer
SPLAT(AND(AMT,BW-1)) to AND(SPLAT(AMT),BW-1)) - we're unwrapping the
SPLAT anyhow, and getTargetVShiftNode does a good job of merging the AND
with inner elements.

This patch replicates the TargetLowering::expandFunnelShift, and adjusts
the splat modulo ordering - the FSHR codegen was re-ordered as I altered
the order of node creation to reduce code duplication.

Avoids a use case for the AND(X,0) SimplifyDemandedVectorElts fold that
is causing so many POISON issues.
DeltaFile
+54-52llvm/test/CodeGen/X86/vector-fshr-256.ll
+42-42llvm/test/CodeGen/X86/vector-fshr-128.ll
+35-34llvm/test/CodeGen/X86/vector-fshr-rot-256.ll
+30-30llvm/test/CodeGen/X86/vector-fshr-rot-128.ll
+22-5llvm/lib/Target/X86/X86ISelLowering.cpp
+12-14llvm/test/CodeGen/X86/vector-fshr-rot-512.ll
+195-1777 files not shown
+223-22713 files

LLVM/project 37b9faa — .github new-issues-labeler.yml

Label issues generated by fuzzer (#245863)
DeltaFile
+3-0.github/new-issues-labeler.yml
+3-01 files

FreeNAS/freenas c6fd126 — src/middlewared/middlewared/api/v27_1_0 truesearch.py, src/middlewared/middlewared/api/v28_0_0 truesearch.py

Add the truesearch.status event

This commit adds a subscribable event so that the UI can get status
updates as truesearchd does indexing passes on datasets. Middlewared
uses the python client library provided by the truesearchd package and
creates a single process-wide subscription for indexing / truesearch
events and then forwards them along to any subscribers.
DeltaFile
+120-14src/middlewared/middlewared/plugins/truesearch.py
+45-1src/middlewared/middlewared/api/v28_0_0/truesearch.py
+45-1src/middlewared/middlewared/api/v27_1_0/truesearch.py
+43-1tests/api2/test_truesearch.py
+15-0tests/api2/test_truesearch_roles.py
+2-1tests/unit/test_truesearch.py
+270-186 files

LLVM/project 3ce119a — llvm/lib/Target/RISCV RISCVISelLowering.cpp, llvm/test/CodeGen/RISCV/rvv vpmerge-sdnode.ll

[RISCV] Fold vmerge_vl m0, (vselect m1, t, f), f -> vmerge_vl (m0 && m1), t, f

Removing the inner vselect allows the vmerge_vl to be folded into the true operand by RISCVVectorPeephole.

We emit this pattern of vmerge_vl + vselect in vectorized reductions like this:

```c
for (int i = 0; i < n; i++)
  if (a[i] == x && b[i] != y)
    cnt++;
```

Extending this to `vmerge_vl m0, (vmerge_vl m1 ...)` doesn't catch any more cases in practice.

Assisted-by: Opus 5.5
DeltaFile
+35-4llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+12-25llvm/test/CodeGen/RISCV/rvv/vpmerge-sdnode.ll
+47-292 files

LLVM/project da4a7bf — llvm/lib/Target/AMDGPU AMDGPUCoExecInfo.h AMDGPUTargetMachine.cpp, llvm/test/CodeGen/AMDGPU coexec-mfma-interleave-gfx942.mir coexec-mfma-interleave-gfx950.mir

[AMDGPU] Add MFMA co-exec rows for gfx942 MFMAs (#245294)

Add MFMA co-exec rows for gfx942 MFMAs for both gfx942 and gfx950.
Gfx950 support gfx942 mfma opcodes as well as others.

Add rows for:

XDL_2Pass:
  v_mfma_f32_4x4x4_16b_{f16,bf16}
  v_mfma_i32_4x4x4_16b_i8

XDL_4Pass:
  v_mfma_f32_16x16x16_{f16,bf16}
  v_mfma_i32_16x16x32_i8
  v_mfma_f32_16x16x8_xf32 (gfx942 only)
  v_mfma_f32_16x16x32_{bf8,fp8}_{bf8,fp8}

XDL_8Pass:
  v_mfma_f32_16x16x4_4b_{f16,bf16}

    [42 lines not shown]
DeltaFile
+64-0llvm/test/CodeGen/AMDGPU/coexec-mfma-interleave-gfx950.mir
+48-13llvm/lib/Target/AMDGPU/AMDGPUCoExecSchedStrategy.cpp
+49-0llvm/test/CodeGen/AMDGPU/coexec-mfma-interleave-gfx942.mir
+15-2llvm/unittests/Target/AMDGPU/MFMACoExecRules.cpp
+6-5llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
+3-3llvm/lib/Target/AMDGPU/AMDGPUCoExecInfo.h
+185-232 files not shown
+188-248 files

LLVM/project 60d0e05 — llvm/lib/Target/X86 X86ISelLowering.cpp, llvm/test/CodeGen/X86 avx512-trunc.ll

[X86] Add VMTRUNC/VMTRUNCS/VMTRUNCUS upper elements handling

computeKnownBitsForTargetNode - the masked truncations zero the
elements above the truncated ones, like VTRUNC/VTRUNCS/VTRUNCUS.

isGuaranteedNotToBeUndefOrPoisonForTargetNode - these upper elements
are never undef/poison. #245048 adds the same handling for VTRUNC.

Assisted-by: Claude Code (Claude Opus 5.5)
DeltaFile
+18-52llvm/test/CodeGen/X86/avx512-trunc.ll
+13-0llvm/lib/Target/X86/X86ISelLowering.cpp
+31-522 files

LLVM/project 2ef4218 — llvm/test/CodeGen/X86 avx512-trunc.ll

[X86] Add tests for the upper elements of masked truncations (NFC)

Assisted-by: Claude Code (Claude Opus 5.5)
DeltaFile
+159-0llvm/test/CodeGen/X86/avx512-trunc.ll
+159-01 files

LLVM/project cda93c6 — clang/lib/CIR/Dialect/IR CIRDialect.cpp, clang/test/CIR/CodeGen vector-int128-fold.cpp

[CIR] Handle integers wider than 64 bits in the vector constant folders

`cir::IntAttr::getUInt()` and `getSInt()` assert when the value needs
more than 64 bits. The folders of `cir.vec.cmp`, `cir.vec.ternary` and
`cir.vec.shuffle.dynamic` read constant elements through them, so they
asserted on a vector of `__int128` with such an element. C++ reaches
all three at -O0. The verifier of `cir.vec.shuffle` read its indices the
same way and asserted while parsing an index wider than 64 bits.

They now work on the `APInt` values:

- `cir.vec.cmp` compares the elements at their full width.
- `cir.vec.ternary` tests whether the condition element is zero.
- `cir.vec.shuffle.dynamic` masks the index before narrowing it.
- The `cir.vec.shuffle` verifier recognizes the -1 index by all of its
  bits being set and range-checks the other indices without narrowing
  them.

Folds of integers up to 64 bits are unchanged.

    [2 lines not shown]
DeltaFile
+129-0clang/test/CIR/Transforms/vector-cmp-fold.cir
+38-64clang/lib/CIR/Dialect/IR/CIRDialect.cpp
+51-0clang/test/CIR/CodeGen/vector-int128-fold.cpp
+49-0clang/test/CIR/IR/invalid-vector.cir
+21-0clang/test/CIR/Transforms/vector-shuffle-fold.cir
+15-0clang/test/CIR/Transforms/vector-ternary-fold.cir
+303-643 files not shown
+327-689 files

LLVM/project 1197cb7 — clang/include/clang/CIR/Dialect/IR CIROps.td, clang/lib/CIR/Dialect/IR CIRDialect.cpp

[CIR] Fix crashes in the vector constant folders

A constant vector can hold elements that are not integer or
floating-point literals, such as undef and poison. Folding a
`cir.vec.shuffle` with a -1 index produces one. The folders of
`cir.vec.cmp`, `cir.vec.fcmp`, `cir.vec.ternary` and
`cir.vec.shuffle.dynamic` cast every element they evaluate to a literal
and asserted on such a vector. They now leave the operation alone. This
also covers a `cir.vec.ternary` whose condition is a constant vector of
bool, which is still not folded.

Two more assertions in the same folders are fixed the same way:

- The `true` and `false` shortcut of `cir.vec.fcmp` built a constant
  from the fixed size of the result type and asserted on a scalable
  vector.
- `cir.vec.shuffle.dynamic` indexed past the end of a vector whose
  element count is not a power of two.


    [14 lines not shown]
DeltaFile
+140-0clang/test/CIR/Transforms/vector-cmp-fold.cir
+82-0clang/test/CIR/IR/invalid-vector.cir
+53-12clang/lib/CIR/Dialect/IR/CIRDialect.cpp
+36-13clang/include/clang/CIR/Dialect/IR/CIROps.td
+30-0clang/test/CIR/CodeGen/vector-cmp-unsigned-char.cpp
+26-0clang/test/CIR/Transforms/vector-ternary-fold.cir
+367-251 files not shown
+392-257 files

FreeBSD/src c858f92 — sys/powerpc/powerpc exec_machdep.c

powerpc: zero the FPU save area in set_fpregs() when it was not valid

set_fpregs() marks the saved FPU registers valid and fills in the FP
registers and the FPSCR, which are only half of each of VSR0-31. The
other halves are left alone, and on a thread that hasn't used the FPU
since exec they still hold whatever the previous program left there:
exec only resets pcb_flags, and enable_fpu() zeroes the save area only
when PCB_FPREGS is clear.

So a PT_SETFPREGS on such a thread, even one that just writes back what
PT_GETFPREGS returned, hands the new program VSX register contents of
the program that ran before the exec.

Zero the save area first when it wasn't valid, like enable_fpu() does.

Reviewed by:    jhibbits
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D62037
DeltaFile
+4-1sys/powerpc/powerpc/exec_machdep.c
+4-11 files

NetBSD/pkgsrc sjAjlQz — net/nats-server distinfo

   nats-server: update distinfo
VersionDeltaFile
1.5+1-70net/nats-server/distinfo
+1-701 files

LLVM/project c1df1a2 — llvm/lib/Transforms/Vectorize VPlanAnalysis.cpp VPlanTransforms.cpp

[VPlan] Return nullopt for irregular types in getConstantStride (NFC). (#247643)

Instead of asserting that the access type is not irregular, return
std::nullopt from vputils::getConstantStride. Callers no longer need to
guard the call with hasIrregularType themselves.
DeltaFile
+2-2llvm/lib/Transforms/Vectorize/VPlanUtils.cpp
+0-3llvm/lib/Transforms/Vectorize/VPlanAnalysis.cpp
+1-2llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+2-1llvm/lib/Transforms/Vectorize/VPlanUtils.h
+5-84 files

LLVM/project 484ddd6 — llvm/lib/Target/AArch64 AArch64TargetTransformInfo.cpp

Simplify Scale check
DeltaFile
+1-1llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
+1-11 files

LLVM/project 3628ece — llvm/include/llvm/IR IntrinsicsAArch64.td

[AArch64] Tighten type contraints
DeltaFile
+27-22llvm/include/llvm/IR/IntrinsicsAArch64.td
+27-221 files

LLVM/project 7456b3e — clang/test/CodeGen/AArch64/fpv2-intrinsics acle_fpv2_sv_min_max_reduce.c, clang/test/Sema aarch64-fpv2-sve2p3-svmax-svmin.c

[AArch64] Implement FEAT_FPv2 minimum/maximum vector reduce intrinsics

ACLE: https://github.com/ARM-software/acle/pull/480

Implements the following intrinsics:

    svmaxmgv / svminmgv
    svmaxinmv / svmininmv
    svmaxmginmv / svminmginmv

Includes f16, f32, and f64 type variants
DeltaFile
+318-0clang/test/CodeGen/AArch64/fpv2-intrinsics/acle_fpv2_sv_min_max_reduce.c
+148-0llvm/test/CodeGen/AArch64/fpv2-intrinsics-min-max-reduce.ll
+108-0clang/test/Sema/AArch64/arm_sve_feature_dependent_sve_AND_LP_sve2p3_OR_sme2p3_RP_AND_fpv2___sme_AND_LP_sve2p3_OR_sme2p3_RP_AND_fpv2.c
+62-0clang/test/Sema/aarch64-fpv2-sve2p3-svmax-svmin.c
+29-23llvm/lib/Target/AArch64/AArch64SVEInstrInfo.td
+9-6llvm/lib/Target/AArch64/SVEInstrFormats.td
+674-293 files not shown
+705-319 files

LLVM/project 613e3cd — clang/test/Sema/AArch64 arm_sve_feature_dependent_sve_AND_LP_sve2p3_OR_sme2p3_RP_AND_fpv2___sme_AND_LP_sve2p3_OR_sme2p3_RP_AND_fpv2.c, llvm/test/CodeGen/AArch64 fpv2-sve2p3-intrinsics-fminmg.ll fpv2-sve2p3-intrinsics-fmaxmginm.ll

[AArch64] Implement ACLE intrinsics for FPv2 SVE min/max instructions

ACLE PR: https://github.com/ARM-software/acle/pull/480

Implements the following intrinsics:

- svmaxmg / svminmg
- svmaxinm / svmininm
- svmaxmginm / svminmginm

Includes f16, f32, and f64 types, _m, _z, and _x predication and _n variants

AI assistance: Codex used for generating test cases
DeltaFile
+691-0clang/test/Sema/AArch64/arm_sve_feature_dependent_sve_AND_LP_sve2p3_OR_sme2p3_RP_AND_fpv2___sme_AND_LP_sve2p3_OR_sme2p3_RP_AND_fpv2.c
+382-0llvm/test/CodeGen/AArch64/fpv2-sve2p3-intrinsics-fminmg.ll
+382-0llvm/test/CodeGen/AArch64/fpv2-sve2p3-intrinsics-fmaxmginm.ll
+382-0llvm/test/CodeGen/AArch64/fpv2-sve2p3-intrinsics-fmininm.ll
+382-0llvm/test/CodeGen/AArch64/fpv2-sve2p3-intrinsics-fmaxmg.ll
+382-0llvm/test/CodeGen/AArch64/fpv2-sve2p3-intrinsics-fminmginm.ll
+2,601-012 files not shown
+5,601-718 files

LLVM/project ce91d0d — llvm/test/CodeGen/RISCV/rvv vpmerge-sdnode.ll

Precommit tests
DeltaFile
+59-0llvm/test/CodeGen/RISCV/rvv/vpmerge-sdnode.ll
+59-01 files

LLVM/project 45058f6 — mlir/include/mlir/Dialect/X86 Transforms.h, mlir/include/mlir/Dialect/X86/TransformOps X86TransformOps.td

[mlir][x86] Lower F16 `contract` to FMA using AVX2 F16 packed ops and BF16 fallback. (#245914)

Extend the `VectorContractBF16ToFMA.cpp` pass to: 

1. lower `F16` type `vector.contract` to `vector.fma` using `AVX2` F16
packed operations:
- `vbcstnesh2ps` - Broadcasts F16 into packed F32,
- `vcvtneeph2ps` - Convert packed F16 even-indexed elements into packed
F32,
- `vcvtneoph2ps ` - Convert packed F16 odd-indexed elements into packed
F32.

2. fallback case for `bf16` type (both avx2 and avx512).
DeltaFile
+1,922-0mlir/test/Dialect/X86/vector-contract-16bit-fp-to-fma.mlir
+0-1,425mlir/test/Dialect/X86/vector-contract-bf16-to-fma.mlir
+614-0mlir/lib/Dialect/X86/Transforms/VectorContract16BitFPToFMA.cpp
+0-514mlir/lib/Dialect/X86/Transforms/VectorContractBF16ToFMA.cpp
+10-5mlir/include/mlir/Dialect/X86/TransformOps/X86TransformOps.td
+5-3mlir/include/mlir/Dialect/X86/Transforms.h
+2,551-1,9474 files not shown
+2,558-1,95410 files

LLVM/project 430c07d — llvm/lib/Transforms/Vectorize VPlanUtils.h VPlanRecipes.cpp

[VPlan] Use vputils::getLoadStoreValueType in more places (NFC). (#247639)

Replace manual computations of the loaded/stored type from operands or
the underlying IR instruction with vputils::getLoadStoreValueType. Make
the helper take a const pointer, so it can be used from const methods.
DeltaFile
+3-4llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+2-2llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+1-1llvm/lib/Transforms/Vectorize/VPlanUtils.h
+1-1llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
+7-84 files

LLVM/project 1a2a629 — clang/test/CodeGenCXX gh56652.cpp undeduced-variable-template.cpp

[Clang] Add regression test for #161196 (#247438)

Add a regression test for #161196 (an undeduced variable template type
used in decltype)

The test file is renamed to undeduced-variable-template.cpp since it now
contains tests for three different issues.

Fixes #161196
DeltaFile
+59-0clang/test/CodeGenCXX/undeduced-variable-template.cpp
+0-42clang/test/CodeGenCXX/gh56652.cpp
+59-422 files

LLVM/project 9a1e7c9 — clang/include/clang/Driver Action.h, clang/lib/Driver Action.cpp Driver.cpp

[clang][Driver] Add the OpenACC offloading kind

Add the OpenACC offloading kind to the flang driver. -fopenacc with
--offload-targets= or --offload-arch= creates the offloading toolchain. OpenACC
will have no device compilation job. There is a single host compilation job,
which will also generate and embed the device image. The link then goes through
the offloading linker wrapper as usual. Initially, OpenACC will support only a
single offloading architecture, thus, an error is emitted if more are given.

Assisted-by: Claude Sonnet 5.5
DeltaFile
+58-0flang/test/Driver/acc-driver-offload.f90
+16-3clang/lib/Driver/Driver.cpp
+6-4clang/lib/Driver/ToolChains/Clang.cpp
+8-1clang/lib/Driver/Action.cpp
+4-2clang/lib/Driver/ToolChains/Cuda.cpp
+2-1clang/include/clang/Driver/Action.h
+94-111 files not shown
+96-117 files