[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
[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 .
[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.
[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.
[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.
[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
[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
[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
[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
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]