LLVM/project 97e2db8 — mlir/docs CMakeInfrastructure.md, mlir/docs/DefiningDialects AttributesAndTypes.md

[MLIR][docs] Document the CMake infrastructure

Describe MLIR's TableGen, library, visibility, aggregation,
installation, and generated-header conventions in one infrastructure
guide. Explain library owners, explicit generators, and compile-only
header requirements.

Link the guide from CreatingADialect.md. Use
add_mlir_dialect_tablegen_target in the AttributesAndTypes.md example.

Assisted-by: Codex
DeltaFile
+282-0mlir/docs/CMakeInfrastructure.md
+3-0mlir/docs/Tutorials/CreatingADialect.md
+1-1mlir/docs/DefiningDialects/AttributesAndTypes.md
+286-13 files

LLVM/project 09d1c7d — mlir/docs ReleaseNotes.md, mlir/lib/Dialect/Affine/IR CMakeLists.txt

[MLIR][CMake] Stop depending on mlir-generic-headers by default

Remove the default mlir-generic-headers dependency from ordinary and
example libraries, and migrate their generated-interface requirements to
library owners. Keep the compatibility aggregate and registrations.

MLIRIR now owns MLIRInferIntRangeInterfaceIncGen, which Matchers.h
includes. Add the Transform/Interfaces generator-to-generator
dependency. MLIRDialectUtils switches from MLIRArithOpsIncGen to
COMPILE_ONLY:MLIRArithDialect because ReshapeOpsUtils.h includes
Arith.h.

Extend the release note and aggregate regression test.

Assisted-by: Codex
DeltaFile
+9-1mlir/lib/Dialect/MemRef/IR/CMakeLists.txt
+6-1mlir/lib/Dialect/Math/IR/CMakeLists.txt
+6-1mlir/lib/Dialect/Affine/IR/CMakeLists.txt
+3-3mlir/docs/ReleaseNotes.md
+5-1mlir/lib/Dialect/GPU/CMakeLists.txt
+5-1mlir/lib/Dialect/Complex/IR/CMakeLists.txt
+34-850 files not shown
+193-5256 files

LLVM/project f4df813 — clang/include/clang/CIR/Dialect/IR CMakeLists.txt, flang/lib/Frontend CMakeLists.txt

[CMake] Migrate CIR and Flang generated-header dependencies

Replace CIR's mlir-headers dependencies and Flang's global MLIR library
lists with their actual library dependencies. Let owners provide
generated headers through the link graph, and remove duplicate ordering
dependencies on foreign IncGen targets.

Declare CIR interface and header ownership explicitly. Keep source
shards, bytecode tables and lowering tables private to their consumers.
Scope accumulated TableGen variables and keep implementation-only
lowering tables out of Clang's global TableGen aggregate.

Include only the dialects and conversion passes registered by Flang.
Preserve the supported registrations and retain MLIR_DEPS for downstream
compatibility. Use compile-only owner links for header-only
dependencies.

Assisted-by: Codex
DeltaFile
+28-12flang/lib/Optimizer/Support/CMakeLists.txt
+16-16flang/lib/Optimizer/Builder/CMakeLists.txt
+7-17flang/lib/Lower/CMakeLists.txt
+16-7clang/include/clang/CIR/Dialect/IR/CMakeLists.txt
+4-18flang/lib/Frontend/CMakeLists.txt
+0-16flang/lib/Optimizer/OpenACC/Support/CMakeLists.txt
+71-8639 files not shown
+126-26445 files

LLVM/project 7f0023f — mlir/docs ReleaseNotes.md, mlir/lib/CAPI/Dialect CMakeLists.txt

[MLIR][CMake] Stop depending on mlir-headers by default

Remove the default mlir-headers dependency from the dialect, conversion,
extension, and translation library helpers. Keep the aggregate target,
its registrations, and explicit compatibility dependencies available.

Replace redundant foreign generator edges with actual library links or
compile-only header owners. Add generator-to-generator add_dependencies
edges when one generated header includes another. Add regression
coverage that rejects an implicit dependency on the aggregate.

Add a release note explaining downstream migration, the temporary
DEPENDS mlir-headers fallback, and clean generated-file dependency
audits.

Assisted-by: Codex
DeltaFile
+0-32mlir/lib/CAPI/Dialect/CMakeLists.txt
+16-7mlir/lib/Dialect/LLVMIR/CMakeLists.txt
+20-0mlir/docs/ReleaseNotes.md
+13-1mlir/lib/Dialect/Arith/IR/CMakeLists.txt
+10-1mlir/lib/Dialect/Tensor/IR/CMakeLists.txt
+7-3mlir/lib/Dialect/Vector/IR/CMakeLists.txt
+66-4453 files not shown
+140-17359 files

LLVM/project 8191f38 — mlir/lib/Dialect/Vector/IR VectorOps.cpp, mlir/test/Dialect/Vector vector-transfer-permutation-lowering.mlir invalid.mlir

[mlir][vector] Require matching element types for vector xfers (#239164)

`vector.transfer_read` and `vector.transfer_write` currently accept
source and vector types with different elemental types when their
bitwidths are compatible. This packing behavior is not supported by the
Vector dialect.

With this PR, we require source and vector elemental types to match, and
update the affected tests to reject unsupported transfers.

This also removes outdated packing cases from:

- `mlir/test/Dialect/Vector/ops.mlir`
- `mlir/test/Dialect/Vector/vector-transfer-permutation-lowering.mlir`

Fixes: #237545

---------

Signed-off-by: Federico Bruzzone <federico.bruzzone.i at gmail.com>
DeltaFile
+4-37mlir/test/Dialect/Vector/ops.mlir
+21-0mlir/test/Dialect/Vector/invalid.mlir
+8-8mlir/test/Dialect/Vector/vector-transfer-permutation-lowering.mlir
+8-0mlir/lib/Dialect/Vector/IR/VectorOps.cpp
+41-454 files

LLVM/project cefe2d8 — llvm/docs AIToolPolicy.md, llvm/utils/git github-automation.py

[docs] Update AI tool policy for textual communication (#243459)

Update the AI tool policy for the approved RFC:
https://discourse.llvm.org/t/rfc-forbid-ai-generated-communication/92414

The tl;dr is that PR descriptions must be human-written, and we have
stronger restrictions on LLM-generated text in other communication
channels.

I mostly tried to preserve the old text and put this into a new section.
Additionally, as the policy is getting quite long, I've added a summary
of the points that are most likely to be relevant to people. In the
interest of brevity, the summary intentionally omits the finer details,
so if someone wants to know if their use of LLM translation is allowed,
they'll just have to read the full policy.
DeltaFile
+68-14llvm/docs/AIToolPolicy.md
+1-1llvm/utils/git/github-automation.py
+69-152 files

LLVM/project 6ea48f7 — llvm/lib/Target/AArch64 AArch64Combine.td, llvm/lib/Target/AArch64/GISel AArch64PostLegalizerLowering.cpp

Revert "[AArch64][GlobalISel] Turn ANDs that keep the low bits of a vector into fmov (#243591)" (#248834)

This reverts commit d97c4a496eeaf325f5303519e747967b681c29db, which
broke check-llvm:

    FAIL: LLVM :: CodeGen/AArch64/and-keep-low-bits.ll

Commit ce6bab09e864bb4462487ebf995dd91a0dd88662 (#240841) already
rewrites the single-lane zero mask in and_v2i64_keep_low_64 into
G_INSERT_VECTOR_ELT during AArch64PostLegalizerCombiner.  That pass
runs before AArch64PostLegalizerLowering.  As a result, GlobalISel
emits:

    mov v0.d[1], xzr

The test expects:

    fmov d0, d0


    [4 lines not shown]
DeltaFile
+0-209llvm/test/CodeGen/AArch64/and-keep-low-bits.ll
+0-201llvm/test/CodeGen/AArch64/GlobalISel/postlegalizer-lowering-and-keep-low-bits.mir
+1-43llvm/lib/Target/AArch64/AArch64Combine.td
+0-27llvm/lib/Target/AArch64/GISel/AArch64PostLegalizerLowering.cpp
+1-4804 files

LLVM/project 87a99c5 — llvm/lib/Target/LoongArch LoongArchISelLowering.cpp, llvm/test/CodeGen/LoongArch expandmemcmp-optsize.ll expandmemcmp.ll

address lrzlin's comments
DeltaFile
+56-160llvm/test/CodeGen/LoongArch/expandmemcmp.ll
+40-120llvm/test/CodeGen/LoongArch/expandmemcmp-optsize.ll
+8-9llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
+104-2893 files

LLVM/project 3303bac — llvm/lib/Target/LoongArch LoongArchTargetTransformInfo.cpp LoongArchISelLowering.cpp

[LoongArch] Support memcmp expansion for vectors and combine for i128/i256 setcc

This commit enables memcmp expansion for lsx/lasx. After doing
this, i128 and i256 loads which are illegal types on LoongArch
will be generated. Without process, they will be splited to
legal scalar type.

So this commit also enable combination for `setcc` to bitcast
i128/i256 types to vector types before type legalization and
generate vector instructions.

Inspired by x86 and riscv.
DeltaFile
+119-13llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
+8-3llvm/lib/Target/LoongArch/LoongArchTargetTransformInfo.cpp
+127-162 files

LLVM/project 71b1f46 — llvm/test/CodeGen/LoongArch expandmemcmp-optsize.ll expandmemcmp.ll

update tests
DeltaFile
+670-297llvm/test/CodeGen/LoongArch/expandmemcmp.ll
+612-155llvm/test/CodeGen/LoongArch/expandmemcmp-optsize.ll
+1,282-4522 files

LLVM/project c0200bc — mlir/lib/Dialect/ArmSME/Transforms VectorLegalization.cpp, mlir/test/Dialect/ArmSME vector-legalization.mlir

[mlir][ArmSME] Legalize writes in `vector.mask` (#246947)

ArmSME legalization creates new ops inside a `vector.mask` region which
is invalid IR.

A write has no passthru, so `vector.mask { transfer_write }` is
equivalent to the mask operand.
The patterns now take the mask from the _operand_ (will be deleted via
#239511) or from the enclosing `vector.mask`, and replace the
`Xfer_write` first and then the `vector.mask`.

Part of #239511 and #240114 (item 16).
RFC:
https://discourse.llvm.org/t/rfc-unify-masking-in-the-vector-dialect/92675

This supersedes the bailouts of #246463.

---------

Signed-off-by: Federico Bruzzone <federico.bruzzone.i at gmail.com>
DeltaFile
+43-19mlir/lib/Dialect/ArmSME/Transforms/VectorLegalization.cpp
+55-3mlir/test/Dialect/ArmSME/vector-legalization.mlir
+98-222 files

LLVM/project 3f6a3c9 — llvm/test/CodeGen/LoongArch expandmemcmp-optsize.ll expandmemcmp.ll

[LoongArch][NFC] Add lsx/lasx checks for memcmp expansion tests (#167678)

Add checks for lsx/lasx and check-prefixes to reduce the duplication.
DeltaFile
+1,801-193llvm/test/CodeGen/LoongArch/expandmemcmp.ll
+1,023-197llvm/test/CodeGen/LoongArch/expandmemcmp-optsize.ll
+2,824-3902 files

LLVM/project 949ca15 — .github CODEOWNERS new-prs-labeler.yml, llvm Maintainers.md

[PISA] Add maintainers, code owners, and PR labeling (#248674)

Adds maintainers, code owners, and PR labeling configuration files for
newly added PISA target.

Please see for more details:
https://discourse.llvm.org/t/rfc-upstreaming-the-pisa-backend-to-llvm/91474
DeltaFile
+11-0llvm/Maintainers.md
+6-0.github/new-prs-labeler.yml
+4-0.github/CODEOWNERS
+21-03 files

LLVM/project 2656d88 — mlir/include/mlir/Dialect/Linalg/TransformOps LinalgTransformOps.td, mlir/include/mlir/Dialect/Linalg/Transforms Transforms.h

[mlir][linalg] Add `operands_to_pack` to `structured.pack` (#241195)

`linalg.pack` packs every operand that uses a packed iterator dimension,
so there is no way to pack only some of the operands of an op.

With this PR we add an optional list of operand numbers,
`operands_to_pack`. If it is absent, all operands are packed as before.
If it is present, only the listed operands are packed. Every other
operand is not packed: its packed dimensions are split in place into
`[outer, inner]` with a `tensor.expand_shape`, and the result for an
init is collapsed back with a `tensor.collapse_shape` - i.e., no data is
moved.

The tile sizes must be constants. The packed dimensions of an unpacked
operand may be static or dynamic. A static one must be a multiple of its
tile, otherwise the pack fails. A dynamic one cannot be checked: it is
assumed to be a multiple, which the payload must guarantee, otherwise is
UB.


    [20 lines not shown]
DeltaFile
+405-0mlir/test/Dialect/Linalg/transform-op-pack.mlir
+124-0mlir/test/Integration/Dialect/Linalg/CPU/pack-keep-layout-operands.mlir
+97-3mlir/lib/Dialect/Linalg/Transforms/Transforms.cpp
+38-2mlir/include/mlir/Dialect/Linalg/TransformOps/LinalgTransformOps.td
+11-3mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h
+6-2mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp
+681-106 files

LLVM/project f85f2d5 — clang/test/CodeGen/AArch64 fmv-resolver-emission.c, clang/test/CodeGenCXX likely-module-local.cpp

[spr] update

Created using spr 2.0.0-beta.2
DeltaFile
+30-30clang/test/OpenMP/threadprivate_codegen.cpp
+25-25clang/test/OpenMP/parallel_private_codegen.cpp
+11-2clang/test/CodeGenCXX/likely-module-local.cpp
+6-6clang/test/OpenMP/parallel_firstprivate_codegen.cpp
+6-6clang/test/CodeGen/AArch64/fmv-resolver-emission.c
+5-5clang/test/OpenMP/for_lastprivate_codegen.cpp
+83-744 files not shown
+90-8110 files

LLVM/project 8d9ac86 — clang/test/CodeGenCXX likely-module-local.cpp

[spr] update

Created using spr 2.0.0-beta.2
DeltaFile
+5-3clang/test/CodeGenCXX/likely-module-local.cpp
+5-31 files

LLVM/project 665c52a — clang/test/CodeGen inline-builtin-attrs.c

[spr] update

Created using spr 2.0.0-beta.2
DeltaFile
+91-13clang/test/CodeGen/inline-builtin-attrs.c
+91-131 files

LLVM/project 8173fc6 — clang/test/CodeGen strlen-inline-builtin.c inline-builtin-attrs.c

[NFC][clang][test] Rename strlen-inline-builtin.c to inline-builtin-attrs.c (#248820)

The file will also test other attributes on inline builtins.

Assisted-by: Gemini
DeltaFile
+0-25clang/test/CodeGen/strlen-inline-builtin.c
+25-0clang/test/CodeGen/inline-builtin-attrs.c
+25-252 files

LLVM/project 5c29d68 — llvm/lib/Target/LoongArch LoongArchTargetMachine.cpp LoongArch.td, llvm/test/CodeGen/LoongArch opt-pipeline.ll selectopt-heap-down.ll

[LoongArch] Enable SelectOptimize for LA464 and LA664 (#233466)

Enable SelectOptimize for LA464/LA664 under O3 by default, which will
convert select or select-like instructions, e.g. `or(zext(icmp))`, back
to branch for better use the CPU's speculative execution. See
https://github.com/llvm/llvm-project/pull/77284 and
[D138990](https://reviews.llvm.org/D138990) for more detailed
explaination.

The up-coming [LoongArch sched-model
PR](https://github.com/llvm/llvm-project/pull/226064) has introduced
`MispredictPenalty = 14` for LA464 and LA664, which will have some
impact on the heuristic algorithm of this pass, but I didn't see any
changes in SPEC CPU2006.

Here are the SPEC CPU2006 results, running on Loongson 3B6000, with
`-mtune=la664 -O3 -mlsx -fuse-ld=lld`. Only benchmarks which codes
changed after the pass are listed:


    [31 lines not shown]
DeltaFile
+958-0llvm/test/CodeGen/LoongArch/selectopt.ll
+114-0llvm/test/CodeGen/LoongArch/selectopt-heap-down.ll
+21-0llvm/lib/Target/LoongArch/LoongArchTargetTransformInfo.cpp
+12-2llvm/test/CodeGen/LoongArch/opt-pipeline.ll
+9-2llvm/lib/Target/LoongArch/LoongArch.td
+8-0llvm/lib/Target/LoongArch/LoongArchTargetMachine.cpp
+1,122-41 files not shown
+1,128-47 files

LLVM/project ebe9756 — llvm/lib/Transforms/Vectorize VectorCombine.cpp, llvm/test/Transforms/VectorCombine bitcast-shuffle-ptr.ll

[VectorCombine] Fix invalid bitcast after peeking through bitcasts

foldBitcastShuffle looks through the bitcasts of the shuffle operands
and bitcasts their sources to the new shuffle type. Some sources can't
be bitcast to it, e.g. an integer vector to a pointer vector, which
fails with "Invalid cast!". For such a source, bitcast the operand
itself. Don't fold if that leaves no operand looked through, which is
always the case for a unary shuffle: the new bitcast of a bitcast can
be turned back into the original form by foldShuffleToIdentity, which
loops for repeat and extract masks.

Assisted-by: Claude Code (Claude Opus 5.5)
DeltaFile
+88-0llvm/test/Transforms/VectorCombine/bitcast-shuffle-ptr.ll
+69-0llvm/test/Transforms/VectorCombine/X86/shuffle.ll
+18-4llvm/lib/Transforms/Vectorize/VectorCombine.cpp
+175-43 files

LLVM/project 92582fb — llvm/lib/Transforms/Vectorize VectorCombine.cpp, llvm/test/Transforms/VectorCombine bitcast-shuffle-ptr.ll

[VectorCombine] Fix crash on bitcasts of pointer vectors

foldBitcastShuffle divides by the scalar sizes of the source and
destination element types, which are zero for pointers. A bitcast of a
shuffled pointer vector, or one between a byte vector and a pointer
vector, then crashes with a division by zero. Take the sizes from the
DataLayout, so these bitcasts are folded too.

Fixes #246659

Assisted-by: Claude Code (Claude Opus 5.5)
DeltaFile
+89-0llvm/test/Transforms/VectorCombine/bitcast-shuffle-ptr.ll
+7-4llvm/lib/Transforms/Vectorize/VectorCombine.cpp
+96-42 files

LLVM/project 53fd54a — llvm/lib/Analysis InlineAdvisor.cpp AnalysisOptions.td, llvm/test/Transforms/Inline/ML ml-test-release-mode.ll

[IR2Vec] Replace -ml-inliner-ir2vec-vocab-file with -ml-inliner-use-ir2vec (#248649)

This flag turned on IR2Vec features but never read the file
DeltaFile
+1-3llvm/lib/Analysis/InlineAdvisor.cpp
+2-2llvm/lib/Analysis/AnalysisOptions.td
+1-0llvm/test/Transforms/Inline/ML/ml-test-release-mode.ll
+4-53 files

LLVM/project 29dd97b — orc-rt/include/orc-rt/bedrock LoaderEngine.h, orc-rt/include/orc-rt/bedrock/sps LoaderEngineSPSCI.h

[orc-rt] Add LoaderEngine skeleton and SPS create interface. (#248819)

LoaderEngine will be responsible for loading JIT'd images in the ORC
runtime. For now it only logs its construction and destruction, so that
creation via the controller interface can be verified.

The new orc_rt_ci_sps_LoaderEngine_create wrapper constructs a
LoaderEngine, publishes it as the orc_rt_LoaderEngine_Instance instance
symbol, transfers ownership to the calling Session via an on-shutdown
callback, and returns the instance address. Since the instance symbol
name is fixed, create succeeds at most once per Session.
DeltaFile
+80-0orc-rt/test/unit/bedrock/sps/LoaderEngineSPSCITest.cpp
+64-0orc-rt/lib/bedrock/sps/LoaderEngineSPSCI.cpp
+36-0orc-rt/include/orc-rt/bedrock/sps/LoaderEngineSPSCI.h
+28-0orc-rt/lib/bedrock/LoaderEngine.cpp
+28-0orc-rt/include/orc-rt/bedrock/LoaderEngine.h
+2-0orc-rt/lib/bedrock/sps/AllSPSCI.cpp
+238-03 files not shown
+243-09 files

LLVM/project c6b1d83 — clang/test/CodeGenCXX likely-module-local.cpp

[spr] update

Created using spr 2.0.0-beta.2
DeltaFile
+5-3clang/test/CodeGenCXX/likely-module-local.cpp
+5-31 files

LLVM/project 0b6ddc4 — clang/test/CodeGenCXX likely-module-local.cpp

[spr] update

Created using spr 2.0.0-beta.2
DeltaFile
+5-3clang/test/CodeGenCXX/likely-module-local.cpp
+5-31 files

LLVM/project 2a95741 — llvm/lib/Target/SystemZ SystemZRegisterInfo.td SystemZInstrVector.td, llvm/test/CodeGen/SystemZ regcoal-subranges-update-remat.mir RAbasic-invalid-LR-update.mir

[TableGen][SystemZ] Only inherit sub-register indices at offset 0 or unknown (#246675)

When a register inherits the sub-registers of one of its explicit
sub-registers, TableGen reused each inherited sub-register's index
unless that index was already in use. That is only correct if the
inherited sub-register is at the same offset in the register as it is
in the explicit sub-register. For example, with:

  def hi16 : SubRegIndex<16, 16>;
  def hi32 : SubRegIndex<32, 32>;

  R32 = [R16 at hi16]
  R64 = [R32 at hi32]

R64 got R16 as its hi16 sub-register, although hi16 has offset 16 and
R16 is at offset 48 in R64.

Now a sub-register only keeps its index if it is inherited from an
explicit sub-register whose index has offset 0 or an unknown offset.

    [23 lines not shown]
DeltaFile
+75-0llvm/test/TableGen/HighSubRegs.td
+16-16llvm/lib/Target/SystemZ/SystemZInstrVector.td
+10-10llvm/test/CodeGen/SystemZ/RAbasic-invalid-LR-update.mir
+7-7llvm/test/CodeGen/SystemZ/regcoal-subranges-update-remat.mir
+10-2llvm/utils/TableGen/Common/CodeGenRegisters.cpp
+6-4llvm/lib/Target/SystemZ/SystemZRegisterInfo.td
+124-3912 files not shown
+145-6018 files

LLVM/project 90c7abf — mlir/include/mlir/Dialect/Bufferization/Transforms Passes.td, mlir/lib/Dialect/Bufferization/Transforms OwnershipBasedBufferDeallocation.cpp LowerDeallocations.cpp

[mlir][bufferization] Add allocation-op option to buffer deallocation passes (#246893)

Currently, `bufferization-lower-deallocations` deallocates every
`memref` with `memref.dealloc`, no matter which operation allocated it.

This PR adds an `allocation-op` option to the buffer deallocation passes
and pipeline. It names a target operation (default `memref.alloc`) that
implements `AllocationOpInterface`:
* `ownership-based-buffer-deallocation` owns the allocations of that
target
* `bufferization-lower-deallocations` builds each deallocation with the
target's `buildDealloc`

With the default, an allocation of some other operation is no longer
deallocated, so `@dealloc_existing_clones` changes a bit.

Since `buildDealloc` can build operations from any dialect,
`bufferization-lower-deallocations`'s conversion target now treats
unknown operations as legal. As a side effect, it no longer folds

    [8 lines not shown]
DeltaFile
+88-25mlir/lib/Dialect/Bufferization/Transforms/LowerDeallocations.cpp
+64-0mlir/test/Dialect/Bufferization/Transforms/OwnershipBasedBufferDeallocation/dealloc-mixed-allocation-ops.mlir
+40-6mlir/lib/Dialect/Bufferization/Transforms/OwnershipBasedBufferDeallocation.cpp
+27-7mlir/include/mlir/Dialect/Bufferization/Transforms/Passes.td
+31-0mlir/test/Dialect/Bufferization/Transforms/lower-deallocations-allocation-op.mlir
+17-0mlir/test/Dialect/Bufferization/Transforms/lower-deallocations-allocation-op-invalid.mlir
+267-3812 files not shown
+343-5518 files

LLVM/project d97c4a4 — llvm/lib/Target/AArch64 AArch64Combine.td, llvm/lib/Target/AArch64/GISel AArch64PostLegalizerLowering.cpp

[AArch64][GlobalISel] Turn ANDs that keep the low bits of a vector into fmov (#243591)

A 128-bit vector G_AND whose constant mask keeps the low 64 or 32 bits
and clears the rest can be done with a single `fmov d0, d0` or `fmov s0,
s0`, since writing a 64- or 32-bit register clears the upper bits of the
vector register.

| | SelectionDAG | GlobalISel before | GlobalISel after |
|---|---|---|---|
| `and <4 x i32>`, keep lanes 0-1 | `movi` + `mov` | `adrp` + `ldr` +
`and` | `fmov d0, d0` |
| `and <8 x i16>`, keep lanes 0-3 | `adrp` + `ldr` + `and` | `adrp` +
`ldr` + `and` | `fmov d0, d0` |
| `and <16 x i8>`, keep lanes 0-7 | `adrp` + `ldr` + `and` | `adrp` +
`ldr` + `and` | `fmov d0, d0` |
| `and <2 x i64>`, keep lane 0 | `mov v0.d[1], xzr` | `adrp` + `ldr` +
`and` | `fmov d0, d0` |
| `and <4 x i32>`, keep lane 0 | `fmov s0, s0` | `adrp` + `ldr` + `and`
| `fmov s0, s0` |

    [12 lines not shown]
DeltaFile
+209-0llvm/test/CodeGen/AArch64/and-keep-low-bits.ll
+201-0llvm/test/CodeGen/AArch64/GlobalISel/postlegalizer-lowering-and-keep-low-bits.mir
+43-1llvm/lib/Target/AArch64/AArch64Combine.td
+27-0llvm/lib/Target/AArch64/GISel/AArch64PostLegalizerLowering.cpp
+480-14 files

LLVM/project 152d87f — llvm/cmake/modules HandleLLVMOptions.cmake

[cmake] Fix LLD detection when compiler ABI detection fails (#248417)

#246222 and #247156 replaced `CMAKE_LINKER` matching in
HandleLLVMOptions.cmake with checks on
`CMAKE_C_COMPILER_LINKER_{ID,FRONTEND_VARIANT}`.

Those CMake variables are only populated when compiler ABI detection
succeeds. During cross-compilation of Windows runtimes (e.g. aarch64 or
i386 on an x86_64 host with `LLVM_WINSYSROOT`), ABI detection fails
because `/winsysroot:` is only added later in HandleLLVMOptions.cmake,
leaving `CMAKE_C_COMPILER_LINKER_*` empty. As a result,
`clang_rt.profile` was silently built without hardware atomics:
- `LINKER_IS_LLD_LINK` evaluated to FALSE even though
`LLVMExternalProjectUtils.cmake` passed `-DCMAKE_LINKER=.../lld-link`.
- `/winsysroot:` was omitted from linker flags.
- Subsequent `compiler-rt` `try_compile` checks failed (including
`COMPILER_RT_TARGET_HAS_ATOMICS`), falling back to non-atomic
`lprofBoolCmpXchg` / `lprofPtrFetchAdd`.


    [18 lines not shown]
DeltaFile
+12-1llvm/cmake/modules/HandleLLVMOptions.cmake
+12-11 files

LLVM/project e5f11d0 — clang/test/OpenMP target_no_loop.cpp

Adds test cases, addressing review comments
DeltaFile
+48-4clang/test/OpenMP/target_no_loop.cpp
+48-41 files