LLVM/project a02af9f — llvm/test/CodeGen/AMDGPU load-global-i8.ll memintrinsic-unroll.ll, llvm/test/CodeGen/RISCV nontemporal.ll wide-scalar-shift-by-byte-multiple-legalization.ll

[MISched] Enable store sequencing by default (#235948)

Enables the store-sequencing DAG construction algorithm by default on
all targets and updates tests accordingly. The following is a list of
tests which I updated by hand, alongside the resolution I made in each
case:
- `AArch64/aarch64-stp-cluster.ll`, added an extra `store` to act as
sequencing store;
- `AArch64/arm64-misched-memdep-bug.ll`, updated `CHECK` lines;
- `AArch64/dag-maps-huge-region.ll`, disabled store-sequencing (this
test will be dropped);
- `AArch64/misched-bundle.mir`, updated `CHECK` lines;
- `AArch64/tailcall_misched_graph.ll`, updated `CHECK` lines;
- `AMDGPU/ds-combine-with-dependence.ll`, swapped reordered `CHECK`
lines;
- `AMDGPU/schedule-relaxed-occupancy.ll`, updated `CHECK` lines;
- `AMDGPU/swp-amdgpu-pipeline-loop-carried-mem.mir`, disabled store
sequencing (the test is correct with store sequencing enabled, but a
loop carried edge is subsumed by a new intra-iteration barrier edge, so

    [16 lines not shown]
DeltaFile
+4,445-4,498llvm/test/CodeGen/AMDGPU/memintrinsic-unroll.ll
+3,141-3,182llvm/test/CodeGen/RISCV/clmul.ll
+1,775-1,779llvm/test/CodeGen/RISCV/wide-scalar-shift-by-byte-multiple-legalization.ll
+1,560-1,560llvm/test/CodeGen/RISCV/nontemporal.ll
+906-920llvm/test/CodeGen/X86/vector-interleaved-load-i64-stride-8.ll
+879-878llvm/test/CodeGen/AMDGPU/load-global-i8.ll
+12,706-12,817529 files not shown
+32,796-32,884535 files

LLVM/project 655a439 — llvm/lib/Transforms/Utils RelLookupTableConverter.cpp, llvm/test/Transforms/RelLookupTableConverter/X86 relative_lookup_table.ll

[RelLookupTableConverter] Add support for phi/select uses (#245614)

This adds support for converting lookup tables that are used through phi
or select nodes, which can for example be introduced though SimplifyCFG
common code sinking.

The use walk now looks through phi and select instructions. For these it
requires that all phi/select operands can be converted to relative
tables, and converts all of them at once.

To support this, the replacement logic now rewrites the uses while still
referring to the original table, and then replaces the tables with RAUW.
This avoids the need to track or recreate the phi/select nodes.

There's still a small limitation here in that the "all operands must be
convertible" check effectively precludes nested phis/selects, as it's
not recursive.

clang size-data drops by 1.73%.

Fixes https://github.com/llvm/llvm-project/issues/243901.
DeltaFile
+111-80llvm/lib/Transforms/Utils/RelLookupTableConverter.cpp
+156-0llvm/test/Transforms/RelLookupTableConverter/X86/relative_lookup_table.ll
+267-802 files

LLVM/project 3112539 — mlir/include/mlir/Dialect/Affine/IR AffineOps.td, mlir/lib/Dialect/Affine/IR MemorySlot.cpp

[mlir][affine] Implement PromotableRegionOpInterface for AffineIfOp (#225388)

Follow-up to #221123 to use the structured mem2reg pass on affine if
operations.
DeltaFile
+45-0mlir/lib/Dialect/Affine/IR/MemorySlot.cpp
+38-0mlir/test/Transforms/Mem2Reg/affine.mlir
+2-1mlir/include/mlir/Dialect/Affine/IR/AffineOps.td
+85-13 files

LLVM/project bf2e146 — llvm/lib/Transforms/IPO Inliner.cpp, llvm/test/Transforms/Inline eager-delete-trivial-comdat.ll

[Inliner] Remove unused functions with trivial comdat eagerly (#245935)

Inlining was dropping functions that become unused as a result of
inlining eagerly, as this impacts the single-call bonus. However, this
is not done for functions in comdats, as this requires all functions in
the comdat to be dead.

This adds a special case for trivial comdats, where the function is the
only member. This has become more relevant after the introduction of
module-local hints in https://github.com/llvm/llvm-project/pull/228074,
as linkonce_odr functions (which will typically have a comdat) can now
be subject to the single-call bonus.

This gives a 1.2% compile-time improvement on tramp3d-v4. This is
because we end up inlining a call earlier and do less redundant
simplification. In other cases, it could probably also regress
compile-time by enabling more inlining overall.
DeltaFile
+103-0llvm/test/Transforms/Inline/eager-delete-trivial-comdat.ll
+3-2llvm/lib/Transforms/IPO/Inliner.cpp
+106-22 files

LLVM/project 5827854 — clang/lib/Headers vecintrin.h

[SystemZ] Fix aliasing bug with vec_scatter/gather_element (#245724)

The implementation of vec_scatter_element and vec_gather_element in
vecintrin.h could in some cases violate aliasing rules.

Fix by using __builtin_memcpy rather than pointer cast.

Fixes: https://github.com/llvm/llvm-project/issues/244085
DeltaFile
+56-32clang/lib/Headers/vecintrin.h
+56-321 files

LLVM/project e023553 — clang/lib/CodeGen CGExprScalar.cpp, clang/test/CodeGen enum-bool.c

[clang] Allow fixed-point to bool enumeration conversions (#245853)

Fixes #245850.

Since #244494, `Type::getScalarTypeKind()` returns `STK_Bool` for an
enumeration
with a fixed bool underlying type, so converting a fixed-point value to
such an
enumeration selects `CK_FixedPointToBoolean`. `VisitCastExpr()` still
asserts
that the destination of that cast kind is `bool`, which crashes an
assertions
build:

```c
    enum E : bool { F, T };
    enum E to_enum(_Accum x) { return (enum E)x; }   /* clang -std=c23 -ffixed-point */
```


    [4 lines not shown]
DeltaFile
+5-0clang/test/CodeGen/enum-bool.c
+2-1clang/lib/CodeGen/CGExprScalar.cpp
+7-12 files

LLVM/project 3b75c3b — llvm/lib/Target/AArch64 AArch64SVEInstrInfo.td, llvm/test/CodeGen/AArch64 sve-vector-deinterleave-extend.ll

AArch64: Fold SVE deinterleaving zero extensions into transposes (#241199)

Transform deinterleave-and-zero-extend patterns into TRN1/2 operations
using a zero vector, and add code-gen tests.

[AI disclosure] I used AI to explore and understand the codebase,
understand the problem scope, find existing relevant functions and
examples, but the implementation is written entirely by myself.
DeltaFile
+97-0llvm/test/CodeGen/AArch64/sve-vector-deinterleave-extend.ll
+29-0llvm/lib/Target/AArch64/AArch64SVEInstrInfo.td
+126-02 files

LLVM/project 7ea8afa — llvm/lib/Transforms/Scalar LoopSink.cpp LICM.cpp, llvm/test/Transforms/LICM call-hoisting.ll loopsink.ll

[LICM] Use EarliestEscapeAnalysis when checking for in-loop clobbers (#236520)

LICM's clobber check treated an object captured anywhere in the function
as possibly aliased by pointers loaded or returned in the loop. With
EarliestEscapeAnalysis only captures before the pointer is obtained
count.
Objects captured only after the loop or on an unwind path no longer
block hoisting.

EarliestEscapeAnalysis is already used by MemDep, MemCpyOpt and DSE.
DeltaFile
+533-0llvm/test/Transforms/LICM/hoist-load-captured-after-loop.ll
+103-0llvm/test/Transforms/LICM/promote-capture.ll
+43-0llvm/test/Transforms/LICM/loopsink.ll
+39-0llvm/test/Transforms/LICM/call-hoisting.ll
+22-10llvm/lib/Transforms/Scalar/LICM.cpp
+4-1llvm/lib/Transforms/Scalar/LoopSink.cpp
+744-111 files not shown
+746-117 files

LLVM/project 045db97 — llvm/test/CodeGen/AArch64 vector-deinterleave-load.ll sve-interleave-store-combine.ll

[AArch64][NFC] Add [de]interleave6 tests (#245247)

interleave6 and deinterleave6 already have support for custom lowering
using st3/ld3 and uzp/zip, but was missing test coverage for a sequence
where values are interleaved and stored, or loaded and deinterleaved.

Assisted-by: Codex
DeltaFile
+87-0llvm/test/CodeGen/AArch64/sve-deinterleave-load-combine.ll
+57-0llvm/test/CodeGen/AArch64/vector-interleave-store.ll
+48-0llvm/test/CodeGen/AArch64/sve-interleave-store-combine.ll
+36-0llvm/test/CodeGen/AArch64/vector-deinterleave-load.ll
+228-04 files

LLVM/project 9f47138 — mlir/lib/Dialect/Linalg/Transforms Vectorization.cpp, mlir/test/Dialect/Linalg/vectorization pad-with-patterns.mlir insert-slice-with-patterns.mlir

[mlir][linalg] Don't use `in_bounds` in `vectorizeAsInsertSliceOp` (#245042)

Updates  `vectorizeAsInsertSliceOp` (Linalg vectorization) so that masks are
used instead of the `in_bounds` attribute when generating
`vector.transfer_read`  and `vector.transfer_write` Ops.

One test in `mlir/test/Dialect/Vector/transform-vector.mlir` is removed. While
the change in the generated IR is insignificant (due to the appearance of
masks), it's an example of mixing many transformations in one test, i.e. going
against our testing guidelines (https://mlir.llvm.org/getting_started/TestingGuide/):

> Tests should be minimal, and only check what is absolutely necessary.

In addition, it's a relatively old test that predates many other more focused
tests (in e.g. mlir/Dialect/Vector or mlir/Dialect/Linalg) - I doubt this
erasure affects test coverage. Finally, it tests the lowering (tiling,
vectorization, bufferization, etc.) of a `linalg.matmul` operation. Such tests
do not belong under `mlir/test/Dialect/Vector`.

Part of https://github.com/llvm/llvm-project/issues/227821
DeltaFile
+0-69mlir/test/Dialect/Vector/transform-vector.mlir
+52-4mlir/test/Dialect/Linalg/vectorization/insert-slice.mlir
+12-1mlir/test/Dialect/Linalg/vectorization/insert-slice-with-patterns.mlir
+6-2mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
+5-2mlir/test/Dialect/Linalg/vectorization/pad-with-patterns.mlir
+75-785 files

LLVM/project d8e6fa2 — llvm/include/llvm/Transforms/Utils Evaluator.h, llvm/lib/Transforms/IPO GlobalOpt.cpp

[Evaluator] Create TargetLibraryInfo in the context of the evaluated function (#245269)

The Evaluator uses a single TargetLibraryInfo instance for each
evaluated function. That TLI is created in the context of
the top-level function being evaluated and is not necessarily
valid for other functions.

In particular, this caused the Evaluator to fold calls to standard
library functions despite the presence of "no-builtins" attribute.

This patch makes the Evaluator create a new
TargetLibraryInfo instance for each evaluated function.

Fixes https://github.com/llvm/llvm-project/issues/244323
DeltaFile
+46-0llvm/test/Transforms/GlobalOpt/global-constructor-no-builtins.ll
+8-4llvm/lib/Transforms/Utils/Evaluator.cpp
+6-4llvm/include/llvm/Transforms/Utils/Evaluator.h
+5-4llvm/lib/Transforms/IPO/GlobalOpt.cpp
+65-124 files

LLVM/project 2fb8eeb — mlir/include/mlir/Dialect/Utils ReshapeOpsUtils.h

[mlir] Declare reshapeLikeShapesAreCompatible before verifyReshapeLikeTypes (#245432)

`verifyReshapeLikeTypes` is a function template that calls
`reshapeLikeShapesAreCompatible`, which is only declared further down
the header. The call is dependent, so it resolves at instantiation
through ADL on the lambda's enclosing namespace, which newer compilers
accept. Clang 7 does not (it predates the DR1690 lookup rules for local
classes) and fails with "call to function
'reshapeLikeShapesAreCompatible' that is neither visible in the template
definition nor found by argument-dependent lookup" while building
TensorOps.cpp. Move the declaration above the template so ordinary
lookup finds it.
DeltaFile
+10-10mlir/include/mlir/Dialect/Utils/ReshapeOpsUtils.h
+10-101 files

LLVM/project c74ad75 — llvm/lib/Target/LoongArch LoongArchISelLowering.cpp, llvm/test/CodeGen/LoongArch bstrins-bstrpick-known-bits.ll fcopysign.ll

[LoongArch] Prefer low-bit insertion for complementary masks (#243364)
DeltaFile
+24-2llvm/test/CodeGen/LoongArch/bstrins_w.ll
+24-0llvm/test/CodeGen/LoongArch/bstrins_d.ll
+6-6llvm/test/CodeGen/LoongArch/fcopysign.ll
+11-0llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
+1-2llvm/test/CodeGen/LoongArch/bstrins-bstrpick-known-bits.ll
+66-105 files

LLVM/project dd8b686 — flang/lib/Optimizer/Dialect/FIRCG CGOps.cpp, mlir/examples/toy/Ch2/mlir Dialect.cpp

[mlir] Use the default op registration in upstream dialects

Opts all upstream dialects that define operations in ODS into `useDefaultOperationRegistration`, which removes a decent bit of code. DLTI, which has no operations, and Transform, whose operations are also generated by its extensions, are left as is. Doing so required minor changes:
* ArmSME and Linalg did an ad-hoc partitioning before and now utilize the partitioning feature instead
* Flang's codegen dialect is now ODS generated

Dialects whose `initialize` became empty set `hasInitializer` to 0.

Co-authored-by: Claude <noreply at anthropic.com>
DeltaFile
+17-7mlir/include/mlir/Dialect/Linalg/IR/CMakeLists.txt
+18-0mlir/include/mlir/Dialect/Linalg/IR/LinalgAllOps.td
+17-0mlir/include/mlir/Dialect/ArmSME/IR/ArmSMEAllOps.td
+10-6mlir/include/mlir/Dialect/ArmSME/IR/CMakeLists.txt
+1-13flang/lib/Optimizer/Dialect/FIRCG/CGOps.cpp
+0-13mlir/examples/toy/Ch2/mlir/Dialect.cpp
+63-39115 files not shown
+192-380121 files

LLVM/project 4d705ec — mlir/test/lib/Dialect/Test TestOpsSyntax.td, mlir/test/mlir-tblgen op-registration.td op-partitions.td

[mlir][ODS] Register the operations of a dialect by default (#245266)

Dialects registered their ODS operations by expanding `GET_OP_LIST` into
`addOperations` in `initialize`, while sharded and partitioned dialects
had to call the generated `register<Dialect>Operations` themselves. This
was not only an inconsistent interface but also boilerplate for every
dialect definition.

Like attributes and types do since
https://github.com/llvm/llvm-project/pull/243481, operations are now
only registered by a generated `register<Dialect>Operations` hook that
the generated dialect constructor calls, for all generated files whether
sharded, partitioned or neither (i.e., we are consistent again!).

To avoid breaking downstreams `useDefaultOperationRegistration` is
currently set to 0 for compatibility but will be switched in a future
PR.
Dialects without operations, or that register them manually, should set
`useDefaultOperationRegistration` to 0. `-op-registration-name` names

    [11 lines not shown]
DeltaFile
+100-149mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp
+91-89mlir/test/lib/Dialect/Test/TestOpsSyntax.td
+22-103mlir/tools/mlir-tblgen/AttrOrTypeDefGen.cpp
+109-16mlir/tools/mlir-tblgen/DialectGen.cpp
+39-19mlir/test/mlir-tblgen/op-partitions.td
+56-0mlir/test/mlir-tblgen/op-registration.td
+417-37631 files not shown
+644-47037 files

LLVM/project dba9696 — llvm/lib/Target/Mips MipsISelLowering.cpp

[Mips] Use a 0/1 result for constrained FP compares on R6 (#245918)

#245469 made R6 FP compares produce 0/1 booleans, so lowerSETCC takes
the low bit of the cmp.cond.fmt mask. lowerFSETCC, from #245178, still
returned the whole mask for STRICT_FSETCC and STRICT_FSETCCS, which was
correct while FP compares used 0/-1 booleans. With both changes on main,
a constrained compare used as a value gives -1 for true.

Take the low bit of the mask, as lowerSETCC does. This fixes the
CodeGen/Mips/fp-strict-fcmp.ll failure on main, seen on the buildbots
since both changes landed.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+6-3llvm/lib/Target/Mips/MipsISelLowering.cpp
+6-31 files

LLVM/project b84352f — llvm/include/llvm/CodeGen MIR2Vec.h

[MIR2Vec] Build the vocabulary once per module (#245773)

The legacy printer rebuilt it for every machine function

On a 112-function AMDGPU MIR file, `llc -run-pass=none -print-mir2vec`
drops from 14.4s to 6.8s
DeltaFile
+13-12llvm/include/llvm/CodeGen/MIR2Vec.h
+13-121 files

LLVM/project 91565aa — flang/lib/Optimizer/Dialect/FIRCG CGOps.cpp, mlir/include/mlir/Dialect/ArmSME/IR CMakeLists.txt ArmSMEAllOps.td

[mlir] Use the default op registration in upstream dialects

Opts all upstream dialects that define operations in ODS into `useDefaultOperationRegistration`, which removes a decent bit of code. DLTI, which has no operations, and Transform, whose operations are also generated by its extensions, are left as is. Doing so required minor changes:
* ArmSME and Linalg did an ad-hoc partitioning before and now utilize the partitioning feature instead
* Flang's codegen dialect is now ODS generated

Dialects whose `initialize` became empty set `hasInitializer` to 0.

Co-authored-by: Claude <noreply at anthropic.com>
DeltaFile
+17-7mlir/include/mlir/Dialect/Linalg/IR/CMakeLists.txt
+18-0mlir/include/mlir/Dialect/Linalg/IR/LinalgAllOps.td
+17-0mlir/include/mlir/Dialect/ArmSME/IR/ArmSMEAllOps.td
+10-6mlir/include/mlir/Dialect/ArmSME/IR/CMakeLists.txt
+1-13flang/lib/Optimizer/Dialect/FIRCG/CGOps.cpp
+0-13mlir/lib/Dialect/Linalg/IR/LinalgDialect.cpp
+63-39115 files not shown
+192-380121 files

LLVM/project 0ca4345 — llvm/lib/Target/AMDGPU AMDGPUCodeGenPrepare.cpp, llvm/test/CodeGen/AMDGPU amdgpu-codegenprepare-fmul-legacy.ll

[AMDGPU] Fold fmul with zero checks to fmul.legacy (#229357)

Recognize f32 multiplication with zero checks in AMDGPUCodeGenPrepare,
including fabs/fneg wrappers.

Example:
```
  (x == 0 || y == 0) ? +0.0 : x * y
==>
  llvm.amdgcn.fmul.legacy(x, y)
```

AMDGPU example: https://godbolt.org/z/5f56T46fT
Assisted-by: Claude Opus 5.5
DeltaFile
+21-106llvm/test/CodeGen/AMDGPU/amdgpu-codegenprepare-fmul-legacy.ll
+65-0llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
+86-1062 files

LLVM/project a66cb3d — llvm/test/CodeGen/LoongArch/lasx/ir-instruction extractelement.ll, llvm/test/CodeGen/LoongArch/lsx/ir-instruction extractelement.ll

[LoongArch][NFC] Pre-commit tests for sign-extended vector element extraction (#241718)

Add tests where a constant-index i8/i16 vector element extraction is
followed by a sign extension.

Assisted-By: LLM
DeltaFile
+66-0llvm/test/CodeGen/LoongArch/lasx/ir-instruction/extractelement.ll
+32-0llvm/test/CodeGen/LoongArch/lsx/ir-instruction/extractelement.ll
+98-02 files

LLVM/project bbbf96f — llvm/lib/Target/LoongArch LoongArchLSXInstrInfo.td LoongArchLASXInstrInfo.td, llvm/test/CodeGen/LoongArch/lasx/ir-instruction extractelement.ll

[LoongArch] Use signed vector extract for sign extension (#241719)

`[x]vpickve2gr.{b/h}` already sign-extends the extracted element to
GRLen, so a following `ext.w.{b/h}` is redundant:

```llvm
  %e = extractelement <16 x i8> %v, i64 7
  %r = sext i8 %e to i32
```

```asm
  vpickve2gr.b  $a0, $vr0, 7
  ext.w.b       $a0, $a0
```

Add patterns that fold sext_inreg of a constant-index i8/i16 vector
extraction into VPICKVE2GR_B/H, mirroring the existing zero-extension
patterns for VPICKVE2GR_BU/HU. The i32 case already needs no extra
instruction.

Assisted-By: LLM
DeltaFile
+18-0llvm/lib/Target/LoongArch/LoongArchLASXInstrInfo.td
+6-0llvm/lib/Target/LoongArch/LoongArchLSXInstrInfo.td
+0-4llvm/test/CodeGen/LoongArch/lasx/ir-instruction/extractelement.ll
+0-2llvm/test/CodeGen/LoongArch/lsx/ir-instruction/extractelement.ll
+24-64 files

LLVM/project 486a7fa — utils/bazel/llvm-project-overlay/llvm BUILD.bazel, utils/bazel/llvm-project-overlay/llvm/unittests BUILD.bazel

[Bazel] Fixes ecac0cc (#245921)

This fixes ecac0ccc9ef8be6de4ab155396de51e7bbad0b03 (#245165).

Buildkite error link:
https://buildkite.com/llvm-project/upstream-bazel/builds?commit=ecac0ccc9ef8be6de4ab155396de51e7bbad0b03

Co-authored-by: Google Bazel Bot <google-bazel-bot at google.com>
DeltaFile
+36-1utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
+2-0utils/bazel/llvm-project-overlay/llvm/unittests/BUILD.bazel
+38-12 files

LLVM/project 1a5d8d9 — llvm/test/CodeGen/AMDGPU redundant-and.mir coalesce-copy-to-agpr-to-av-registers.mir, llvm/test/CodeGen/AMDGPU/GlobalISel combine-fold-binop-into-select.mir

[AMDGPU](NFC) Drop `tracksRegLiveness: true` from MIR tests (#240860)
DeltaFile
+0-236llvm/test/CodeGen/AMDGPU/remat-vop.mir
+0-146llvm/test/CodeGen/AMDGPU/rewrite-partial-reg-uses-gen.mir
+0-120llvm/test/CodeGen/AMDGPU/vopd-combine-gfx1250.mir
+0-111llvm/test/CodeGen/AMDGPU/coalesce-copy-to-agpr-to-av-registers.mir
+0-68llvm/test/CodeGen/AMDGPU/redundant-and.mir
+0-55llvm/test/CodeGen/AMDGPU/GlobalISel/combine-fold-binop-into-select.mir
+0-7361,103 files not shown
+0-6,4811,109 files

LLVM/project dac2c8b — mlir/docs SPIRVToLLVMDialectConversion.md, mlir/lib/Conversion/SPIRVToLLVM SPIRVToLLVM.cpp

[mlir][SPIR-V] Pack only CPacked structs in SPIRVToLLVM (#245771)

Other structs without Offset have natural alignment, so packing them
misplaced members
DeltaFile
+24-24mlir/test/Conversion/SPIRVToLLVM/arithmetic-ops-to-llvm.mlir
+11-28mlir/lib/Conversion/SPIRVToLLVM/SPIRVToLLVM.cpp
+18-12mlir/docs/SPIRVToLLVMDialectConversion.md
+21-5mlir/test/Conversion/SPIRVToLLVM/memory-ops-to-llvm.mlir
+4-4mlir/test/Conversion/SPIRVToLLVM/misc-ops-to-llvm.mlir
+4-4mlir/test/Conversion/SPIRVToLLVM/constant-op-to-llvm.mlir
+82-772 files not shown
+94-798 files

LLVM/project 4a2dcb4 — llvm/lib/Target/SPIRV SPIRVGlobalRegistry.h SPIRVGlobalRegistry.cpp

[SPIR-V] Extract addTypeKey from restOfCreateSPIRVType (NFC) (#245753)

Prepare for restoring type keys when loading MIR
DeltaFile
+20-13llvm/lib/Target/SPIRV/SPIRVGlobalRegistry.cpp
+3-0llvm/lib/Target/SPIRV/SPIRVGlobalRegistry.h
+23-132 files

LLVM/project fdb1549 — mlir/lib/Conversion/ArithToSPIRV ArithToSPIRV.cpp, mlir/test/Conversion/ArithToSPIRV arith-to-spirv.mlir

[mlir][SPIR-V] Order -0.0 before +0.0 in arith.maximumf/minimumf (#245530)

FMax and FMin return the first operand on ties, so max(-0.0, +0.0) gave
-0.0

In #225667 the same bug was fixed for llvm.maximum/minimum in the SPIR-V
backend
DeltaFile
+67-4mlir/test/Conversion/ArithToSPIRV/arith-to-spirv.mlir
+38-6mlir/lib/Conversion/ArithToSPIRV/ArithToSPIRV.cpp
+105-102 files

LLVM/project f3ceca7 — llvm/test/CodeGen/AMDGPU kernel-args.ll load-local-i16.ll, llvm/test/Transforms/AtomicExpand/AMDGPU expand-atomic-i8.ll

[AMDGPU] Remove R600 usage from llvm tests. NFC

Second step of removing the R600 (TeraScale) tests:

* [x] clang, flang, lld tests (#245524)
* [x] llvm tests (this patch)

Tests that only cover R600 are deleted, including the tests of the
`llvm.r600.*` intrinsics. In tests shared with GCN, the r600 RUN lines
and their now unused EG, CM and R600 checks and comments are removed,
and autogenerated checks are regenerated. The R600 cases in the yaml,
TableGen, TargetParser, Triple and DataLayout upgrade tests are removed
too:

```
; RUN: llc -mtriple=amdgcn -mcpu=tahiti < %s | FileCheck -check-prefixes=SI,FUNC %s
; RUN: llc -mtriple=r600 -mcpu=redwood < %s | FileCheck -check-prefixes=EG,FUNC %s
; EG: LDS_READ_RET
  -->

    [8 lines not shown]
DeltaFile
+0-5,394llvm/test/CodeGen/AMDGPU/load-global-i8.ll
+0-5,274llvm/test/CodeGen/AMDGPU/srem.ll
+0-3,587llvm/test/CodeGen/AMDGPU/load-global-i16.ll
+0-3,230llvm/test/CodeGen/AMDGPU/load-local-i16.ll
+889-1,751llvm/test/Transforms/AtomicExpand/AMDGPU/expand-atomic-i8.ll
+0-2,631llvm/test/CodeGen/AMDGPU/kernel-args.ll
+889-21,867246 files not shown
+899-67,098252 files

LLVM/project d2d4da4 — llvm/lib/Analysis TargetTransformInfo.cpp, llvm/lib/Target/AArch64 AArch64TargetTransformInfo.cpp

[SLP][AArch64] Don't count splats folded into indexed FMLA in inst count (#230105)

The VF=2 instruction-count check (#190414) counts each splat gather as
one instruction per lane, including repeated gathers of the same splat.
In two Horner chains in x^2, the splat of x^2 feeds each level's fused
fmul/fadd pair, so the check sees 15 vector instructions against 8
scalar fmas and rejects a tree the cost model finds profitable. AArch64
emits no splat here: each pair becomes an indexed `fmla.2d` that reads
lane 0.

This uses the build-vector context hint (#224766). AArch64 reports
`SplatOpFolded` for an FP splat whose fmul users each fuse with a
contractable fadd or fsub of the same opcode in their block, decided
from the IR, and costs its broadcast as free. The count skips a splat
gather when the new `TTI::isSplatFolded()` says so: it checks for a
splat of a non-constant value and queries the hint, with SLP only
supplying the users. Unfused fmuls are not reported, since the scalar
count only credits fused pairs as fmas. Splats with undef lanes may need
a freeze and are never treated as folded.

    [29 lines not shown]
DeltaFile
+76-105llvm/test/Transforms/SLPVectorizer/AArch64/loop-accumulator-reduction.ll
+95-0llvm/test/Transforms/SLPVectorizer/RISCV/folded-broadcast-cost.ll
+75-0llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
+20-24llvm/test/Transforms/SLPVectorizer/AArch64/inst-count-folded-splat.ll
+19-6llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+18-0llvm/lib/Analysis/TargetTransformInfo.cpp
+303-1353 files not shown
+320-1369 files

LLVM/project 2f07e55 — lldb/include/lldb/Symbol CompilerType.h TypeSystem.h, lldb/source/Symbol CompilerType.cpp TypeSystem.cpp

[lldb][NFC] Remove GetChildCompilerTypeAtIndex

All type systems and callers use GetChildAtIndex now, so this patch removes
TypeSystem::GetChildCompilerTypeAtIndex and its CompilerType wrapper, and
makes TypeSystem::GetChildAtIndex pure virtual.

assisted by claude
DeltaFile
+0-40lldb/source/Symbol/TypeSystem.cpp
+0-19lldb/source/Symbol/CompilerType.cpp
+1-13lldb/include/lldb/Symbol/TypeSystem.h
+0-9lldb/include/lldb/Symbol/CompilerType.h
+1-814 files

LLVM/project 37052e5 — lldb/source/Plugins/TypeSystem/Clang TypeSystemClang.cpp

[lldb][NFC] Remove redundant zero assignments in TypeSystemClang

TypeSystemClang::GetChildAtIndex starts from a value-initialized
ChildTypeInfo, so it doesn't need to set byte_offset to 0.

assisted by claude
DeltaFile
+0-4lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
+0-41 files