LLVM/project 2000901 — llvm/lib/Target/LoongArch CMakeLists.txt LoongArchTargetMachine.cpp, llvm/test/CodeGen/LoongArch newpm-pipeline.ll

[LoongArch] Introduce LoongArchCodeGenPassBuilder

Standard NewPM pipeline setup intentionally mirroring the existing
LoongArchTargetPassConfig as closely as possible.

Reviewers: heiher, SixWeining

Pull Request: https://github.com/llvm/llvm-project/pull/244946
DeltaFile
+169-0llvm/lib/Target/LoongArch/LoongArchCodeGenPassBuilder.cpp
+143-0llvm/test/CodeGen/LoongArch/newpm-pipeline.ll
+21-0llvm/lib/Target/LoongArch/LoongArchPassRegistry.def
+4-4llvm/lib/Target/LoongArch/LoongArchTargetMachine.cpp
+8-0llvm/lib/Target/LoongArch/LoongArchTargetMachine.h
+2-0llvm/lib/Target/LoongArch/CMakeLists.txt
+347-46 files

LLVM/project 7331619 — clang/lib/StaticAnalyzer/Checkers/WebKit PtrTypesSemantics.cpp

[analyzer][NFC] Use any_of/all_of in WebKit PtrTypesSemantics (#246873)

Assisted-by: Claude Code
DeltaFile
+31-35clang/lib/StaticAnalyzer/Checkers/WebKit/PtrTypesSemantics.cpp
+31-351 files

LLVM/project 301d715 — llvm/lib/Transforms/Vectorize/SLPVectorizer SLPTree.h

[SLP][modularisation][NFC] Make BoUpSLP::getORE const
DeltaFile
+1-1llvm/lib/Transforms/Vectorize/SLPVectorizer/SLPTree.h
+1-11 files

LLVM/project eef4c8b — clang/include/clang/StaticAnalyzer/Core/PathSensitive ExprEngine.h LoopUnrolling.h, clang/lib/StaticAnalyzer/Core ExprEngine.cpp LoopUnrolling.cpp

[analyzer][NFC] Cache the AST-only part of the loop unrolling decision (#246977)

- With `unroll-loops=true`, `updateLoopStack()` runs
  `shouldCompletelyUnroll()` every time a path enters a loop.
- Its first half is a pure function of the loop's AST: it rebuilds the
  large `forLoopMatcher()` tree, matches it, and evaluates the bound.
- Memoize that half per loop in a `LoopUnrollingCache` owned by `ExprEngine`.
- The path-dependent `isPossiblyEscaped()` still runs on every entry,
  but now builds its matcher once per call instead of once per visited
  statement.
- `unroll-loops` is off by default, so only users enabling it benefit.

Analysis-time impact (instructions retired in millions,
`unroll-loops=true`; inputs are the reproducers from
llvm/llvm-project#105512; ON = default graph trimming, OFF =
`graph-trim-interval=0`):

    file                           mode  before   after   change
    ruby-unicode.c                 ON    22710    21334   -6.1%

    [11 lines not shown]
DeltaFile
+37-15clang/lib/StaticAnalyzer/Core/LoopUnrolling.cpp
+20-2clang/include/clang/StaticAnalyzer/Core/PathSensitive/LoopUnrolling.h
+6-2clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExprEngine.h
+2-1clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
+65-204 files

LLVM/project 5d6c516 — llvm/lib/Transforms/Vectorize CMakeLists.txt SLPVectorizer.cpp, llvm/lib/Transforms/Vectorize/SLPVectorizer SLPTree.h SLPTree.cpp

[SLP][modularisation][NFC] Move big BoUpSLP definitions to SLPTree.cpp
DeltaFile
+1,211-0llvm/lib/Transforms/Vectorize/SLPVectorizer/SLPTree.cpp
+15-1,181llvm/lib/Transforms/Vectorize/SLPVectorizer/SLPTree.h
+1-7llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+1-0llvm/lib/Transforms/Vectorize/CMakeLists.txt
+1,228-1,1884 files

LLVM/project f46dc10 — llvm/lib/Transforms/Vectorize SLPVectorizer.cpp, llvm/lib/Transforms/Vectorize/SLPVectorizer SLPTree.h

[SLP][modularisation][NFC] Move BoUpSLP class definition to SLPTree.h

Move the BoUpSLP class definition and its nested types out of
SLPVectorizer.cpp into the internal header SLPVectorizer/SLPTree.h. Method
definitions outside the class body stay in SLPVectorizer.cpp.

The header is self-contained: it compiles as the only include of a
translation unit and does not depend on anything SLPVectorizer.cpp defines
before including it.

- The limits MaxMemDepDistance and MinScheduleRegionSize, used by inline
  scheduler code, move with the class and become static constexpr.
- ReductionVectorPart moves with the class, since BoUpSLP::vectorizeTree
  and removeInstructionsAndOperands take ArrayRef<ReductionVectorPart>.
- DenseMapInfo<BoUpSLP::EdgeInfo> moves after the class, since inline
  BoUpSLP code instantiates maps keyed on EdgeInfo.
- The header defines DEBUG_TYPE for the LLVM_DEBUG uses in the inline
  scheduler code and undefines it at the end.
- getShallowScore gets a function-local PatternMatch using-directive.

    [7 lines not shown]
DeltaFile
+5,804-0llvm/lib/Transforms/Vectorize/SLPVectorizer/SLPTree.h
+1-5,726llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+5,805-5,7262 files

LLVM/project 1386dd0 — llvm/lib/Transforms/Vectorize SLPVectorizer.cpp, llvm/lib/Transforms/Vectorize/SLPVectorizer SLPReductionUtils.h

[SLP][modularisation][NFC] Keep ReductionVectorPart local to SLPVectorizer.cpp
DeltaFile
+30-0llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+0-29llvm/lib/Transforms/Vectorize/SLPVectorizer/SLPReductionUtils.h
+30-292 files

LLVM/project f685be6 — llvm/test/CodeGen/X86 vector-shuffle-combining-ssse3.ll psadbw.ll

[X86] Add test coverage for #245048 (part 2) (NFC) (#247144)

More test coverage for #245048. These cases change with it: VZEXT_MOVL
of an and with a constant pool load, of compares and ands of fptosi
results, of an abs or an and of a VTRUNC, of movd/movq loads, and of
PSADBW, PMULUDQ and PHADD results, unary shuffles of a binop with a
VTRUNC operand, and a splat udiv constant under optsize that loses its
broadcast.

Assisted-by: Claude Code (Claude Opus 5.5)
DeltaFile
+142-0llvm/test/CodeGen/X86/vector-shuffle-combining.ll
+86-0llvm/test/CodeGen/X86/vector-idiv-udiv-128.ll
+60-0llvm/test/CodeGen/X86/vector-shuffle-combining-avx512bwvl.ll
+47-0llvm/test/CodeGen/X86/atomic-load-store-wide.ll
+31-0llvm/test/CodeGen/X86/psadbw.ll
+20-0llvm/test/CodeGen/X86/vector-shuffle-combining-ssse3.ll
+386-06 files

LLVM/project e23a1ad — clang/include/clang/Basic DiagnosticSemaKinds.td BuiltinTraits.td, clang/lib/Sema SemaTypeTraits.cpp

[Clang] Added explanation why is_trivially_copy_constructible evaluated to false (#225487)

Clang now adds notes explaining why is_trivially_copy_constructible fails.

An internal-only trait `IsTriviallyCopyConstructible` is also added to `BuiltinTraits.td`,
with only a `StdName`, to reuse the existing std name table mapping machinery.

Part of #141911.

I used an AI assistant to understand the relevant
parts of Clang and to review my changes.

Co-authored-by: Darshan N <Darshan.N3 at ibm.com>
DeltaFile
+79-0clang/test/SemaCXX/type-traits-unsatisfied-diags-std.cpp
+76-0clang/lib/Sema/SemaTypeTraits.cpp
+7-0clang/include/clang/Basic/BuiltinTraits.td
+5-0clang/include/clang/Basic/DiagnosticSemaKinds.td
+167-04 files

LLVM/project 57e954b — mlir/lib/Dialect/LLVMIR/Transforms InlinerInterfaceImpl.cpp, mlir/test/Dialect/LLVMIR inlining-debuginfo.mlir

[MLIR] Fix inlining with missing debug locations (#244207)

Inlining a function without debug info into a caller with debug info can
leave nested calls without required locations. Use line-zero fallback
locations in MLIR to preserve caller scope. Add regression tests.

Assisted-by: Codex
DeltaFile
+43-1mlir/test/Dialect/LLVMIR/inlining-debuginfo.mlir
+20-0mlir/lib/Dialect/LLVMIR/Transforms/InlinerInterfaceImpl.cpp
+63-12 files

LLVM/project d296512 — llvm/lib/Analysis Loads.cpp

More reworgind
DeltaFile
+10-9llvm/lib/Analysis/Loads.cpp
+10-91 files

LLVM/project 6e44155 — mlir/lib/Dialect/Bufferization/Transforms Bufferize.cpp

[mlir][bufferization][NFC] Remove dead options branch in OneShotBufferizePass (#247013)

PR #129850 removed the `OneShotBufferizePass` constructor that took a
`OneShotBufferizationOptions`, but kept the private member `options`. It
is always equal to `std::nullopt` and therefore the branch inside
`runOnOperation` becomes redundant as it always takes `if (!options)`
and never reaches `else` block. Remove the unused member `options` and
the `if` statement at the start of the `runOnOperation`.
DeltaFile
+71-81mlir/lib/Dialect/Bufferization/Transforms/Bufferize.cpp
+71-811 files

LLVM/project 1721605 — mlir/lib/Dialect/Bufferization/Transforms FuncBufferizableOpInterfaceImpl.cpp, mlir/test/Dialect/Bufferization/Transforms one-shot-module-bufferize-encodings-invalid.mlir one-shot-module-bufferize-memory-space-invalid.mlir

[mlir][bufferization] Fix memory space crash at function boundaries (#246906)

With `bufferize-function-boundaries`, computing the bufferized types of
function arguments and results dereferences the value returned by
`options.defaultMemorySpaceFn` without checking it. The callback returns
`std::nullopt` under `must-infer-memory-space`, and for unranked tensors
under `use-encoding-for-memory-space`, so both cases crash.

Instead, emit "could not infer memory space for argument #N" (or "result
#N") on the function and propagate the failure, as ops inside function
bodies already do.

Assisted-by: Claude
DeltaFile
+45-23mlir/lib/Dialect/Bufferization/Transforms/FuncBufferizableOpInterfaceImpl.cpp
+36-0mlir/test/Dialect/Bufferization/Transforms/one-shot-module-bufferize-memory-space-invalid.mlir
+20-0mlir/test/Dialect/Bufferization/Transforms/one-shot-module-bufferize-encodings-invalid.mlir
+101-233 files

LLVM/project be10263 — clang/lib/StaticAnalyzer/Core RangeConstraintManager.cpp

Use explicit range cache everywhere
DeltaFile
+14-15clang/lib/StaticAnalyzer/Core/RangeConstraintManager.cpp
+14-151 files

LLVM/project 282c5ff — clang/lib/CodeGen CGOpenMPRuntime.cpp, clang/lib/Sema SemaOpenMP.cpp

Revert "Revert "[Clang][OpenMP] Allow array shaping as the base of array sect…"

This reverts commit 58d63c98d1d527a269eb93863916615087471742.
DeltaFile
+1,626-1,617clang/test/OpenMP/task_codegen.cpp
+364-0clang/test/OpenMP/GH136294.c
+141-40clang/lib/Sema/SemaOpenMP.cpp
+60-14clang/lib/CodeGen/CGOpenMPRuntime.cpp
+55-8clang/test/OpenMP/target_update_to_messages.cpp
+53-7clang/test/OpenMP/target_update_from_messages.cpp
+2,299-1,68613 files not shown
+2,452-1,72019 files

LLVM/project ea8f620 — mlir/include/mlir/Dialect/LLVMIR NVVMEnums.td NVVMOps.td, mlir/lib/Dialect/LLVMIR/IR NVVMAsyncCopyOps.cpp

[MLIR][NVVM] Add support for alloc_class in tensormap.replace (#245657)

This change adds:

- The `tensormap.replace.alloc_class` NVVM Op to specify the allocation
class of the tensormap object, which lowers to the
`llvm.nvvm.tensormap.replace.alloc.class` intrinsic with the appropriate
`alloc_class` argument.
- The `alloc_class` optional attribute to the `tensormap.replace` Op to
lower to the `llvm.nvvm.tensormap.replace.global.address` intrinsic when
specified with the `global_address` field.
- The `tensormap.query.alloc_class_large` NVVM Op to query the
allocation class of a tensormap object, which lowers to the
`llvm.nvvm.tensormap.query.alloc.class.large` intrinsic.

PTX Spec Reference:
-
[tensormap.replace](https://docs.nvidia.com/cuda/parallel-thread-execution/index.html#data-movement-and-conversion-instructions-tensormap-replace)
-
[tensormap.query.alloc.class.large](https://docs.nvidia.com/cuda/parallel-thread-execution/index.html#data-movement-and-conversion-instructions-tensormap-query-alloc-class-large)
DeltaFile
+80-3mlir/include/mlir/Dialect/LLVMIR/NVVMOps.td
+52-0mlir/test/Target/LLVMIR/nvvm/tensormap_query.mlir
+38-4mlir/lib/Dialect/LLVMIR/IR/NVVMAsyncCopyOps.cpp
+32-0mlir/test/Target/LLVMIR/nvvm/tensormap_replace.mlir
+25-0mlir/include/mlir/Dialect/LLVMIR/NVVMEnums.td
+20-0mlir/test/Dialect/LLVMIR/nvvm_check_target_sm.mlir
+247-75 files not shown
+297-911 files

LLVM/project d6e8cc6 — llvm/lib/Analysis Loads.cpp

Reword
DeltaFile
+4-3llvm/lib/Analysis/Loads.cpp
+4-31 files

LLVM/project f15a5d0 — llvm/lib/Target/X86/GISel X86LegalizerInfo.cpp, llvm/test/CodeGen/X86 isel-ctpop-vec.ll

[GlobalISel][X86] Fix legalizer abort on vector G_CTPOP (#235976)

Fixes #220802.

X86: mark vector `G_CTPOP` legal with AVX512VPOPCNTDQ (D/Q) or
AVX512BITALG
(B/W) at 128/256/512 bits. Without VLX the `avx512_unary_lowering`
widening
patterns in `X86InstrAVX512.td` select the 512-bit instruction; other
vector
forms are still reported unsupported instead of crashing.

AI tool use: developed with Codex CLI assistance under the contributor's
direction.
DeltaFile
+198-0llvm/test/CodeGen/X86/isel-ctpop-vec.ll
+20-0llvm/lib/Target/X86/GISel/X86LegalizerInfo.cpp
+218-02 files

LLVM/project 9a1ce17 — llvm/test/CodeGen/AMDGPU expert_scheduling_gfx12.mir waitcnt-vavdst-exec.mir

[AMDGPU] Precommit tests for VA_VDST across EXEC writes

Record current waitcnt behavior for VALU dependencies across EXEC writes.

Assisted-by: Claude
DeltaFile
+1,351-0llvm/test/CodeGen/AMDGPU/waitcnt-vavdst-exec.mir
+78-0llvm/test/CodeGen/AMDGPU/expert_scheduling_gfx12.mir
+1,429-02 files

LLVM/project 7bc5690 — mlir/lib/Dialect/Tensor/IR TensorOps.cpp, mlir/test/Dialect/Tensor canonicalize.mlir

[mlir][Tensor] Don't merge pads with negative constant padding (#246957)

FoldConsecutiveConstantPadding adds up the paddings of two consecutive
tensor.pad ops. When both paddings are constants, the sum is folded into
the static attribute. A negative constant padding is valid IR as long as
it is passed as an SSA operand (#231389), but merging such a pad can
produce a negative static padding, which PadOp::verify rejects. So
canonicalization turns IR that verifies into IR that does not:

  %c = arith.constant -3 : index
%0 = tensor.pad %t low[2] high[0] {...} : tensor<4xf32> to tensor<6xf32>
%1 = tensor.pad %0 low[%c] high[0] {...} : tensor<6xf32> to
tensor<?xf32>

  error: 'tensor.pad' op padding must be non-negative, got -1

Do not merge the two ops if either of them has a negative constant
padding. This matches FoldStaticPadding, which keeps negative constants
as SSA operands. An AI assistant was used to help find and fix this, and
I have reviewed the change.
DeltaFile
+71-0mlir/test/Dialect/Tensor/canonicalize.mlir
+17-0mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
+88-02 files

LLVM/project 5ddc393 — llvm/test/CodeGen/AMDGPU expert_scheduling_gfx12.mir waitcnt-vavdst-exec.mir

[AMDGPU] Precommit tests for VA_VDST across EXEC writes

Record current waitcnt behavior for VALU dependencies across EXEC writes.

Assisted-by: Claude
DeltaFile
+1,250-0llvm/test/CodeGen/AMDGPU/waitcnt-vavdst-exec.mir
+78-0llvm/test/CodeGen/AMDGPU/expert_scheduling_gfx12.mir
+1,328-02 files

LLVM/project e9fd290 — llvm/lib CMakeLists.txt, llvm/lib/FuzzMutate OpDescriptor.cpp

[FuzzMutate] Remove -use-undef (#247129)

As undef is deprecated, we no longer care about undef bugs found by
fuzzers. Remove the untested -use-undef option added in
https://github.com/llvm/llvm-project/pull/84959, it seems pointless to
port this to the new options system. This remove the use of global ctors
from LLVMFuzzMutate.
DeltaFile
+0-7llvm/lib/FuzzMutate/OpDescriptor.cpp
+0-1llvm/lib/CMakeLists.txt
+0-82 files

LLVM/project 51ef29f — llvm/lib/CodeGen/SelectionDAG DAGCombiner.cpp, llvm/test/CodeGen/X86 vector-extload-freeze.ll avx512-ext.ll

[SelectionDAG] Look through freeze in CombineExtLoad

Folding an extend of an illegally-wide vector into extending loads only
matched when the extend operand was the load itself. A boolean select is
combined to an OR of a frozen operand and the freeze is pushed down to the
load, so the fold was skipped: the load stayed a plain vector load and each
half of the widened result needed an extract and a register-form extend.

Look through a single-use freeze and re-apply it to the split result.
Freeze is element-wise and extends are deterministic, so freezing the split
loads is equivalent to freezing the extended value.

For the loop in #245064 this replaces four 512-bit loads with their extracts
and register-form vpmovzxwd by memory-form vpmovzxwd, going from 57 to 49
instructions per 128 elements.

Adds llvm/test/CodeGen/X86/vector-extload-freeze.ll and updates the
existing avx512-ext.ll checks.

Fixes #245064
DeltaFile
+8-16llvm/test/CodeGen/X86/avx512-ext.ll
+5-10llvm/test/CodeGen/X86/vector-extload-freeze.ll
+12-1llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+25-273 files

LLVM/project f89f0bb — llvm/lib/CodeGen/SelectionDAG DAGCombiner.cpp, llvm/test/CodeGen/X86 vector-extload-freeze.ll

fixup! [SelectionDAG] Look through freeze in CombineExtLoad
DeltaFile
+55-2llvm/test/CodeGen/X86/vector-extload-freeze.ll
+5-1llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+60-32 files

LLVM/project ce34615 — llvm/test/CodeGen/X86 vector-extload-freeze.ll

[X86] Add a precommit test for a frozen split extload
DeltaFile
+35-0llvm/test/CodeGen/X86/vector-extload-freeze.ll
+35-01 files

LLVM/project 2c7efd6 — mlir/include/mlir/Dialect/Tensor/IR TensorOps.td, mlir/lib/Dialect/Arith/Transforms IntRangeOptimizations.cpp

[mlir][tensor] Implement InferIntRangeInterface for scalar/tensor bridge ops (#247004)

Implement integer range inference for `tensor.extract`,
`tensor.from_elements`, `tensor.insert`, and `tensor.splat`, mirroring
the existing `vector` dialect implementations. The range of a tensor
value bounds all of its elements, so:

- `tensor.extract` and `tensor.splat` forward the range of their
  tensor/scalar input.
- `tensor.insert` produces the union of the scalar and destination
  ranges.
- `tensor.from_elements` produces the union of the element ranges, or
  the maximal range for an empty tensor.

This lets integer range analysis flow through scalars that are
round-tripped through tensors, including single-element tensors such as
`tensor<i32>` operated on by elementwise `arith` ops.

Since dynamically shaped tensors can now have a known constant range,

    [6 lines not shown]
DeltaFile
+119-0mlir/test/Dialect/Tensor/int-range-inference.mlir
+38-54mlir/lib/Dialect/Arith/Transforms/IntRangeOptimizations.cpp
+45-0mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
+4-0mlir/include/mlir/Dialect/Tensor/IR/TensorOps.td
+206-544 files

LLVM/project d03157a — clang/include/clang/StaticAnalyzer/Core/PathSensitive ProgramState.h, clang/lib/StaticAnalyzer/Core RangeConstraintManager.cpp

[analyzer][NFC] Memoize inferred symbol ranges per ProgramState

The inferred range of a symbol is a pure function of the ProgramState, yet
simplifying an SVal queries the range of every sub-expression again and again
against the same state. Memoize the ranges for the most recently queried
state in RangeConstraintManager (a DenseMap<SymbolRef, RangeSet> plus the
state it belongs to; it is cleared when a different state is queried).
SymbolicRangeInferrer takes the cache as an optional, nullable pointer; the
static inferRange() call sites pass none (a stack-local cache there never got
a lookup: 0 hits over 76406 instances on the corpus below).

Why this is safe: the cache holds a ProgramStateRef, so the state stays alive
and its address cannot be recycled for a different state while it is the
cache key. To make that hold at destruction time, ConstraintMgr is now
declared last in ProgramStateManager and is destroyed first, while the state
set, the allocator and the GDM contexts are still alive. ~ProgramStateManager
is declared out of line because the defaulted one needs the complete types
used by the members. Behavior is unchanged: the diagnostics are
byte-identical on every input below, and check-clang-analysis passes

    [72 lines not shown]
DeltaFile
+38-12clang/lib/StaticAnalyzer/Core/RangeConstraintManager.cpp
+5-1clang/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h
+43-132 files

LLVM/project 5163563 — clang/include/clang/StaticAnalyzer/Core/PathSensitive ProgramState.h, clang/lib/StaticAnalyzer/Core ProgramState.cpp

[analyzer][NFC] Let GDMContextsTy destroy the GDM contexts (#246899)

ProgramStateManager destroyed its GDM contexts by hand in its
destructor. Make GDMContextsTy a small non-copyable class that owns the
map and destroys the contexts in its own destructor, so the ownership is
expressed by the member rather than by the enclosing destructor.

Assisted-by: Claude
DeltaFile
+24-2clang/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h
+7-11clang/lib/StaticAnalyzer/Core/ProgramState.cpp
+31-132 files

LLVM/project 9b139f4 — llvm/test/CodeGen/ARM machine-outliner-lr-debug-value.mir, mlir/lib/Dialect/NVGPU/Transforms CreateAsyncGroups.cpp

Merge branch 'main' into users/chfast/x86-vzext-movl-tests-2
DeltaFile
+103-0mlir/test/Dialect/NVGPU/transform-create-async-groups.mlir
+25-5mlir/lib/Dialect/NVGPU/Transforms/CreateAsyncGroups.cpp
+5-2llvm/test/CodeGen/ARM/machine-outliner-lr-debug-value.mir
+133-73 files

LLVM/project 204ad14 — llvm/lib/Transforms/Utils LoopUtils.cpp, llvm/test/Transforms/LoopVectorize runtime-checks-difference-rmw-hoist.ll runtime-checks-hoist-same-outer-step.ll

[LoopUtils] Check the first outer iteration for co-moving pointer groups

When runtime checks are hoisted out of the outer loop, the range of each
pointer group is widened to cover all iterations of the outer loop. If both
groups of a check advance by the same step in the outer loop, e.g. two rows
of the same image:

```cpp
for (y = 0; y < H; y += 2)
  for (x = 0; x < n; x++) {
    img[y*S + 3*x]     = ...;
    img[(y+1)*S + 3*x] = ...;
  }
```

the widened ranges overlap as soon as the outer loop runs twice, so the
check always fails and the vector loop never runs.

If all bounds of both groups are affine AddRecs of the outer loop with the

    [7 lines not shown]
DeltaFile
+42-94llvm/test/Transforms/LoopVectorize/runtime-checks-hoist.ll
+63-15llvm/test/Transforms/LoopVectorize/AArch64/low_trip_memcheck_cost.ll
+22-29llvm/test/Transforms/LoopVectorize/runtime-checks-hoist-same-outer-step.ll
+22-3llvm/lib/Transforms/Utils/LoopUtils.cpp
+2-3llvm/test/Transforms/PhaseOrdering/AArch64/matrix-extract-insert.ll
+2-3llvm/test/Transforms/LoopVectorize/runtime-checks-difference-rmw-hoist.ll
+153-1476 files