LLVM/project eb8279c — clang/lib/CodeGen CGDebugInfo.cpp CGExpr.cpp

[spr] update

Created using spr 2.0.0-beta.2
DeltaFile
+65-62clang/lib/CodeGen/SanitizerHandler.h
+11-8clang/lib/CodeGen/CGExpr.cpp
+1-1clang/lib/CodeGen/CGDebugInfo.cpp
+77-713 files

LLVM/project febb473 — lld/ELF Driver.cpp, lld/test/ELF undefined-glob.s

[lld][ELF] Parallelize --undefined-glob symbol table search (#244065)

Currently, for each `--undefined-glob` option, we search the global
symbol table for matching symbols on a single thread. This change
matches the glob pattern against all symbols in parallel, recording the
result in a per-symbol byte array. handleUndefined is still called
serially, in symbol table order, so archive member extraction and
`--why-extract` output are deterministic regardless of the thread count.
Also add a TimeTraceScope for the `--undefined-glob` handling.

On large internal C++ executables linked with two `--undefined-glob`
patterns, wall time decreases by 3-7% with 8 threads and is unchanged
with a single thread. CPU time and peak memory are unchanged, and the
output is byte-identical.

Assisted-by: Gemini
Co-authored-by: Fangrui Song <i at maskray.me>
DeltaFile
+14-11lld/ELF/Driver.cpp
+9-0lld/test/ELF/undefined-glob.s
+23-112 files

LLVM/project c03a45e — compiler-rt/lib/lsan lsan_common.cpp, compiler-rt/lib/sanitizer_common sanitizer_tls_get_addr.cpp

[sanitizer] Fix DTLS tracking and LSan scanning after dlclose (#242893)

When a dynamically loaded module using dynamic TLS (DTLS) is unloaded
via dlclose(), glibc marks its TLS slot (dso_id) free and lazily frees
or unmaps the thread's DTLS block inside _dl_update_slotinfo on a
subsequent __tls_get_addr or static-TLS dlopen() call.

Two bugs arise from this lifecycle:

1. DTLS_on_tls_get_addr returned early whenever dtv->beg was already
   non-zero. When a newly loaded module reused a dlclose()d dso_id, the
   thread's DTLS entry kept the stale range from the unloaded module and
   failed to record (or reset shadow memory for) the new module's DTLS
   block.

2. _dl_update_slotinfo can free or unmap an unloaded module's DTLS block
   when __tls_get_addr is called for a different module, without
   __tls_get_addr ever running again for the unloaded dso_id. At leak
   check time, LeakSanitizer scanned that stale DTLS range and crashed

    [19 lines not shown]
DeltaFile
+131-0compiler-rt/test/asan/TestCases/Linux/dlclose_dtls.cpp
+24-8compiler-rt/lib/sanitizer_common/sanitizer_tls_get_addr.cpp
+25-4compiler-rt/lib/lsan/lsan_common.cpp
+180-123 files

LLVM/project cb954e2 — clang/lib/CodeGen CGDecl.cpp, clang/test/CodeGen init-memset.c init.c

[Clang][CodeGen] Use bzero+stores for inits with global pointers (#240876)

Clang tries to emit bzero() + few stores to initialise structs that are
mostly zeroes. But this logic trips when struct has pointers to globals.

Count GlobalValue as emittable with a single store within the same store
count budget as before. The list of everything that is counted as a
single store is moved to the canEmitAsSingleStore() helper to keep the
list in one place, since it is shared by both
canEmitInitWithFewStoresAfterBZero() and emitStoresForInitAfterBZero().

This change is motivated by code in the Linux kernel, where struct
futex_q has a function pointer member in the initialization list and
clang refuses to emit memset(), despite the fact only 4 member of struct
futex_q are initialized.
DeltaFile
+18-0clang/test/CodeGen/init.c
+8-6clang/lib/CodeGen/CGDecl.cpp
+1-1clang/test/CodeGen/init-memset.c
+27-73 files

LLVM/project cac6e49 — llvm/lib/Transforms/Vectorize VectorCombine.cpp, llvm/test/Transforms/VectorCombine deinterleave-interleave-tree.ll

[VectorCombine] Support limited cases of loop-invariant splats in interleave of deinterleave combine
DeltaFile
+167-0llvm/test/Transforms/VectorCombine/deinterleave-interleave-tree.ll
+53-8llvm/lib/Transforms/Vectorize/VectorCombine.cpp
+220-82 files

LLVM/project 84ab475 — libcxx/include/__memory shared_ptr.h, libcxx/test/libcxx/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create make_shared.array.unbounded.allocation_size.pass.cpp allocate_shared.array.unbounded.allocation_size.pass.cpp

[libc++] Fix allocation size for shared_ptr (#244063)

Every std::make_shared<T[]>(N) / std::make_shared_for_overwrite<T[]>(N)
/ std::allocate_shared<T[]>(...) call with N > 1 over-allocates by
sizeof(__unbounded_array_control_block) / sizeof(_Tp) (40x for
uint8_t[]: compiler-verified 16,777,256 bytes → 671,088,640 bytes for a
16 MiB array).

Co-authored / Fix suggested by @googlewalt 

Fixes commit bf92e35c9a86b2cee2e7dc85e36ba137ae0c80ac /
https://github.com/llvm/llvm-project/pull/234585

---------

Co-authored-by: Nikolas Klauser <nikolasklauser at berlin.de>
DeltaFile
+83-0libcxx/test/libcxx/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/allocate_shared.array.unbounded.allocation_size.pass.cpp
+81-0libcxx/test/libcxx/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/make_shared.array.unbounded.allocation_size.pass.cpp
+37-0libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/allocate_shared.array.unbounded.pass.cpp
+31-0libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/make_shared.array.unbounded.pass.cpp
+14-10libcxx/test/support/test_allocator.h
+1-2libcxx/include/__memory/shared_ptr.h
+247-126 files

LLVM/project c396f34 — clang/test/CodeGenCUDA grid-constant.cu, clang/test/OpenMP target_vtable_codegen_explicit.cpp nvptx_target_parallel_reduction_codegen_tbaa_PR46146.cpp

[TargetParser][PGO] NVPTX does not support COMDAT

I am attempting to resurrect PR #143568 to extend GPU profiling
support to NVIDIA GPU.  I will propose my solution for that upstream
later.  First, I am proposing orthogonal fixes that my solution
requires, like this patch.

After applying PR #143568 locally, I tested
`clang -fprofile-generate -fopenmp --offload-arch=native`
in the case of multiple compilation units and encountered errors like:

```
nvlink error   : Multiple definition of '__llvm_profile_raw_version' in '/tmp/io-nvptx64-nvidia-cuda-sm_70-2ebb59-bcb78d.cubin', first defined in '/tmp/XSBench.nvptx64.sm_70-bfa707-08c8d5.cubin'
```

The problem is that `PGOInstrumentation.cpp`'s
`createIRLevelProfileFlagVar` creates that as a COMDAT variable due to
the result of `Triple::supportsCOMDAT`, which this patch fixes to
return false for NVPTX.  That fix addresses the same problem for other

    [10 lines not shown]
DeltaFile
+11-11clang/test/OpenMP/target_vtable_codegen_memberexpr_codegen.cpp
+21-0llvm/test/Transforms/PGOProfile/NVPTX/comdat.ll
+10-10clang/test/OpenMP/nvptx_target_parallel_reduction_codegen_tbaa_PR46146.cpp
+16-4clang/test/CodeGenCUDA/grid-constant.cu
+7-8clang/test/OpenMP/target_vtable_codegen_explicit.cpp
+5-1llvm/include/llvm/TargetParser/Triple.h
+70-347 files not shown
+81-4313 files

LLVM/project 5c5f2d0 — llvm/lib/Transforms/Vectorize VPlanTransforms.cpp, llvm/test/Transforms/LoopVectorize early-exit-tail-folding.ll

[VPlan] Remove header masks whose tail lanes aren't used

Replace a use of header-mask && x with x if the user, transitively
through freeze, logical-and, not and mask.beforefirst(freeze ...), only
reaches masks that are and'ed with the header mask again. The header
mask is a prefix and lane i of mask.beforefirst only depends on lanes
0..i, so the lanes outside of the header mask are never used.

This avoids the i1 vp.merge that EVL tail folding needs for the inner
header mask, e.g. in the early exit mask.beforefirst(freeze(header-mask
&& c)) and in switch default edges.
DeltaFile
+39-0llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+2-4llvm/test/Transforms/LoopVectorize/early-exit-tail-folding.ll
+2-4llvm/test/Transforms/LoopVectorize/RISCV/early_exit_with_stores.ll
+2-4llvm/test/Transforms/LoopVectorize/RISCV/early-exit.ll
+1-2llvm/test/Transforms/LoopVectorize/RISCV/zvl1024b-crash.ll
+46-145 files

LLVM/project 45fa282 — llvm/lib/Transforms/Vectorize LoopVectorizationLegality.cpp LoopVectorize.cpp, llvm/test/Transforms/LoopVectorize early_exit_store_legality.ll early-exit-tail-folding.ll

[VPlan] Allow tail folding early exits with side effects

Continues the work in #179595.

This allows us to tail fold e.g. the following loop:

```c
extern char a[1024], b[1024], c[1024], y[1024];
void two_guards(void) {
  for (int i = 0; i < 1000; i++) {
    if (a[i] == 0)
      break;
    if (b[i] > 3) {
      if (c[i] < 9)
        y[i] = 1;
    }
  }
}
```

    [30 lines not shown]
DeltaFile
+40-70llvm/test/Transforms/LoopVectorize/early-exit-tail-folding.ll
+24-41llvm/test/Transforms/LoopVectorize/RISCV/early_exit_with_stores.ll
+18-35llvm/test/Transforms/LoopVectorize/RISCV/early-exit.ll
+24-0llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+0-7llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
+2-2llvm/test/Transforms/LoopVectorize/early_exit_store_legality.ll
+108-1552 files not shown
+111-1578 files

LLVM/project 8a89838 — llvm/test/Transforms/LoopVectorize early-exit-tail-folding.ll

Precommit tests
DeltaFile
+214-153llvm/test/Transforms/LoopVectorize/early-exit-tail-folding.ll
+214-1531 files

LLVM/project f982032 — llvm/test/Transforms/LoopVectorize early-exit-tail-folding-active-lane-mask.ll early-exit-tail-folding.ll, llvm/test/Transforms/LoopVectorize/RISCV early-exit.ll

Precommit tests
DeltaFile
+552-0llvm/test/Transforms/LoopVectorize/RISCV/early-exit.ll
+524-0llvm/test/Transforms/LoopVectorize/early-exit-tail-folding.ll
+65-0llvm/test/Transforms/LoopVectorize/early-exit-tail-folding-active-lane-mask.ll
+1,141-03 files

LLVM/project 12dcd09 — llvm/lib/Transforms/Vectorize VPlanConstruction.cpp, llvm/test/Transforms/LoopVectorize multiple-early-exits.ll early-exit-tail-folding.ll

[VPlan] Support tail folding uncountable early exits

Enables the first step towards #179595. After #237254, the MaskedHandleExitInVectorLoop early exit style uses the CFG to handle masking for early exit loops. This allows it to compose with tail folding which is also handled via the CFG in #176143.

This allows us to tail fold the following loop:

```c
extern char x[256];
int f(char * restrict y) {
  for (int i = 0; i < 256; i++) {
    if (x[i] == 0)
      return i;
  }
  return -1;
}
```

Into this on RISC-V:


    [18 lines not shown]
DeltaFile
+88-160llvm/test/Transforms/LoopVectorize/RISCV/early-exit-live-out.ll
+77-149llvm/test/Transforms/LoopVectorize/RISCV/early-exit.ll
+54-105llvm/test/Transforms/LoopVectorize/early-exit-tail-folding.ll
+108-16llvm/test/Transforms/LoopVectorize/multiple-early-exits.ll
+20-37llvm/test/Transforms/LoopVectorize/RISCV/sink-to-early-exit.ll
+32-18llvm/lib/Transforms/Vectorize/VPlanConstruction.cpp
+379-4854 files not shown
+411-49310 files

LLVM/project f1ac491 — llvm/lib/Transforms/Vectorize VPlanConstruction.cpp LoopVectorize.cpp

[VPlan] Use vputils::findCanonicalIVIncrement in more places. NFC

In a future patch we want to enable more scenarios with early exits and tail folding. In these scenarios the terminator will no longer be a BranchOnCount/BranchOnCond but a BranchOnTwoConds, so a bunch of canonical IV matchers break. Use vputils::findCanonicalIVIncrement instead since it searches the users of the canonical IV instead of looking at the terminator.
DeltaFile
+7-13llvm/lib/Transforms/Vectorize/VPlanEVLTailFolding.cpp
+2-9llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+2-8llvm/lib/Transforms/Vectorize/VPlanConstruction.cpp
+11-303 files

LLVM/project b604fb2 — llvm/test/Transforms/LoopVectorize early_exit_with_stores.ll

Precommit tests
DeltaFile
+221-0llvm/test/Transforms/LoopVectorize/early_exit_with_stores.ll
+221-01 files

LLVM/project 5d518fb — llvm/lib/Transforms/Vectorize VPlan.h VPlanTransforms.cpp, llvm/test/Transforms/LoopVectorize early_exit_with_stores.ll

[VPlan] Allow early exit loops with side effects by masking in the vector loop.

When all blocks with side effects are dominated by every early exit, we can vectorize the loop if we mask off any lanes past the exit. We can do this with control flow:

```mermaid
flowchart TD
  header --> exiting
  exiting -->| exit mask | sideeffects --> latch --> latch.split
  exiting -->| !exit mask | latch.split
```

For every early exiting block we add a branch to the latch on `!mask.beforefirst(exitcond)`. This is implemented in UncountableExitStyle::ReadOnly which is now renamed to MaskedHandleExitInVectorLoop.

This is a complementary exit style to MaskedHandleExitInScalarLoop. If any of the side effects aren't dominated by the early exit it still falls back to the scalar loop style, which is why none of the existing early exit side effect tests changed. Masking in loop is profitable for RISC-V and I'm assuming it's also profitable for AArch64 too, but if not then we can add a TTI hook for a preferred exit style.
DeltaFile
+59-76llvm/test/Transforms/LoopVectorize/early_exit_with_stores.ll
+86-33llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+10-9llvm/test/Transforms/LoopVectorize/X86/early_exit_with_stores.ll
+8-7llvm/test/Transforms/LoopVectorize/RISCV/early_exit_with_stores.ll
+5-4llvm/lib/Transforms/Vectorize/VPlan.h
+3-2llvm/unittests/Transforms/Vectorize/VPlanVerifierTest.cpp
+171-1312 files not shown
+176-1338 files

LLVM/project d7fefc2 — llvm/lib/Transforms/Vectorize VPlanVerifier.cpp VPlanTransforms.cpp, llvm/test/Transforms/LoopVectorize predicated-single-exit.ll predicated-early-exits-interleave.ll

[VPlan] Preserve SSA in early exit loops

MaskedCond is used to logically-and the condition to early exit with the current block in-mask. However because we use it in the latch block where the condition isn't defined on all paths, we have to workaround it not being in SSA in the verifier.

This fixes this by using reconstructSSA added in #212209 to preserve SSA in both the exit conditions and live outs in the exit blocks. It also means we get the right exit condition without MaskedCond and allows us to remove the MaskedCond exceptions in the verifier. MaskedCond is still kept since a followup PR will still use it.

One subtle point is that we need to freeze any branch conditions. Any lanes after and including the early exiting lane might contain poison and we can have branches on those poison lanes that didn't we didn't previously branch on in the scalar loop.

There's no miscompile on main today because we coincidentally don't keep SSA so exit conditions are read directly without being polluted by poison stemming from a branch past the early exit. But in this PR the exit conditions are polluted and we can end up with poison in the condition operand of a select, which causes an undefined result for AnyOf even if it freezes its operand. The poison in the branch will also cause problems in future if we decide to preserve uniform control flow and emit branches instead of blends. The exit_cond_merged_after_poison_branch test illustrates this.
DeltaFile
+156-36llvm/test/Transforms/LoopVectorize/predicated-multiple-exits.ll
+24-16llvm/test/Transforms/LoopVectorize/predicated-early-exits-interleave.ll
+26-9llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+1-18llvm/lib/Transforms/Vectorize/VPlanVerifier.cpp
+12-6llvm/test/Transforms/LoopVectorize/predicated-single-exit.ll
+219-855 files

LLVM/project a3b35f5 — llvm/unittests/Transforms/Vectorize VPlanVerifierTest.cpp

Remove old dominance unit test
DeltaFile
+0-18llvm/unittests/Transforms/Vectorize/VPlanVerifierTest.cpp
+0-181 files

LLVM/project 79eefb2 — llvm/lib/Transforms/Vectorize VPlanPredicator.cpp, llvm/test/Transforms/LoopVectorize uniform-blend.ll select-cmp-blend-chain.ll

[VPlan] Peek through nested phi incoming values in computeBlendMasks
DeltaFile
+495-0llvm/test/Transforms/LoopVectorize/predicator.ll
+389-6llvm/test/Transforms/LoopVectorize/VPlan/predicator.ll
+80-11llvm/lib/Transforms/Vectorize/VPlanPredicator.cpp
+81-0llvm/test/Transforms/LoopVectorize/find-last.ll
+13-3llvm/test/Transforms/LoopVectorize/select-cmp-blend-chain.ll
+3-12llvm/test/Transforms/LoopVectorize/uniform-blend.ll
+1,061-326 files

LLVM/project 17701e4 — llvm/test/Transforms/LoopVectorize blend-i1.ll

Precommit tests
DeltaFile
+69-0llvm/test/Transforms/LoopVectorize/blend-i1.ll
+69-01 files

LLVM/project 6095ce0 — llvm/lib/Transforms/Vectorize VPlanTransforms.cpp, llvm/test/Transforms/LoopVectorize blend-i1.ll

[VPlan] Simplify BLEND X/M, false, ..., false -> M && X

If an i1 blend has false for all but one incoming value, then we can simplify this to the one non-false value. Blends by construction never have any overlapping mask values, so we don't need to worry about the order as the masks can't "shortcut" each other.
DeltaFile
+13-0llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+3-8llvm/test/Transforms/LoopVectorize/blend-i1.ll
+16-82 files

LLVM/project c5b8e3c — llvm/lib/Transforms/Vectorize VPlanTransforms.cpp, llvm/test/Transforms/LoopVectorize interleave_uncountable_exits.ll

[VPlan] Move extract-lane(0, canWideIV) combine before unrolling

Some extract-lane combines can't be performed before unrolling, e.g. the one that combines it to Instruction::ExtractElement can end up extracting from a different part. But the extract-lane(0, canWideIV) can because at index 0 you're always extracting from the first part. Do this before unrolling, which improves codegen of unrolled code.
DeltaFile
+16-24llvm/test/Transforms/LoopVectorize/VPlan/early_exit_with_stores_vplan.ll
+4-12llvm/test/Transforms/LoopVectorize/interleave_uncountable_exits.ll
+6-6llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+26-423 files

LLVM/project a631dff — clang/include/clang/CIR/Dialect/IR CIRAttrs.td, clang/test/CIR/CodeGen fast-math-constrained.c pragma-fenv_access.c

[CIR] Shorten the #cir.fenv parameter names

Rename the #cir.fenv parameters dynamic_rounding_mode, except_mode and
strict_except to rounding, except and strict, so a constrained op prints as
fenv<rounding = tonearest, except = unknown, strict = true>. The fields stay
optional with the same meaning and defaults; the OrDefault helpers follow the
new getter names. No functional change.

Assisted-by: Claude Code (Opus 5.5).
DeltaFile
+392-392clang/test/CIR/CodeGen/pragma-fenv_access.c
+61-61clang/test/CIR/Lowering/fenv.cir
+54-54clang/test/CIR/IR/fenv.cir
+22-27clang/include/clang/CIR/Dialect/IR/CIRAttrs.td
+24-24clang/test/CIR/CodeGen/fast-math-constrained.c
+16-17clang/unittests/CIR/FenvOpTest.cpp
+569-57522 files not shown
+663-67128 files

LLVM/project c29fbae — clang/include/clang/CIR/Dialect/IR CIROps.td, clang/test/CIR/Transforms complex-fenv-effects.cir

[CIR] Give complex FP add/sub the fenv memory effects

cir.complex.fadd and cir.complex.fsub were Pure even with a constrained
fenv attribute, so they could be speculated or erased like unconstrained
ops. Derive them from CIR_FenvOp, as the other fenv ops are: constrained
ops read and write the FP environment and are only conditionally
speculatable, unconstrained ops stay effect-free.

Assisted-by: Claude Code (Opus 5.5).
DeltaFile
+26-0clang/test/CIR/Transforms/complex-fenv-effects.cir
+3-4clang/include/clang/CIR/Dialect/IR/CIROps.td
+29-42 files

LLVM/project 96521ae — clang/include/clang/CIR/Dialect/IR CIRAttrs.td CIROps.td, clang/include/clang/CIR/Interfaces CIROpInterfaces.td

[CIR] Reject the empty fenv attribute

`#cir.fenv<>` with no parameter set was accepted, printed as `fenv<>` and
lowered to a constrained intrinsic, so an unconstrained operation had two
spellings. Give `#cir.fenv` a verifier that requires at least one
parameter, leaving a missing `fenv` attribute as the only way to say an
operation is unconstrained. An absent parameter takes its value in the
default FP environment (tonearest, masked, non-strict). Speculation,
lowering and VecFCmpOp::fold share one FenvAttr::canIgnoreExceptions()
check (masked and not strict): such ops are speculatable, lower to
fpexcept.ignore and fold, and a strict op stays fpexcept.strict even when
masked. Drop FPEnvConstrainedOpInterface, whose only user was FenvOpTrait,
and let the trait read the attribute from the concrete op. Add a
CIR_FenvOp base class carrying the fenv traits and argument, which the
fenv ops prepend their operands to.

Assisted-by: Claude Code (Opus 5.5).
DeltaFile
+46-55clang/include/clang/CIR/Dialect/IR/CIROps.td
+62-0clang/test/CIR/Transforms/vector-cmp-fold.cir
+21-23clang/unittests/CIR/FenvOpTest.cpp
+0-41clang/include/clang/CIR/Interfaces/CIROpInterfaces.td
+18-6clang/include/clang/CIR/Dialect/IR/CIRAttrs.td
+18-3clang/test/CIR/Lowering/fenv.cir
+165-12810 files not shown
+223-17216 files

LLVM/project 29dbd3e — libcxx/include/__memory shared_ptr.h

[libc++] Add _LIBCPP_NO_SANITIZE("cfi-unrelated-cast") to __shared_ptr_emplace::__get_elem() (#244965)

Commit 7083c0637290 ("[libc++] Remove _LIBCPP_COMPRESSED_PAIR/TRIPLE
from shared_ptr (#200401)") refactored `__shared_ptr_emplace` and
dropped `_LIBCPP_NO_CFI` from `__get_elem()`.

`__shared_ptr_emplace`'s constructor calls
`allocator_traits<_Alloc>::construct(__alloc_, __get_elem(), ...)`,
which runs `reinterpret_cast<__value_type*>(__buffer_)` before
placement-new constructs the object in `__buffer_`. When compiling
polymorphic types with `-fsanitize=cfi-unrelated-cast` (e.g. Android's
CFI builds), Clang instruments that cast with `@llvm.type.test(ptr
undef, ...)` on uninitialized storage, causing runtime traps or
cross-DSO `__cfi_slowpath` segfaults on every
`std::make_shared<PolymorphicType>(...)` call.

Following #220296, annotate `__shared_ptr_emplace::__get_elem()` with
`_LIBCPP_NO_SANITIZE("cfi-unrelated-cast")` to narrowly suppress the
false-positive cast check on uninitialized storage.

    [3 lines not shown]
DeltaFile
+3-1libcxx/include/__memory/shared_ptr.h
+3-11 files

LLVM/project edcaf1d — clang/lib/CodeGen SanitizerHandler.h

[spr] update

Created using spr 2.0.0-beta.2
DeltaFile
+34-3clang/lib/CodeGen/SanitizerHandler.h
+34-31 files

LLVM/project d26194b — llvm/lib/Transforms/Vectorize VPlanUnroll.cpp, llvm/test/Transforms/LoopVectorize interleave_uncountable_exits.ll

Address review comments
DeltaFile
+101-101llvm/test/Transforms/LoopVectorize/interleave_uncountable_exits.ll
+3-3llvm/lib/Transforms/Vectorize/VPlanUnroll.cpp
+104-1042 files

LLVM/project 838a8d3 — llvm/lib/Transforms/Vectorize VPlanTransforms.cpp, llvm/test/Transforms/LoopVectorize interleave_uncountable_exits.ll

Expand to ALM
DeltaFile
+10-10llvm/test/Transforms/LoopVectorize/interleave_uncountable_exits.ll
+4-10llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+14-202 files

LLVM/project 9566da3 — llvm/lib/Transforms/Vectorize VPlanLowering.cpp VPlanTransforms.cpp, llvm/test/Transforms/LoopVectorize interleave_uncountable_exits.ll

Move scalar lowering to expandMaskBeforeFirst
DeltaFile
+9-4llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+0-10llvm/lib/Transforms/Vectorize/VPlanLowering.cpp
+1-2llvm/test/Transforms/LoopVectorize/interleave_uncountable_exits.ll
+10-163 files

LLVM/project 02ab39b — llvm/lib/Transforms/Vectorize LoopVectorize.cpp VPlanUnroll.cpp, llvm/test/Transforms/LoopVectorize interleave_uncountable_exits.ll

[VPlan] Support interleaving early exit loops with side effects

We couldn't do this on main previously because the exit mask `active-lane-mask(0, FirstActiveLane(Cond))` doesn't get unrolled properly across parts. Now that we use mask.beforefirst we can unroll it properly in a chain. The unrolled form is:

    unroll(mask.beforefirst, P) = mask.beforefirst(cond[P] | broadcast(anyof(not(unroll(mask.beforefirst, P-1)))))

On AArch64 this can be combined to brkpb in another patch.
DeltaFile
+106-7llvm/test/Transforms/LoopVectorize/interleave_uncountable_exits.ll
+10-0llvm/lib/Transforms/Vectorize/VPlanUnroll.cpp
+10-0llvm/lib/Transforms/Vectorize/VPlanLowering.cpp
+0-9llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+126-164 files