LLVM/project 84a9ed3 — llvm/lib/Target/X86 X86ISelLowering.cpp, llvm/test/CodeGen/X86 pr45563-2.ll canonicalize-vars-f16-type.ll

[X86] Prevent poison propagation when inserting i8/i16 into zero vector (#248935)

In `LowerINSERT_VECTOR_ELT`, zero-extending an `i8`/`i16` element to
`i32` before `SCALAR_TO_VECTOR` + `VZEXT_MOVL` can propagate
`undef`/`poison` into adjacent zero lanes (same as #248666 for
`LowerBUILD_VECTOR`). Also fixes the SSE4.2 cases from #246207 (covered
by #249006).

Fixes #248928

Assisted-by: Gemini 4 Neon
DeltaFile
+57-0llvm/test/CodeGen/X86/avx-insertelt.ll
+12-8llvm/test/CodeGen/X86/bfloat-int-cvt.ll
+5-2llvm/test/CodeGen/X86/pr246207.ll
+2-2llvm/test/CodeGen/X86/pr45563-2.ll
+3-1llvm/test/CodeGen/X86/canonicalize-vars-f16-type.ll
+3-1llvm/lib/Target/X86/X86ISelLowering.cpp
+82-146 files

LLVM/project e0d5bfa — .github CODEOWNERS

[CODEOWNERS] Remove "masked" rules (#248903)

As per GitHub docs (see the link in CODEOWNERS file):
* "the last matching pattern takes the most precedence."

Remove rules that are currently masked (i.e. not in use). The Arith
files receive @kuhar @krzysz00, and the XeGPU TransformOps directories
receive @ftynse @nicolasvasilache @rolfmorel. The EmulateNarrowType.cpp 
file receives @dcaballe .
DeltaFile
+0-11.github/CODEOWNERS
+0-111 files

LLVM/project 40e93cc — llvm/lib/Transforms/Vectorize VPlanTransforms.cpp, llvm/test/Transforms/LoopVectorize lcssa-crashes.ll narrow-to-single-scalar.ll

[VPlan] Don't count extract-lane users as introducing broadcasts. (#249084)

Like the other extracts already excluded in narrowToSingleScalarRecipes,
ExtractLane of a single-scalar folds to the scalar. Exclude it too, so
recipes only used by extract-lane (e.g. selects feeding exit values) can
be narrowed.
DeltaFile
+4-6llvm/test/Transforms/LoopVectorize/narrow-to-single-scalar.ll
+1-2llvm/test/Transforms/LoopVectorize/lcssa-crashes.ll
+2-1llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+7-93 files

LLVM/project 8ee3215 — llvm/lib/Transforms/Vectorize VPlanTransforms.cpp, llvm/test/Transforms/LoopVectorize/VPlan fold-after-unroll.ll

[VPlan] Fold ExtractPenultimateElement of single scalars after unrolling. (#249214)

After unrolling, ExtractPenultimateElement extracts from a single part,
so for single-scalar operands it can be replaced by its operand, as 
already done for ExtractLastLane. Only fold the operand kinds also folded 
forExtractLastLane.

So far VPInstruction::generate handled single-scalar operands implicitly
via VPTransformState's lane map. Folding them in VPlan allows generate
to assume vector operands. For live-ins, this removes the broadcast and 
the extract of the penultimate element.
DeltaFile
+104-0llvm/test/Transforms/LoopVectorize/VPlan/fold-after-unroll.ll
+7-0llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+111-02 files

LLVM/project 38b3a03 — llvm/test/CodeGen/AArch64 aarch64-dup-ext.ll aarch64-matrix-umull-smull.ll

[AArch64][GlobalISel] Add generic G_UMULL and G_SMULL nodes. (#236058)

This ports the AArch64 specific G_SMULL and G_UMULL instructions to be
generic instructions usable by any target. It has two legalization
types, it is generally expected at the moment to have an output twice
the size of the input, but legalization rules in GISel do not limit us
to this factor. Having target independent nodes allows us to legalize
more cleanly.
DeltaFile
+1,068-2,704llvm/test/CodeGen/AArch64/neon-dotreduce.ll
+564-289llvm/test/CodeGen/AArch64/aarch64-mull-masks.ll
+179-237llvm/test/CodeGen/AArch64/overflow-vec.ll
+155-203llvm/test/CodeGen/AArch64/rem-by-const.ll
+126-202llvm/test/CodeGen/AArch64/aarch64-matrix-umull-smull.ll
+77-166llvm/test/CodeGen/AArch64/aarch64-dup-ext.ll
+2,169-3,80138 files not shown
+2,951-4,57844 files

LLVM/project 8932712 — libcxx/docs/DesignDocs RCU.md, libcxx/src/experimental rcu.cpp

[libc++] Implement P2545R4 Read-Copy Update (RCU)  (#175451)

Fixes #105361

---------

Co-authored-by: Louis Dionne <ldionne.2 at gmail.com>
DeltaFile
+453-0libcxx/docs/DesignDocs/RCU.md
+329-0libcxx/test/std/thread/saferecl/saferecl.rcu/saferecl.rcu.base/retire.pass.cpp
+313-0libcxx/test/std/thread/saferecl/saferecl.rcu/saferecl.rcu.domain/rcu_retire.pass.cpp
+273-0libcxx/test/std/thread/saferecl/saferecl.rcu/saferecl.rcu.domain/rcu_synchronize_stress.pass.cpp
+258-0libcxx/src/experimental/rcu.cpp
+233-0libcxx/test/std/thread/saferecl/saferecl.rcu/saferecl.rcu.domain/rcu_barrier.pass.cpp
+1,859-045 files not shown
+3,510-2151 files

LLVM/project 00da207 — llvm/include/llvm/Transforms/InstCombine InstCombiner.h, llvm/lib/Analysis ScalarEvolution.cpp

[LLVM] Migrate call-sites w/o CtxI to new computeSignBits API (#249011)

Migrate to the new computeSignBits SimplifyQuery API in all cases except
when a context-instruction is supplied, defering the issue of safeCtxI
for a follow-up. The SCEV test change can be explained by UseInstrInfo
due to the construction of SQ: there are surely other functional changes
that could be covered with new tests, but we have chosen not to include
new tests.

Assisted-by: llm
DeltaFile
+15-11llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+6-6llvm/test/Analysis/ScalarEvolution/implied-via-division.ll
+3-4llvm/include/llvm/Transforms/InstCombine/InstCombiner.h
+4-3llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
+2-1llvm/lib/Transforms/AggressiveInstCombine/AggressiveInstCombineInternal.h
+1-1llvm/lib/Analysis/ScalarEvolution.cpp
+31-261 files not shown
+32-277 files

LLVM/project 03a0912 — llvm/lib/Target/AArch64 AArch64ISelLowering.cpp, llvm/test/CodeGen/AArch64 icmp-cst.ll

[AArch64] Fix immediate cost in numberOfInstrToLoadImm (#249199)

The immediate was being treated as 32 bits, even if the original imm was
64, producing the wrong costs for converting conditions to cheaper
immediates. Fixes #248733
DeltaFile
+8-12llvm/test/CodeGen/AArch64/icmp-cst.ll
+2-1llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+10-132 files

LLVM/project 86a351b — llvm/lib/Target/PISA PISAISelLowering.cpp PISARegisterBankInfo.cpp

Apply clang-format
DeltaFile
+91-81llvm/lib/Target/PISA/PISALegalizerInfo.cpp
+65-55llvm/lib/Target/PISA/PISAPostLegalizerCombiner.cpp
+70-40llvm/lib/Target/PISA/PISAPreLegalizerCombiner.cpp
+15-19llvm/lib/Target/PISA/PISACallLowering.cpp
+3-3llvm/lib/Target/PISA/PISARegisterBankInfo.cpp
+2-2llvm/lib/Target/PISA/PISAISelLowering.cpp
+246-2001 files not shown
+248-2027 files

LLVM/project 1b71011 — llvm/lib/Target/Sparc SparcRegisterInfo.cpp, llvm/test/CodeGen/SPARC 64abi.ll frame-index-sp-relative.ll

[SPARC] Address objects relative to %sp when far away from %fp (#248810)

Frame objects are addressed relative to %fp. When an access is out of
immediate range from %fp, its address is built with multiple
instructions even if the object is close to %sp. Use %sp instead when
the offset fits there and the call frame is reserved, so that %sp does
not move.

Assisted-by: Claude
DeltaFile
+297-0llvm/test/CodeGen/SPARC/frame-index-sp-relative.ll
+21-1llvm/lib/Target/Sparc/SparcRegisterInfo.cpp
+1-3llvm/test/CodeGen/SPARC/64abi.ll
+319-43 files

LLVM/project 9a7cbcb — llvm/lib/Target/Sparc SparcInstrInfo.td, llvm/lib/Target/Sparc/AsmParser SparcAsmParser.cpp

[SPARC] Add the LEON5 STBAR options to the assembler (#240762)

LEON5 uses unused bits of the STBAR instruction to implement
functionality similar to the MEMBAR instruction in SPARC V9. It also
provides a write-combining hint for the following store.

Assisted-by: Claude
DeltaFile
+35-11llvm/lib/Target/Sparc/AsmParser/SparcAsmParser.cpp
+29-0llvm/test/MC/Sparc/leon5-stbar.s
+27-0llvm/lib/Target/Sparc/SparcInstrInfo.td
+18-8llvm/lib/Target/Sparc/MCTargetDesc/SparcInstPrinter.cpp
+24-0llvm/test/MC/Disassembler/Sparc/leon5-stbar.txt
+22-0llvm/test/MC/Sparc/sparc-asm-errors.s
+155-194 files not shown
+168-2010 files

LLVM/project 0e92d5b — llvm/lib/Target/PISA PISAAsmPrinter.cpp

Fixes
DeltaFile
+9-8llvm/lib/Target/PISA/PISAAsmPrinter.cpp
+9-81 files

LLVM/project 81c5b84 — llvm/lib/Target/PISA PISAAsmPrinter.cpp

Add file headers
DeltaFile
+5-0llvm/lib/Target/PISA/PISAAsmPrinter.cpp
+5-01 files

LLVM/project 75a16af — llvm/lib/Target/PISA PISAAsmPrinter.cpp

Inline comparison into the assertion
DeltaFile
+3-3llvm/lib/Target/PISA/PISAAsmPrinter.cpp
+3-31 files

LLVM/project 867a4e1 — llvm/lib/Target/PISA PISAAsmPrinter.cpp, llvm/test/CodeGen/PISA asm-printer-annotation-globals.ll

Remove the user scan and add a test
DeltaFile
+19-0llvm/test/CodeGen/PISA/asm-printer-annotation-globals.ll
+0-18llvm/lib/Target/PISA/PISAAsmPrinter.cpp
+19-182 files

LLVM/project ff37505 — llvm/lib/Target/PISA PISAAsmPrinter.cpp

Document why AsmPrinter::emitGlobalConstant is not used
DeltaFile
+4-0llvm/lib/Target/PISA/PISAAsmPrinter.cpp
+4-01 files

LLVM/project ceeedb2 — llvm/lib/Target/PISA PISAAsmPrinter.cpp

Formatting fix
DeltaFile
+2-1llvm/lib/Target/PISA/PISAAsmPrinter.cpp
+2-11 files

LLVM/project 0e4947d — llvm/lib/Target/PISA PISAAsmPrinter.cpp, llvm/test/CodeGen/PISA asm-printer-unusual-vector-global.ll

Add a test for reportFatalUsageError
DeltaFile
+8-0llvm/test/CodeGen/PISA/asm-printer-unusual-vector-global.ll
+2-3llvm/lib/Target/PISA/PISAAsmPrinter.cpp
+10-32 files

LLVM/project 638359b — llvm/lib/Target/PISA PISAAsmPrinter.cpp, llvm/test/CodeGen/PISA asm-printer-fp-inline-asm.mir

Fix printing FP immediates
DeltaFile
+23-0llvm/test/CodeGen/PISA/asm-printer-fp-inline-asm.mir
+9-2llvm/lib/Target/PISA/PISAAsmPrinter.cpp
+32-22 files

LLVM/project a6a9534 — llvm/lib/Target/PISA PISAAsmPrinter.cpp, llvm/test/CodeGen/PISA unreachable.ll store.ll

Fix issues raised in earlier PRs
DeltaFile
+111-93llvm/lib/Target/PISA/PISAAsmPrinter.cpp
+11-0llvm/test/CodeGen/PISA/asm-printer-unsupported-vector-hint.ll
+3-3llvm/test/CodeGen/PISA/load.ll
+2-2llvm/test/CodeGen/PISA/unreachable.ll
+2-2llvm/test/CodeGen/PISA/store.ll
+2-2llvm/test/CodeGen/PISA/return.ll
+131-1026 files

LLVM/project 2d4c452 — llvm/lib/Target/PISA CMakeLists.txt PISAAsmPrinter.cpp, llvm/test/CodeGen/PISA unreachable.ll return.ll

Add PISA AsmPrinter

Add PISAAsmPrinter to complete the codegen pipeline with end-to-end code
emission.
DeltaFile
+933-0llvm/lib/Target/PISA/PISAAsmPrinter.cpp
+352-0llvm/test/CodeGen/PISA/store.ll
+350-0llvm/test/CodeGen/PISA/load.ll
+37-0llvm/test/CodeGen/PISA/return.ll
+14-0llvm/test/CodeGen/PISA/unreachable.ll
+1-0llvm/lib/Target/PISA/CMakeLists.txt
+1,687-06 files

LLVM/project 3422b14 — llvm/lib/Target/PISA PISATargetMachine.cpp PISAOptimizeRedundantCopies.cpp, llvm/test/CodeGen/PISA asm-printer-fp-inline-asm.mir

Adjustments after rebase
DeltaFile
+16-1llvm/lib/Target/PISA/PISAOptimizeRedundantCopies.cpp
+0-2llvm/lib/Target/PISA/PISATargetMachine.cpp
+1-1llvm/test/CodeGen/PISA/asm-printer-fp-inline-asm.mir
+17-43 files

LLVM/project 1a7ae94 — llvm/test/CodeGen/PISA asm-printer-unsupported-vector-hint-fp128.ll

Add asm-printer-unsupported-vector-hint-fp128.ll test
DeltaFile
+11-0llvm/test/CodeGen/PISA/asm-printer-unsupported-vector-hint-fp128.ll
+11-01 files

LLVM/project 43595c3 — llvm/test/CodeGen/PISA asm-printer-special-globals.ll

Add asm-printer-special-globals.ll to test isIgnoredIntrinsicGlobal
DeltaFile
+48-0llvm/test/CodeGen/PISA/asm-printer-special-globals.ll
+48-01 files

LLVM/project 09bbba1 — llvm/test/CodeGen/PISA load.ll

Remove -verify-machineinstr
DeltaFile
+2-3llvm/test/CodeGen/PISA/load.ll
+2-31 files

LLVM/project a87c8aa — llvm/lib/Target/PISA PISAVerifyTypes.cpp PISAVerifier.cpp

Add file headers
DeltaFile
+6-0llvm/lib/Target/PISA/PISAPropagateNullPointers.cpp
+5-0llvm/lib/Target/PISA/PISAVerifyTypes.cpp
+5-0llvm/lib/Target/PISA/PISAVerifier.cpp
+5-0llvm/lib/Target/PISA/PISAScopeSelector.cpp
+5-0llvm/lib/Target/PISA/PISAReplaceIntrinsics.cpp
+5-0llvm/lib/Target/PISA/PISAOptimizeSubregAccess.cpp
+31-014 files not shown
+101-020 files

LLVM/project e799504 — llvm/lib/Target/PISA PISATargetMachine.cpp

Improve comment
DeltaFile
+2-1llvm/lib/Target/PISA/PISATargetMachine.cpp
+2-11 files

LLVM/project 8a9d68e — llvm/lib/Target/PISA PISAKernelByValArgsLowering.cpp

Formatting fix
DeltaFile
+4-3llvm/lib/Target/PISA/PISAKernelByValArgsLowering.cpp
+4-31 files

LLVM/project 04f8e35 — llvm/lib/Target/PISA PISALegalizeSubregAccess.cpp PISALegalizeCalls.cpp

Add PISA codegen pipeline and lowering passes

Add the IR- and MIR-level passes that make up the PISA code generation
pipeline and wire them into PISAPassConfig in PISATargetMachine:

- Intrinsic handling: PISAEmitIntrinsics, PISAExpandIntrinsics,
    PISAReplaceIntrinsics
- Call/ABI lowering: PISALegalizeCalls, PISAKernelByValArgsLowering
- IR preparation: PISAPropagateNullPointers, PISALayout, PISAConstProp
- Legalization/verification: PISALegalizePredicates, PISAVerifyTypes,
    PISAVerifier
- Post-selection: PISAScopeSelector, PISACacheHintSelector,
    PISALegalizeSubregAccess, PISAOptimizeSubregAccess,
    PISAOptimizeRedundantCopies, PISAMarkConvergentNoMerge,
    PISAInsertLifetimeStart

PISAPassConfig now overrides the GlobalISel and pre/post-regalloc hooks
to run these passes, disables the machine passes that assume physical
registers, and runs the load/store vectorizer and atomic expansion in

    [4 lines not shown]
DeltaFile
+994-0llvm/lib/Target/PISA/PISALegalizePredicates.cpp
+751-0llvm/lib/Target/PISA/PISAInsertLifetimeStart.cpp
+581-0llvm/lib/Target/PISA/PISALayout.cpp
+565-0llvm/lib/Target/PISA/PISAEmitIntrinsics.cpp
+505-0llvm/lib/Target/PISA/PISALegalizeCalls.cpp
+435-0llvm/lib/Target/PISA/PISALegalizeSubregAccess.cpp
+3,831-021 files not shown
+6,216-5927 files

LLVM/project 151e300 — llvm/lib/Target/PISA PISALegalizeCalls.cpp

Simplify, remove redundant comment
DeltaFile
+10-14llvm/lib/Target/PISA/PISALegalizeCalls.cpp
+10-141 files