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