LLVM/project cc89e39 — llvm/test/CodeGen/AMDGPU si-fix-sgpr-copies-phi-agpr-use.mir

[AMDGPU][NFC] Precommit test for SIFixSGPRCopies PHI-to-AGPR rewrite (#247814)

`processPHINode` moves a VGPR PHI to an AGPR class when all of its uses
are copies to AGPRs. A `DBG_VALUE` use of the PHI blocks the move, so
the class depends on `-g`.

The checks show the current behavior: the PHIs in `phi_agpr_use` and
`phi_agpr_use_64` become `agpr_32` and `areg_64_align2`, while the one
in `phi_agpr_use_dbg_value` stays `vgpr_32`.

This came up in the review of #245761.

Assisted-by: Claude Opus 5.5

---------

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
Co-authored-by: Krzysztof Drewniak <Krzysztof.Drewniak at amd.com>
DeltaFile
+188-0llvm/test/CodeGen/AMDGPU/si-fix-sgpr-copies-phi-agpr-use.mir
+188-01 files

LLVM/project e634d61 — flang/include/flang/Evaluate expression.h, flang/lib/Evaluate expression.cpp variable.cpp

[flang][OpenMP] Compare complex parts and literal substrings by value

Expr equality had two gaps:
- ComplexComponent inherited Operation::operator==, which ignores
  isImaginaryPart, so `real(z)` and `aimag(z)` compared equal.
- Substring compared literal parents by StaticDataObject::Pointer, so
  substrings of identical literals, such as `'ab'(i:i)`, never compared
  equal.

METADIRECTIVE lowering turns `user={condition(...)}` selectors into an
IF/ELSE chain. Since a condition is false on its ELSE path, Flang drops
the other candidates with the same condition there, using Expr equality
to compare them.

The first gap drops a different condition:

```
  !$omp metadirective &
  !$omp& when(user={condition(real(z) > 0.0)}: taskyield) &

    [26 lines not shown]
DeltaFile
+36-0flang/test/Lower/OpenMP/metadirective-user.f90
+24-0flang/unittests/Evaluate/expression.cpp
+12-2flang/lib/Evaluate/variable.cpp
+4-0flang/lib/Evaluate/expression.cpp
+1-0flang/include/flang/Evaluate/expression.h
+77-25 files

LLVM/project e05e460 — llvm/lib/CodeGen/SelectionDAG TargetLowering.cpp, llvm/test/CodeGen/AArch64 hadd-combine.ll

[DAG] combineShiftToAVG - match sub(A, not(B)) as avgceil

A - ~B == A + B + 1. DAGCombiner turns add(add(A, B), 1) into
sub(A, not(B)) if preferIncOfAddToSubOfNot is false, as on X86 for
multi-element vectors and on AArch64 for all vectors. D148809 delays
this until after legalization if the add of 1 has nuw or nsw.
combineShiftToAVG does not recognize the sub form, so the ceil average
is lost if the fold runs first. Match the sub form as well. If the not
has other users, only do it when the AVG node is legal or custom.

This shows up when the IR is written as a sub of a not, or when a
freeze is pushed through the adds and drops their flags. With #152107
the latter loses vpavgb/vpavgw in five AVX512F maskz tests of
avg-mask.ll, which match main again with this change.

Where the target expands the AVG node, the sub form now gets the code
of the add form, e.g. on RISC-V P, which has AVGSUBFLOOR but no
AVGCEIL, and for some Hexagon and ARM NEON types.

Assisted-by: Claude Code (Claude Opus 5.5)
DeltaFile
+62-325llvm/test/CodeGen/X86/avg.ll
+36-26llvm/test/CodeGen/AArch64/hadd-combine.ll
+30-8llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+128-3593 files

LLVM/project d95231e — llvm/lib/Transforms/Vectorize VPlanTransforms.cpp, llvm/test/Transforms/LoopVectorize vplan-based-stride-mv.ll

Workaround inifinite loop
DeltaFile
+115-8llvm/test/Transforms/LoopVectorize/vplan-based-stride-mv.ll
+9-1llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+1-2llvm/test/Transforms/LoopVectorize/VPlan/vplan-based-stride-mv.ll
+125-113 files

LLVM/project 3be2b6c — llvm/lib/Target/X86 X86FastPreTileConfig.cpp X86PreTileConfig.cpp, llvm/test/CodeGen/X86/ACEV1 acev1-config-resets-bsr.ll acev1-bsr-config-order.ll

[X86][ACEV1] Keep a tile config from resetting a written BSR

ldtilecfg runs bsr_init(), so a config the compiler places between a
BSR write and a read of that value throws the scales away. The config
cannot move above the write, because a call makes it volatile and -O0
puts one at the head of every block that uses tiles.

Mark the configs as writing bsr0, give BSR0 a register class so a
spill has a size, and preserve the value across the configs that
reach a read. Memory forms exist both ways, so this costs four
instructions.

Co-authored-by: Claude Opus 5 <noreply at anthropic.com>
DeltaFile
+174-0llvm/test/CodeGen/X86/ACEV1/acev1-bsr-config-order.ll
+100-0llvm/lib/Target/X86/X86MachineFunctionInfo.cpp
+36-0llvm/test/CodeGen/X86/ACEV1/acev1-config-resets-bsr.ll
+20-0llvm/lib/Target/X86/X86InstrInfo.cpp
+14-5llvm/lib/Target/X86/X86PreTileConfig.cpp
+13-1llvm/lib/Target/X86/X86FastPreTileConfig.cpp
+357-64 files not shown
+380-810 files

LLVM/project 7eae833 — clang/lib/Analysis/FlowSensitive DataflowEnvironment.cpp, clang/unittests/Analysis/FlowSensitive DataflowEnvironmentTest.cpp

Fix a crash in handling this-pointer captured in nested lambdas in field initializer. (#245491)

Environment.initialize() currently crashes when handling a this-pointer
captured by a nested lambda expression appearing in a field initializer
of a struct. Consider the following example:

```cpp
struct {
  int f = int f{[this]() { return [this]() { return 1; }(); }()};
}
```

When handling the this-pointer captured in the inner lambda,
Environment.initialize() tries to get the enclosing record by calling
getLambdaContext() on the lambda's Closure. However, getLambdaContext()
only works for the outermost lambda. For inner lambdas, it just returns
nullptr, which causes a null-dereference.

This PR fixes that issue by introducing a helper function that finds the
outermost lambda and get getLambdaContextDecl() from it.
DeltaFile
+74-0clang/unittests/Analysis/FlowSensitive/DataflowEnvironmentTest.cpp
+22-1clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp
+96-12 files

LLVM/project 1d0ddf8 — flang/include/flang/Evaluate expression.h, flang/lib/Evaluate expression.cpp variable.cpp

[flang][OpenMP] Compare complex parts and literal substrings by value

Expr equality had two gaps:
- ComplexComponent inherited Operation::operator==, which ignores
  isImaginaryPart, so `real(z)` and `aimag(z)` compared equal.
- Substring compared a literal parent's StaticDataObject::Pointer, so
  substrings of two identical literals, such as `'ab'(i:i)`, never
  compared equal.

METADIRECTIVE lowering uses Expr equality to drop candidates whose
runtime condition already failed. With

```
  !$omp metadirective &
  !$omp& when(user={condition(real(z) > 0.0)}: taskyield) &
  !$omp& when(user={condition(aimag(z) > 0.0)}: taskwait)
```

the ELSE path of `real(z) > 0.0` dropped the TASKWAIT candidate, so

    [9 lines not shown]
DeltaFile
+36-0flang/test/Lower/OpenMP/metadirective-user.f90
+24-0flang/unittests/Evaluate/expression.cpp
+12-2flang/lib/Evaluate/variable.cpp
+4-0flang/lib/Evaluate/expression.cpp
+1-0flang/include/flang/Evaluate/expression.h
+77-25 files

LLVM/project 8675cbb — clang/lib/CIR/Lowering/DirectToLLVM LowerToLLVM.cpp, llvm/lib/Target/Hexagon HexagonGlobalSchedulerV2.cpp

Merge remote-tracking branch 'llvm/users/reble/amdgpu-phi-agpr-precommit-test' into amdgpu-phi-hasuses-nfc

# Conflicts:
#       llvm/test/CodeGen/AMDGPU/si-fix-sgpr-copies-phi-agpr-use.mir
DeltaFile
+5,269-0llvm/lib/Target/Hexagon/HexagonGlobalSchedulerV2.cpp
+1,922-0mlir/test/Dialect/X86/vector-contract-16bit-fp-to-fma.mlir
+0-1,425mlir/test/Dialect/X86/vector-contract-bf16-to-fma.mlir
+722-262llvm/test/Transforms/LoopUnroll/RISCV/outer-loop-unroll-threshold.ll
+953-0llvm/test/Transforms/LoopVectorize/any-of-non-cmp-cond.ll
+852-67clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
+9,718-1,7541,825 files not shown
+70,934-18,6391,831 files

LLVM/project a9aaffd — llvm/lib/Transforms/Scalar GVN.cpp, llvm/test/Transforms/GVN pr17852.ll load-dead-block.ll

[GVN] Treat Deadblock as Available

PRE insert load instruction if there is only one predecessor cannot be
eliminated. A deadblock can actually be treat as Available so that it
doesn't count into the BB that needs to insert load.
DeltaFile
+62-0llvm/test/Transforms/GVN/load-dead-block.ll
+15-3llvm/lib/Transforms/Scalar/GVN.cpp
+4-11llvm/test/Transforms/GVN/PRE/load-pre-num-unavailable-preds-crash.ll
+5-9llvm/test/Transforms/GVN/pr17852.ll
+86-234 files

LLVM/project 0fe0898 — llvm/test/CodeGen/AMDGPU si-fix-sgpr-copies-phi-agpr-use.mir

Apply suggestion from review
DeltaFile
+1-1llvm/test/CodeGen/AMDGPU/si-fix-sgpr-copies-phi-agpr-use.mir
+1-11 files

LLVM/project 46d10a7 — llvm/lib/Analysis ScalarEvolution.cpp, llvm/test/Analysis/ScalarEvolution trip-count-loop-guard-ne-extreme.ll

[SCEV] Rewrite x != C for an Max Constant C in loop guards (#240637)

For a constant C that is the signed maximum, unsigned maximum or signed
minimum, x != C is x s< C, x u< C or x s> C respectively. Treat it as
the strict comparison, so the loop guards bound x. x != 0 is already
handled.

For example, the exit count of `iv + 2 s< n` under `n != SMAX` is now
computed, so a following `iv s< 0` check folds.

ir diff: mostly changes in asn1 . 

https://github.com/dtcxzyw/llvm-opt-benchmark-nightly/pull/1999/changes#diff-2e0d815dad90d17edadffc349d183fdac17ea400a21634b1e25097ed0010ba1f

This PR is needed along-side next PR:
https://github.com/llvm/llvm-project/pull/240606 for handling loop-guard
based facts.

combined compile-time impact of two PRs: #240606 and current:

    [2 lines not shown]
DeltaFile
+214-0llvm/test/Analysis/ScalarEvolution/trip-count-loop-guard-ne-extreme.ll
+74-0llvm/test/Transforms/IndVarSimplify/iv-nonneg-loop-guard-ne-smax.ll
+13-0llvm/lib/Analysis/ScalarEvolution.cpp
+301-03 files

LLVM/project 21734e3 — llvm/test/CodeGen/AMDGPU si-fix-sgpr-copies-phi-agpr-use.mir

Update llvm/test/CodeGen/AMDGPU/si-fix-sgpr-copies-phi-agpr-use.mir

Co-authored-by: Krzysztof Drewniak <Krzysztof.Drewniak at amd.com>
DeltaFile
+1-1llvm/test/CodeGen/AMDGPU/si-fix-sgpr-copies-phi-agpr-use.mir
+1-11 files

LLVM/project bf89f26 — llvm/test/CodeGen/AMDGPU si-fix-sgpr-copies-phi-agpr-use.mir

[AMDGPU] Precommit test for SIFixSGPRCopies PHI-to-AGPR rewrite

processPHINode moves a VGPR PHI to an AGPR class when all of its uses
are copies to AGPRs. A DBG_VALUE use currently blocks the move, so the
chosen class depends on -g.

Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+188-0llvm/test/CodeGen/AMDGPU/si-fix-sgpr-copies-phi-agpr-use.mir
+188-01 files

LLVM/project a2ac69d — utils/bazel/llvm-project-overlay/libc/src/__support/OSUtil/linux/syscall_wrappers BUILD.bazel

[Bazel] Fixes 7e55c59 (#247873)

This fixes 7e55c59000d9938ccffaa98764226b26c3d893c3 (#247852).

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

Co-authored-by: Google Bazel Bot <google-bazel-bot at google.com>
DeltaFile
+8-0utils/bazel/llvm-project-overlay/libc/src/__support/OSUtil/linux/syscall_wrappers/BUILD.bazel
+8-01 files

LLVM/project 1d5f5e9 — flang/lib/Semantics check-declarations.cpp resolve-names.cpp, flang/test/Semantics align-directive02.cuf modfile-align-directive.f90

[flang][semantics] Ignore a !DIR$ ALIGN directive that cannot be applied, with a warning (#247762)

The semantic checks of `!DIR$ ALIGN` (244506) made it an error to name
something the directive cannot align, or to put the directive after an
executable statement or outside a program unit. Existing code that other
compilers accept has such directives, for example `!DIR$ ATTRIBUTES
ALIGN` on a named constant, on the name of a derived type or on a
function result, and it no longer compiled.

Make these cases warnings under `-Wignored-directive`, and ignore the
directive for that name. The request is not recorded, so module files
and lowering do not see it. This follows what #180994 did for a
misplaced `IGNORE_TKR`. An alignment that is not a valid power of two
and two different alignments for one name stay errors.

A directive that follows a program unit was checked in the scope of that
program unit. Issuing a warning there aborted the compiler, which
`IGNORE_TKR` already did. Such a directive is now checked in the global
scope. There `IGNORE_TKR` gets its "must appear in a program unit"

    [7 lines not shown]
DeltaFile
+81-69flang/lib/Semantics/resolve-names.cpp
+76-32flang/test/Semantics/align-directive01.f90
+38-1flang/test/Semantics/align-directive-ignored.f90
+5-25flang/lib/Semantics/check-declarations.cpp
+24-0flang/test/Semantics/modfile-align-directive.f90
+3-3flang/test/Semantics/align-directive02.cuf
+227-1302 files not shown
+235-1308 files

LLVM/project 7e55c59 — libc/src/__support/OSUtil/linux/syscall_wrappers sched_setaffinity.h CMakeLists.txt, libc/src/sched/linux sched_getaffinity.cpp

[libc] Reject CPU affinity mask sizes above INT_MAX (#247852)

On Linux, `SYS_sched_getaffinity` and `SYS_sched_setaffinity` take a
32-bit `unsigned int` mask length, while
`linux_syscalls::sched_getaffinity` returns the written byte count as
`int`. Sizes above `INT_MAX` don't fit in `ErrorOr<int>` and narrow to
32 bits at the syscall boundary past `UINT_MAX`.

Return `EINVAL` for mask sizes above `INT_MAX` in
`linux_syscalls::sched_getaffinity` and
`linux_syscalls::sched_setaffinity`, and clear trailing mask bytes with
`inline_memset` in `sched_getaffinity`. Also add tests for trailing
zero-fill and for zero and `> INT_MAX` mask sizes.

Assisted-By: Gemini
DeltaFile
+77-10libc/test/src/sched/affinity_test.cpp
+22-21libc/src/sched/linux/sched_getaffinity.cpp
+15-5libc/src/__support/OSUtil/linux/syscall_wrappers/sched_getaffinity.h
+8-2libc/src/__support/OSUtil/linux/syscall_wrappers/CMakeLists.txt
+6-1libc/src/__support/OSUtil/linux/syscall_wrappers/sched_setaffinity.h
+6-0libc/test/src/sched/CMakeLists.txt
+134-391 files not shown
+137-407 files

LLVM/project 9420bda — clang/lib/Sema SemaCast.cpp, clang/test/SemaOpenCLCXX address-space-reference-casts.clcpp

[Clang] Check address space overlap for C-style casts to references (#244964)

In OpenCL and SYCL, `TryAddressSpaceCast` rejects a pointer cast between
two address spaces that don't overlap, but a C-style cast to a reference
is not checked (there is a FIXME for it). As a result, `(__local int
&)global_var` is accepted and we emit an `addrspacecast`.

This PR checks such reference casts in the same way. We only check the
case where the reference binds to the operand directly, i.e. the two
types are related. Other casts to a reference are not affected.

This PR was assisted by AI but I reviewed all the changes.
DeltaFile
+65-0clang/test/SemaOpenCLCXX/address-space-reference-casts.clcpp
+32-3clang/lib/Sema/SemaCast.cpp
+10-0clang/test/SemaSYCL/address-space-array-reference-casts.cpp
+3-0clang/test/SemaSYCL/address-space-conversions.cpp
+110-34 files

LLVM/project c915439 — llvm/lib/Transforms/Scalar ConstraintElimination.cpp

add Florian's TODO
DeltaFile
+1-0llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
+1-01 files

LLVM/project 61b5d3e — llvm/test/Transforms/LoopVectorize vplan-based-stride-mv.ll, llvm/test/Transforms/LoopVectorize/VPlan vplan-based-stride-mv.ll

Updates after merge
DeltaFile
+58-154llvm/test/Transforms/LoopVectorize/vplan-based-stride-mv.ll
+19-62llvm/test/Transforms/LoopVectorize/VPlan/vplan-based-stride-mv.ll
+77-2162 files

LLVM/project df1b671 — llvm/lib/Target/Hexagon HexagonGlobalSchedulerV2.cpp, llvm/test/CodeGen/AMDGPU srem.ll load-global-i8.ll

Merge branch 'induction-liveout-insert-pos' into HEAD

# Conflicts:
#       llvm/test/Transforms/LoopVectorize/VPlan/vplan-based-stride-mv.ll
#       llvm/test/Transforms/LoopVectorize/vplan-based-stride-mv.ll
DeltaFile
+4,445-4,498llvm/test/CodeGen/AMDGPU/memintrinsic-unroll.ll
+3,141-3,182llvm/test/CodeGen/RISCV/clmul.ll
+2,602-2,926llvm/test/CodeGen/X86/vector-compress.ll
+0-5,394llvm/test/CodeGen/AMDGPU/load-global-i8.ll
+0-5,274llvm/test/CodeGen/AMDGPU/srem.ll
+5,269-0llvm/lib/Target/Hexagon/HexagonGlobalSchedulerV2.cpp
+15,457-21,2748,575 files not shown
+407,364-283,5688,581 files

LLVM/project c4d2c30 — llvm/test/tools/llvm-rc tokenizer.test resname-string.test, llvm/test/tools/llvm-rc/Inputs tokens.rc resname-string.rc

[llvm-rc] Allow '+' in identifiers (#247298)

Unquoted resource names and filenames in Windows resource scripts can
now contain '+' characters (for example, "libc++.dll" in user-defined
resources). Microsoft rc.exe accepts '+' within unquoted resource
identifiers.

Previously, Tokenizer::canContinueIdentifier() did not handle '+',
splitting "libc++.dll" into "libc", '+', '+', ".dll" and failing with
"expected int or identifier, got +".

Allow '+' in Tokenizer::canContinueIdentifier(), matching how '-' and
'/' are already handled.

Assisted-by: Antigravity, especially for tests and review
DeltaFile
+1-1llvm/tools/llvm-rc/ResourceScriptToken.cpp
+2-0llvm/test/tools/llvm-rc/resname-string.test
+2-0llvm/test/tools/llvm-rc/Inputs/resname-string.rc
+1-0llvm/test/tools/llvm-rc/tokenizer.test
+1-0llvm/test/tools/llvm-rc/Inputs/tokens.rc
+7-15 files

LLVM/project 4f09fa1 — llvm/test/Transforms/LoopVectorize if-pred-stores.ll epilog-vectorization-reductions.ll, llvm/test/Transforms/LoopVectorize/AArch64 partial-reduce-dot-product-epilogue.ll

[VPlan] Insert induction end values to the end of the preheader

After future #182595 `VPWidenInductionRecipe` might reference `VPValue`s
defined in the preheader, so live-out value calculations must be
inserted at the end of the preheader to avoid def-after-use errors.

I believe modifying this transformation instead of adjusting #182595 is
the right fix that avoids any unnecessary implicit dependencies between
VPlan transformations. One possible fix in #182595 would be to emit
something like

```llvm
  br i1 %stride.check, label %scalar, label %stride.expand.scevs

stride.expand.scevs:
  %x = ...
  ...
  br label %vector.preheader


    [11 lines not shown]
DeltaFile
+48-48llvm/test/Transforms/LoopVectorize/VPlan/vplan-printing-reductions.ll
+20-20llvm/test/Transforms/LoopVectorize/epilog-vectorization-reductions.ll
+8-8llvm/test/Transforms/LoopVectorize/if-pred-stores.ll
+7-7llvm/test/Transforms/LoopVectorize/PowerPC/exit-branch-cost.ll
+7-7llvm/test/Transforms/LoopVectorize/AArch64/partial-reduce-dot-product-epilogue.ll
+6-6llvm/test/Transforms/LoopVectorize/WebAssembly/loop-02-bb1176.ll
+96-9614 files not shown
+134-13420 files

LLVM/project 7b76dbe — llvm/test/Transforms/LoopVectorize vplan-based-stride-mv.ll, llvm/test/Transforms/LoopVectorize/VPlan vplan-based-stride-mv.ll

Add a test causing infinite recursion

AI-found
DeltaFile
+149-0llvm/test/Transforms/LoopVectorize/vplan-based-stride-mv.ll
+70-0llvm/test/Transforms/LoopVectorize/VPlan/vplan-based-stride-mv.ll
+219-02 files

LLVM/project 683e4d0 — libc/src/__support/threads thread.cpp, libc/test/src/pthread CMakeLists.txt pthread_tss_test.cpp

[libc] Check upper key limit in TSSKeyMgr::is_valid_key (#247857)

`TSSKeyMgr::get_dtor`, `TSSKeyMgr::remove_key`, and `get_tss_value`
check `key >= TSS_KEY_COUNT` before indexing key storage, while
`TSSKeyMgr::is_valid_key` indexed `units[key]` directly. Check `key >=
TSS_KEY_COUNT` in `is_valid_key` as well so `set_tss_value` returns
`false` for keys at or above `TSS_KEY_COUNT`, and add `pthread_tss_test`
covering `pthread_key_*` and `tss_*` key validation.

Assisted-By: Gemini
DeltaFile
+71-0libc/test/src/pthread/pthread_tss_test.cpp
+23-0libc/test/src/pthread/CMakeLists.txt
+8-1libc/src/__support/threads/thread.cpp
+102-13 files

LLVM/project ee6a5a0 — clang/lib/Basic/Targets AMDGPU.h AMDGPU.cpp

[Clang][AMDGPU] Remove redundant isAMDGCN checks. NFC (#246818)

After the r600 target removal, AMDGPUTargetInfo is only created for
the amdgcn triple, so every `isAMDGCN()` check in it is always true.
Drop those checks and the helpers that only wrapped them.

```
if (hasFMAF())
  Builder.defineMacro("__HAS_FMAF__");
  -->
Builder.defineMacro("__HAS_FMAF__");
```

RFC: https://discourse.llvm.org/t/rfc-amdgpu-deprecating-and-removing-llvm-s-r600-terascale-backend/92840
DeltaFile
+15-22clang/lib/Basic/Targets/AMDGPU.cpp
+5-25clang/lib/Basic/Targets/AMDGPU.h
+20-472 files

LLVM/project 374a3d6 — llvm/docs ReleaseNotes.md

Add release note
DeltaFile
+3-1llvm/docs/ReleaseNotes.md
+3-11 files

LLVM/project 44fb772 — llvm/include/llvm/IR RuntimeLibcalls.td

RuntimeLibcalls: Add attributes to ObjC runtime calls (#244695)

Mark the ObjC runtime functions nounwind, and mark the argument of
the functions whose intrinsics mark their argument returned.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+31-26llvm/include/llvm/IR/RuntimeLibcalls.td
+31-261 files

LLVM/project 9e5ebe0 — llvm/include/llvm/IR RuntimeLibcalls.td

RuntimeLibcalls: Add attributes to operator new and delete (#244712)

Annotate operator new and delete implementation variants. The nothrow
variants are nounwind. No library registers these yet so they don't
appear in the DeclareRuntimeLibcalls tests.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+100-64llvm/include/llvm/IR/RuntimeLibcalls.td
+100-641 files

LLVM/project 6a0ed03 — llvm/test/Transforms/LoopVectorize vplan-based-stride-mv.ll, llvm/test/Transforms/LoopVectorize/VPlan vplan-based-stride-mv.ll

Add a test causing infinite recursion

AI-found
DeltaFile
+146-0llvm/test/Transforms/LoopVectorize/vplan-based-stride-mv.ll
+70-0llvm/test/Transforms/LoopVectorize/VPlan/vplan-based-stride-mv.ll
+216-02 files

LLVM/project 27340ec — clang/lib/Sema SemaCast.cpp, clang/test/SemaOpenCLCXX address-space-reference-casts.clcpp

[Clang] Check address space overlap for C-style casts to references

In OpenCL and SYCL, `TryAddressSpaceCast` rejects a pointer cast between
two address spaces that don't overlap, but a C-style cast to a reference
is not checked (there is a FIXME for it). As a result,
`(__local int &)global_var` is accepted and we emit an `addrspacecast`.

This PR checks such reference casts in the same way. We only check the
case where the reference binds to the operand directly, i.e. the two
types are related. Other casts to a reference are not affected.

This PR was assisted by AI but I reviewed all the changes.
DeltaFile
+65-0clang/test/SemaOpenCLCXX/address-space-reference-casts.clcpp
+32-3clang/lib/Sema/SemaCast.cpp
+10-0clang/test/SemaSYCL/address-space-array-reference-casts.cpp
+3-0clang/test/SemaSYCL/address-space-conversions.cpp
+110-34 files