LLVM/project d47eca9 — llvm/test/CodeGen/RISCV/GlobalISel/instruction-select/rvv ashr.mir lshr.mir, llvm/test/CodeGen/RISCV/GlobalISel/regbankselect/rvv lshr.mir ashr.mir

[RISCV][GISel] Support scalable vector G_SHL, G_LSHR and G_ASHR (#247078)

Scalable vector `shl`/`lshr`/`ashr` under `-global-isel` previously fell
back to SelectionDAG.

Part of https://github.com/llvm/llvm-project/issues/246831

CC: @topperc
DeltaFile
+752-0llvm/test/CodeGen/RISCV/GlobalISel/instruction-select/rvv/ashr.mir
+752-0llvm/test/CodeGen/RISCV/GlobalISel/instruction-select/rvv/lshr.mir
+752-0llvm/test/CodeGen/RISCV/GlobalISel/instruction-select/rvv/shl.mir
+491-0llvm/test/CodeGen/RISCV/GlobalISel/regbankselect/rvv/lshr.mir
+491-0llvm/test/CodeGen/RISCV/GlobalISel/regbankselect/rvv/ashr.mir
+491-0llvm/test/CodeGen/RISCV/GlobalISel/regbankselect/rvv/shl.mir
+3,729-07 files not shown
+5,167-713 files

LLVM/project 93954cd — llvm/include/llvm/Analysis LazyCallGraph.h, llvm/lib/Analysis LazyCallGraph.cpp

[CoroSplit] Quadratic memory use splitting Swift async functions (#243212)

When splitting a Swift async function, CoroSplit would proceed by making
a clone of the function for each suspension point, but leaving
unreachable code in each continuation clone that wasn't cleaned up until
SimplifyCFG.

This means that it transiently requires memory equal to a full copy of
the original function times the number of async calls in that function.

Instead, run the CoroSplit local cleanup function on each clone
immediately after generating it. This significantly reduces transient
memory usage.

TODO: Note that there's still a quadratic CPU cost inherent in this
approach. To avoid that, we would need to walk the original function and
only clone the blocks relevant for each split.

Resolves rdar://192111984
DeltaFile
+61-0llvm/unittests/Analysis/LazyCallGraphTest.cpp
+18-0llvm/lib/Transforms/Coroutines/CoroSplit.cpp
+13-2llvm/lib/Analysis/LazyCallGraph.cpp
+10-0llvm/test/Transforms/Coroutines/coro-async.ll
+2-2llvm/test/Transforms/Coroutines/coro-retcon-once-value.ll
+2-1llvm/include/llvm/Analysis/LazyCallGraph.h
+106-56 files

LLVM/project 39eb50e — clang/lib/CIR/Lowering/DirectToLLVM LowerToLLVMOffloadPrintfAMDGPU.cpp, clang/test/CIR/CodeGenHIP device-printf.hip

[CIR][AMDGPU] Avoid strlen loop for constant strings in hostcall printf (#244565)

Also stop treating weak or externally initialized globals as constant
strings in CIR, like LLVM, because the linker or host may change them
DeltaFile
+80-140clang/test/CodeGenHIP/printf.cpp
+108-2clang/test/CIR/Lowering/offload-printf-amdgpu.cir
+8-38clang/test/CodeGenHIP/printf-builtin.hip
+18-8clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVMOffloadPrintfAMDGPU.cpp
+10-9clang/test/CIR/CodeGenHIP/device-printf.hip
+4-1llvm/lib/Transforms/Utils/AMDGPUEmitPrintf.cpp
+228-1986 files

LLVM/project b60e570 — clang/include/clang/Basic arm_sve.td, clang/test/CodeGen/AArch64/fp8-intrinsics acle_sve2_fp8_fmla.c

[Clang][AArch64] Fix immediate range for FP  Multiply-add by indexed … (#246426)

…instruction

This patch fix the lane limit from [0-7] to [0-15] accoring to the
specification for:
svmlallbb_lane[_f32_mf8], svmlallbt_lane[_f32_mf8],
svmlalltb_lane[_f32_mf8] and svmlalltt_lane[_f32_mf8].
DeltaFile
+12-12clang/test/CodeGen/AArch64/fp8-intrinsics/acle_sve2_fp8_fmla.c
+4-4clang/test/Sema/aarch64-sve2-intrinsics/acle_sve2_fp8.c
+4-4clang/include/clang/Basic/arm_sve.td
+20-203 files

LLVM/project 89b5d50 — llvm/include/llvm/CodeGen BasicTTIImpl.h, llvm/lib/Target/SPIRV SPIRVTargetTransformInfo.cpp

[TTI] Remove getPopcntSupport and use the ctpop cost instead (#246272)

getPopcntSupport() was only used by LoopIdiomRecognize and by the
table-based ctpop recognition in AggressiveInstCombine. Use cost
comparisons there instead:

- LoopIdiomRecognize replaces the loop if ctpop costs no more than one
  iteration of the loop, since the loop runs at least once.
- AggressiveInstCombine replaces the table lookup if ctpop costs no more
  than the GEP and load.

BasicTTIImpl gave an expanded scalar ctpop a flat TCC_Expensive, which
is
less than one iteration of the loop. Cost the expansion done by
TargetLowering::expandCTPOP instead, as is done for clmul.

LoopIdiomRecognize used to always ask about a 32-bit popcount, before
the
idiom was matched. It now uses the type of the loop value.

    [15 lines not shown]
DeltaFile
+251-0llvm/test/Transforms/LoopIdiom/Mips/popcnt.ll
+154-0llvm/test/Transforms/LoopIdiom/AArch64/popcnt.ll
+45-26llvm/test/Transforms/LoopIdiom/SPARC/popcnt.ll
+38-3llvm/include/llvm/CodeGen/BasicTTIImpl.h
+16-2llvm/lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp
+17-0llvm/lib/Target/SPIRV/SPIRVTargetTransformInfo.cpp
+521-3127 files not shown
+547-18033 files

LLVM/project 5d734ac — llvm/include/llvm/IR DebugInfoMetadata.h

clang-format
DeltaFile
+7-7llvm/include/llvm/IR/DebugInfoMetadata.h
+7-71 files

LLVM/project 0f5f413 — llvm/lib/Bitcode/Reader MetadataLoader.cpp, llvm/lib/IR DebugInfoMetadata.cpp

[DebugInfo] Skip ODR uniquing on conflicting DICompositeType sizes (#245268)

When two modules define a C++ type with the same ODR identifier but
different DICompositeType sizes, ODR type uniquing in
DICompositeType::buildODRType and getODRType collapses both modules onto
whichever size is materialized first. If a smaller-sized module is
loaded before a larger-sized module (e.g., during ThinLTO importing or
Full LTO linking), DW_OP_LLVM_fragment expressions from the larger
module can exceed the uniqued type's size and abort compilation in the
IR verifier ("fragment is larger than or outside of variable" or
"fragment covers entire variable"), either stripping debug info during
auto-upgrade or aborting compilation when auto-upgrade is disabled.

Reject ODR uniquing (returning nullptr, matching existing mismatched-tag
handling from D111770) when both the existing and incoming
DICompositeType
have conflicting non-zero sizes, so callers fall back to creating a
separate
DICompositeType node for the conflicting module. Null and zero sizes are

    [9 lines not shown]
DeltaFile
+161-0llvm/test/ThinLTO/X86/debuginfo-odr-size-mismatch.ll
+125-0llvm/unittests/IR/DebugTypeODRUniquingTest.cpp
+16-10llvm/lib/Bitcode/Reader/MetadataLoader.cpp
+19-2llvm/lib/IR/DebugInfoMetadata.cpp
+321-124 files

LLVM/project c8b7e58 — clang/lib/CIR/Dialect/Transforms LoweringPrepare.cpp CIRCanonicalize.cpp, clang/lib/CIR/Interfaces ASTAttrInterfaces.cpp

[clang] Remove unused includes (NFC) (#247087)

This patch removes unused #include directives across .cpp files under
clang/lib/.  Identified by clang-include-cleaner and verified locally.

Assisted-by: Antigravity
DeltaFile
+0-8clang/lib/CIR/Dialect/Transforms/LibOpt.cpp
+0-4clang/lib/CIR/Dialect/Transforms/HoistAllocas.cpp
+0-3clang/lib/CIR/Interfaces/ASTAttrInterfaces.cpp
+0-3clang/lib/CIR/Dialect/Transforms/LoweringPrepare.cpp
+0-3clang/lib/CIR/Dialect/Transforms/CIRCanonicalize.cpp
+0-2clang/lib/StaticAnalyzer/Checkers/ArrayBoundChecker.cpp
+0-2342 files not shown
+1-7448 files

LLVM/project 4103f16 — libc/test/src/__support/HashTable CMakeLists.txt

[libc][test] Gate HashTable tests without linking hsearch (#247015)

Commit 6fd1c1b8ef40 (#74371) added `libc.src.search.hsearch` to the
`DEPENDS` list of `bitmask_test`, `table_test`, and `group_test` solely
so those tests are skipped on targets where `hsearch` is not enabled.
Listing the entrypoint in `DEPENDS` also links `hsearch.cpp` and its
global table state into unit tests that never call `hsearch`.

Check `TARGET_LLVMLIBC_ENTRYPOINTS` at the top of
`libc/test/src/__support/HashTable/CMakeLists.txt` instead, drop
`libc.src.search.hsearch` from all three `DEPENDS` lists, and list the
direct `libc.hdr.types.ENTRY` dependency on `table_test`.

Assisted-by: Gemini
DeltaFile
+5-3libc/test/src/__support/HashTable/CMakeLists.txt
+5-31 files

LLVM/project 21c5ee5 — clang/lib/Sema SemaSYCL.cpp, clang/test/SemaSYCL sycl-kernel-entry-point-attr-incomplete-param.cpp

[clang][SYCL] Fix crash on `sycl_kernel_entry_point` with incomplete parameter type (#243185)

Clang crashed when a `sycl_kernel_entry_point` function had a parameter
of incomplete type, or a reference to an incomplete type. For a value
parameter, Sema diagnosed the incomplete type but still went on to build
the `SYCLKernelCallStmt`. `KernelParamsChecker` then crashed while
traversing the incomplete record. A reference to an incomplete type is
valid C++, so it wasn't diagnosed at all. But the generated kernel takes
the parameter by value, so incomplete type and crashed.
`KernelParamsChecker::checkParameter` now returns early, marking the
check as failed, for parameters that are already invalid.

It does the same for references to incomplete types, which are diagnosed
with `err_typecheck_decl_incomplete_type`.
`SemaSYCL::BuildSYCLKernelCallStmt` then returns an error instead of
continuing. Reference parameters reuse the existing `variable has
incomplete type` diagnostic.

Fixes https://github.com/llvm/llvm-project/issues/235558
DeltaFile
+41-0clang/test/SemaSYCL/sycl-kernel-entry-point-attr-incomplete-param.cpp
+12-2clang/lib/Sema/SemaSYCL.cpp
+53-22 files

LLVM/project a510385 — llvm/lib/Target/AMDGPU AMDGPUMCResourceInfo.cpp, llvm/test/CodeGen/AMDGPU resource-usage-named-barrier-cycle.ll resource-usage-cycle-shared-outgoing.mir

[AMDGPU] Preserve resource requirements through call-graph cycles (#221625)

When a function closes a cycle in the call graph, the cycle's register
counts are flattened to a constant (#142766), which drops callees whose
symbols are not defined yet, and the flags drop the cyclic callee
entirely. A kernel can then get too few VGPRs and no dynamic stack for
a function it reaches through the cycle.

Flatten the function's whole max() or or() expression instead: fold the
constants, skip the function's own symbol and keep the symbols that are
not defined yet. Named barrier counts in a cycle are flattened the same
way instead of using the module maximum.

The private segment size also drops the cyclic callee, so set
has_recursion in that case to request a dynamic stack on code object V5
and later. Since that sets has_recursion for more kernels, restore the
V5 check on the dynamic stack bit (D134714), which #94788 dropped, so V4
object files no longer set that reserved bit.
DeltaFile
+98-98llvm/lib/Target/AMDGPU/AMDGPUMCResourceInfo.cpp
+112-0llvm/test/CodeGen/AMDGPU/resource-usage-norecurse-cycle.ll
+109-0llvm/test/CodeGen/AMDGPU/resource-usage-direct-call-cycle.mir
+83-0llvm/test/CodeGen/AMDGPU/resource-usage-direct-call-cycle.ll
+51-0llvm/test/CodeGen/AMDGPU/resource-usage-cycle-shared-outgoing.mir
+47-0llvm/test/CodeGen/AMDGPU/resource-usage-named-barrier-cycle.ll
+500-984 files not shown
+530-12210 files

LLVM/project 1135ccc — clang/lib/CIR/Dialect/Transforms/TargetLowering CIRABIRewriteContext.cpp, clang/test/CIR/CodeGen call-conv-lowering-amdgpu-bitfield.c

[CIR] Flatten structs with bitfields in CallConvLowering (#245599)

On AMDGPU, struct over 64 bits is passed as one argument per field

CIR split the struct by its CIR members, but bitfield member is not a
plain value type, so reading it failed with "member type mismatch"

Pass the integer that stores the bitfields instead, and skip zero-width
bitfields, which take no space

This matches the arguments that classic codegen passes
DeltaFile
+82-0clang/test/CIR/CodeGen/call-conv-lowering-amdgpu-bitfield.c
+18-2clang/lib/CIR/Dialect/Transforms/TargetLowering/CIRABIRewriteContext.cpp
+100-22 files

LLVM/project 3274c45 — mlir/lib/Conversion/SPIRVToLLVM SPIRVToLLVM.cpp, mlir/test/Conversion/SPIRVToLLVM cl-ops-to-llvm.mlir

[mlir][SPIR-V] Add SPIRVToLLVM conversion for CL saturating add and sub (#245501)

Depends on #245500
DeltaFile
+17-0mlir/test/Conversion/SPIRVToLLVM/cl-ops-to-llvm.mlir
+5-1mlir/lib/Conversion/SPIRVToLLVM/SPIRVToLLVM.cpp
+22-12 files

LLVM/project 0295a5b — clang/lib/CodeGen CGHLSLRuntime.cpp, clang/test/CodeGenHLSL/semantics SV_ViewportArrayIndex.hlsl

[HLSL] Add support for SV_ViewportArrayIndex (#237031)

Resolves: https://github.com/llvm/llvm-project/issues/136974

Assisted by: Claude Opus 5.5
DeltaFile
+81-0llvm/test/CodeGen/SPIRV/semantics/viewport-index.ll
+62-15clang/lib/CodeGen/CGHLSLRuntime.cpp
+72-0clang/test/CodeGenHLSL/semantics/SV_ViewportArrayIndex.hlsl
+65-0llvm/test/CodeGen/DirectX/Metadata/semantic-signatures-viewport-array-index-errors.ll
+44-0llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp
+41-0clang/test/SemaHLSL/Semantics/viewportarrayindex.vs-ps.hlsl
+365-1510 files not shown
+524-1816 files

LLVM/project d60f902 — llvm/lib/Transforms/IPO WholeProgramDevirt.cpp LowerTypeTests.cpp

[profcheck] Guard CFI-related profile fixes with the ablation flag (#246999)

The ablation study of `ProfcheckDisableMetadataFixes` did not have CFI
enabled, so it did not exercise the profile fixes in WholeProgramDevirt
and LowerTypeTests. Restore the check that #222393 removed around
computing the branch funnel entry count, and add one to the type test
branch weights from #170752, so that these can be ablated.
DeltaFile
+4-2llvm/lib/Transforms/IPO/LowerTypeTests.cpp
+1-1llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp
+5-32 files

LLVM/project 0c8c860 — llvm/lib/Target/RISCV RISCVFrameLowering.h RISCVFrameLowering.cpp, llvm/test/CodeGen/RISCV/rvv interrupt-attr-nocall.ll callee-saved-regs.ll

[RISCV] Fix RVV callee-saves in realigned frames

The prologue saves RVV callee-saved registers before it realigns SP
and sets up BP, but their slots were addressed from the realigned SP
or BP. The epilogue reloaded them from the wrong address, BP frames
stored them through the caller's s1, and their CFI was wrong.

Address these slots from FP, which does not move, and derive their
CFI from getFrameIndexReference so the two cannot diverge.

Fixes #244792
DeltaFile
+112-64llvm/test/CodeGen/RISCV/rvv/rvv-cfi-info.ll
+34-28llvm/test/CodeGen/RISCV/rvv/callee-saved-regs.ll
+23-12llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
+8-2llvm/test/CodeGen/RISCV/rvv/interrupt-attr-nocall.ll
+1-2llvm/lib/Target/RISCV/RISCVFrameLowering.h
+178-1085 files

LLVM/project 65c7c5d — llvm/test/CodeGen/RISCV/rvv interrupt-attr-nocall.ll callee-saved-regs.ll

[RISCV] Add tests for RVV CSRs in realigned frames

Precommit the tests for #244792 so that its fix shows up as a diff.
The checks record the current, wrong output: the prologue saves the
vector callee-saved registers before it realigns the stack, and the
epilogue reloads them from a different address.
DeltaFile
+382-0llvm/test/CodeGen/RISCV/rvv/rvv-cfi-info.ll
+139-0llvm/test/CodeGen/RISCV/rvv/callee-saved-regs.ll
+43-0llvm/test/CodeGen/RISCV/rvv/interrupt-attr-nocall.ll
+564-03 files

LLVM/project 990bee3 — llvm/test/CodeGen/AMDGPU ds-large-offsets.ll load-store-opt-ds-large-offsets.mir

[AMDGPU] Add tests for large static LDS offsets (NFC) (#245447)

Add tests for LDS accesses whose constant offsets from a common address
exceed the 16-bit DS offset field, as with more than 64 KiB of
statically allocated LDS on gfx950. The checks record the current
output, where each such access gets its own add. This is used to
simplify #242846

Assisted-by: Claude Code
DeltaFile
+448-0llvm/test/CodeGen/AMDGPU/load-store-opt-ds-large-offsets.mir
+216-0llvm/test/CodeGen/AMDGPU/ds-large-offsets.ll
+664-02 files

LLVM/project ad8d4fe — clang/test/CIR/CodeGen unary.cpp, clang/test/CIR/CodeGenBuiltins builtin-object-size.c

[CIR] Return the value stored to the return slot directly

Classic codegen returns the value stored to the return slot directly
when that store dominates the return, and then drops the slot
(findDominatingStoreToReturnValue in CGCall.cpp). CIR always lowered the
slot to alloca, store, load and ret, so most scalar-returning functions
differed from classic codegen.

Add a cir-forward-return-slot function pass. In a function with a single
cir.return of a load from the return slot, it returns the stored value
when the store is the slot's only other use and reaches the load through
a chain of single predecessors, or when it immediately precedes the
load. These are classic codegen's rules. The return keeps its own
location, which CIRGen already sets to the return statement's. The pass
runs before LLVM lowering, after FlattenCFG and ABI lowering, so
-emit-cir output does not change. Volatile, atomic, record, array and
complex slots are left alone.

The tests change only in their LLVM checks. In files where the LLVM and

    [3 lines not shown]
DeltaFile
+101-213clang/test/CIR/CodeGenBuiltins/X86/avx512bw-builtins.c
+37-253clang/test/CIR/CodeGenBuiltins/X86/avx512f-builtins.c
+254-0clang/test/CIR/Transforms/forward-return-slot.cir
+44-187clang/test/CIR/CodeGen/unary.cpp
+6-163clang/test/CIR/CodeGenBuiltins/builtin-object-size.c
+6-153clang/test/CIR/CodeGenBuiltins/X86/cmp-builtins.c
+448-96994 files not shown
+949-2,280100 files

LLVM/project 1ba52f0 — lldb/source/Target StackFrameList.cpp, lldb/test/API/functionalities/scripted_frame_provider/set_pc main.c frame_provider.py

Revert "[lldb] Compare the concrete frame index for inlining (#240963)" (#247232)

This reverts commits fbf8ea9f26be236d1f524fbda74154c0ed236eef (#247106) and 17b5443a3211f7956d700fc520b1540a78ed8688 (#240963).
DeltaFile
+0-201lldb/unittests/Target/Inputs/tail-call.yaml
+0-97lldb/unittests/Target/StackFrameListTest.cpp
+0-47lldb/test/API/functionalities/scripted_frame_provider/set_pc/TestFrameProviderSetPC.py
+0-21lldb/test/API/functionalities/scripted_frame_provider/set_pc/frame_provider.py
+0-14lldb/test/API/functionalities/scripted_frame_provider/set_pc/main.c
+2-7lldb/source/Target/StackFrameList.cpp
+2-3874 files not shown
+5-40210 files

LLVM/project 804d23b — llvm/lib/Target/ARM ARMSubtarget.cpp ARMTargetMachine.cpp, llvm/lib/Target/ARM/AsmParser ARMAsmParser.cpp

[ARM] Declare command line options in TableGen (#244990)

Move the ARMCodeGen cl::opts into ARMOptions.td and the ARMAsmParser
ones into MCTargetDesc/ARMMCOptions.td, registered by
LLVMInitializeARMTargetMC(). ARMBaseTargetMachine holds
`const ARMOptions &CLOpts` and ARMSubtarget copies it.

TailPredication::Mode and TPLoop::MemTransfer become the enum classes
TailPredication and TPLoopMemTransfer in ARMSubtarget.h, and
ImplicitItModeTy moves to ARMMCOptions.h. The nameless IT mode option
becomes -arm-restrict-it, with -arm-default-it an alias of
-arm-restrict-it=false. -arm-data-bank-mask and
-arm-assume-itcm-bankconflict become std::optional/BoolOrDefault
members falling back to the CPU defaults.

-disable-arm-parallel-dsp keeps its spelling, as -arm-parallel-dsp is
the pass name opt pins to the legacy pass manager. -tail-predication and
-arm-implicit-it are no longer listed by -help, only by -help-hidden;
-arm-add-build-attributes, which has no help text, is listed by neither.

    [33 lines not shown]
DeltaFile
+159-0llvm/lib/Target/ARM/ARMOptions.td
+18-38llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
+12-38llvm/lib/Target/ARM/ARMISelLowering.cpp
+8-37llvm/lib/Target/ARM/ARMSubtarget.cpp
+14-31llvm/lib/Target/ARM/ARMTargetMachine.cpp
+10-24llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
+221-16838 files not shown
+423-40144 files

LLVM/project b8dbc2c — llvm/test/Transforms/LoopVectorize/VPlan memory-checks.ll

[VPlan] Add memory check tests for loop nests (NFC) (#247226)

Print the plan directly after the memory checks are attached instead of
the final plan, and add tests with runtime checks hoisted out of the
outer loop, including stride checks.
DeltaFile
+361-177llvm/test/Transforms/LoopVectorize/VPlan/memory-checks.ll
+361-1771 files

LLVM/project c05b4ca — lldb/test/API/tools/lldb-dap/coreFile TestDAP_coreFile.py

[lldb-dap][test][NFC] Relax the corefile frame check (#246482)

Some of the fields are implementation details that may change. and will
always require updating the corefile test.

Drop those from the test.
DeltaFile
+28-6lldb/test/API/tools/lldb-dap/coreFile/TestDAP_coreFile.py
+28-61 files

LLVM/project cc63c29 — llvm/include/llvm/DebugInfo/MSF MSFBuilder.h, llvm/lib/DebugInfo/MSF MSFBuilder.cpp

[MSF] Reserve FPM pairs whenever the block map grows (#233563)

Automatic allocation could skip a Free Page Map (FPM) pair when growth
started exactly at its first block. Initial preallocation and growth
for explicit block-map or stream placement could also leave later FPM
blocks marked free.

Centralize growth in `growFreeBlocks`. Reserve both blocks of every FPM
pair reached, including a pair at the growth boundary, without counting
them toward the requested number of usable blocks.

Add regression tests for initial preallocation, explicit placement, and
adding or extending streams at an FPM boundary. Verify that reserved
blocks are marked used and excluded from stream and directory
allocations.

Assisted-by: GPT 6.1 Sol (via VS Code)
DeltaFile
+108-0llvm/unittests/DebugInfo/MSF/MSFBuilderTest.cpp
+50-31llvm/lib/DebugInfo/MSF/MSFBuilder.cpp
+5-6llvm/include/llvm/DebugInfo/MSF/MSFBuilder.h
+163-373 files

LLVM/project 6b87a43 — flang/lib/Lower/OpenMP OpenMP.cpp, flang/test/Lower/OpenMP distribute-parallel-do.f90 distribute-parallel-do-simd.f90

[flang][OpenMP] Evaluate composite DISTRIBUTE clauses outside PARALLEL (#245417)

In composite DISTRIBUTE PARALLEL DO [SIMD], lowering creates
omp.parallel first, nests omp.distribute inside it, and lowers the
DISTRIBUTE clauses inside the parallel region. Take

```
  !$omp teams distribute parallel do dist_schedule(static, chunk(n))
```

where chunk has variants for construct={teams} and construct={parallel}.
Flang currently emits

```mlir
  omp.teams {
    omp.parallel {
      %c = fir.call @parallel_chunk(...)
      omp.distribute dist_schedule_static dist_schedule_chunk_size(%c) {
```

    [22 lines not shown]
DeltaFile
+44-0flang/test/Lower/OpenMP/declare-variant-construct.f90
+12-8flang/lib/Lower/OpenMP/OpenMP.cpp
+6-4flang/test/Lower/OpenMP/distribute-parallel-do.f90
+6-4flang/test/Lower/OpenMP/distribute-parallel-do-simd.f90
+68-164 files

LLVM/project d6ee7b2 — llvm/lib/CodeGen TargetPassConfig.cpp BasicBlockSections.cpp, llvm/test/CodeGen/X86 basic-block-address-map-with-emit-bb-hash.ll basic-block-address-map.ll

[CodeGen] Don't run BasicBlockSections for BB address map alone (#243978)

When only the BB address map was enabled, the BasicBlockSections pass
only renumbered basic blocks so that block IDs could be derived
implicitly from block numbers. The BB address map now emits each block's
ID explicitly (MBB.getBBID()) and walks blocks in layout order, so the
renumbering is no longer needed. Remove it and stop scheduling the
BasicBlockSections pass for the BB address map alone; it now only runs
for basic block sections or function splitting. `handleBBSections` and
`handleBBAddrMap` are thereby removed.

MachineBlockHashInfo is still scheduled at the same position for the BB
address map so the emitted hashes are unchanged.

The only output difference is in the names of local .LBB labels, which
no longer follow layout order; update the affected tests.
DeltaFile
+12-12llvm/test/CodeGen/X86/basic-block-address-map-with-basic-block-sections.ll
+1-22llvm/lib/CodeGen/BasicBlockSections.cpp
+11-8llvm/lib/CodeGen/TargetPassConfig.cpp
+9-9llvm/test/CodeGen/X86/basic-block-address-map-pgo-features.ll
+6-6llvm/test/CodeGen/X86/basic-block-address-map.ll
+4-4llvm/test/CodeGen/X86/basic-block-address-map-with-emit-bb-hash.ll
+43-616 files

LLVM/project 6cb2c81 — llvm/lib/Target/X86 X86ISelLowering.cpp, llvm/test/CodeGen/X86 psadbw.ll

[X86] Add X86ISD::PSADBW/VZEXT_LOAD poison handling (#247221)

canCreateUndefOrPoisonForTargetNode - X86ISD::PSADBW can never overflow
or create undef/poison

isGuaranteedNotToBeUndefOrPoisonForTargetNode - add VZEXT_LOAD handling
for constant pool loads

Pulled out of #245048
DeltaFile
+8-0llvm/lib/Target/X86/X86ISelLowering.cpp
+3-4llvm/test/CodeGen/X86/psadbw.ll
+11-42 files

LLVM/project 66a3dd7 — clang/include/clang/CIR/Dialect/IR CIRDataLayout.h, clang/lib/CIR/Dialect/Transforms EHABILowering.cpp

[CIR] Pass the __cxa_throw destructor in the program address space (#246091)

Function pointers live in the program address space on targets like
spirv64-amd-amdhsa, as in classic codegen

ABI lowering now also keeps that address space when it retypes a
function address
DeltaFile
+42-0clang/test/CIR/CodeGenCXX/throw-dtor-addrspace.cpp
+36-0clang/test/CIR/Transforms/abi-lowering/spirv-get-global.cir
+14-6clang/lib/CIR/Dialect/Transforms/EHABILowering.cpp
+14-0clang/test/CIR/IR/invalid-addrspace.cir
+6-3clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
+7-0clang/include/clang/CIR/Dialect/IR/CIRDataLayout.h
+119-91 files not shown
+121-107 files

LLVM/project 05c13fa — llvm/test/CodeGen/RISCV/GlobalISel/instruction-select/rvv srem.mir udiv.mir, llvm/test/CodeGen/RISCV/GlobalISel/regbankselect/rvv sdiv.mir srem.mir

[RISCV][GISel] Support scalable vector G_SDIV, G_UDIV, G_SREM and G_UREM (#247003)

Scalable vector `sdiv`/`udiv`/`srem`/`urem` under `-global-isel`
previously fell back to SelectionDAG.

Part of https://github.com/llvm/llvm-project/issues/246831
DeltaFile
+752-0llvm/test/CodeGen/RISCV/GlobalISel/instruction-select/rvv/srem.mir
+752-0llvm/test/CodeGen/RISCV/GlobalISel/instruction-select/rvv/udiv.mir
+752-0llvm/test/CodeGen/RISCV/GlobalISel/instruction-select/rvv/sdiv.mir
+752-0llvm/test/CodeGen/RISCV/GlobalISel/instruction-select/rvv/urem.mir
+491-0llvm/test/CodeGen/RISCV/GlobalISel/regbankselect/rvv/sdiv.mir
+491-0llvm/test/CodeGen/RISCV/GlobalISel/regbankselect/rvv/srem.mir
+3,990-010 files not shown
+6,894-916 files

LLVM/project 2b54bf5 — llvm/lib/CodeGen CodeGenPrepare.cpp, llvm/lib/Target/ARM ARMTargetTransformInfo.cpp

[llvm] Avoid more unnecessary Instruction casts for users() (NFC) (#247213)

This removes more unnecessary Instructions casts, now that users()
returns an Instruction iterator. Followup to
https://github.com/llvm/llvm-project/pull/246676.

The cases covered here are mostly ones not using users() but
user_iterator, user_begin() or similar.

Patch generated by Claude.
DeltaFile
+14-20llvm/lib/CodeGen/CodeGenPrepare.cpp
+8-14llvm/lib/Target/Hexagon/HexagonVectorCombine.cpp
+7-7llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
+6-7llvm/lib/Transforms/Scalar/Reassociate.cpp
+3-7llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
+4-5llvm/lib/Transforms/Vectorize/VectorCombine.cpp
+42-6038 files not shown
+103-14144 files