[X86][APX] Test the relocation of an NF add
test_regclass_not_updated_by_regalloc_2 only produced an NDD/NF add
with a GOT operand because the allocator happened to give the add a
destination different from its source. With SlotIndexes compaction it
picks the same register, so the add is compressed to the legacy form
and the CODE_6 TODO lost its test.
Add a function whose add keeps its source live, so it stays NDD and
becomes NF under any allocation.
[X86][APX] Keep hoist-folded-copy test effective
inline-spiller-hoist-folded-copy.ll reproduces a null VNInfo
dereference in HoistSpillHelper that needs greedy to fold a spill
into the COPY inserted by an NDD reload fold. SlotIndexes compaction
shortens the outer loop in index space, greedy spills differently,
and the test passes even with the fix reverted.
Add four empty asm statements to lengthen the loop again. The test
then crashes without the fix whether compaction is on or off.
[X86] Enable SlotIndexes compaction by default
Compacting SlotIndexes before greedy allocation drops the entries of
erased instructions, so live range sizes and instruction distances
reflect the code being allocated rather than how much was erased
before it. AMDGPU has done this since #235806; do the same for X86.
Codegen changes only through allocation: no new crashes, verifier
errors or allocation failures in the lit suites, including
EXPENSIVE_CHECKS, and a stage-2 build of LLVM, clang and lld with
-verify-machineinstrs passes its own tests. On llvm-test-suite at -O3,
spills drop 0.3% and .text 0.06%, with compile time unchanged.
Most test updates are regenerated checks. misched-matmul now inserts
20 spills instead of 24. live-debug-vars-stale-slotindexes.mir gets
one more use of %27 so that accumulate_fit still reaches the stale
index path it was written for.
archivers/miniz: Add new port
Miniz is a lossless, high performance data compression library in
a single source file that implements the zlib (RFC 1950) and Deflate
(RFC 1951) compressed data format specification standards. It
supports the most commonly used functions exported by the zlib
library, but is a completely independent implementation so zlib's
licensing requirements do not apply.
https://github.com/richgel999/miniz/
PR: 300247
dns/ddclient: split native backend into os-dyndns (#5994)
The initial scope was splitting the code into two plugins, os-ddclient and os-dyndns.
The plugin code was copied without too many adjustments, just the backend selection has been removed as configurable value as installing either one or the other plugin will now replace that decision.
No other cleanups have been made, these will be done later.
[X86] Add the displacement first when splitting a slow 3-operand LEA (#246869)
Make `processInstrForSlow3OpLEA` emit the displacement add first when it
splits a slow LEA into two adds, so that only one add waits for a late
index.
Fixes #245559
Assisted-by: Claude Code (Claude Opus 5.5)
[lldb][test] Print API test results per debug info variant (#245631)
At the end of a lit run that includes API tests (`check-lldb`), print
how each debug info variant (dwarf, dwo, dsym, pdb, ...) did, to give a
sense of how well each one is supported.
- `LLDBTestResult` counts outcomes per debug info variant and dotest
prints them as a `Debug info breakdown: {...}` line, next to the
existing `Skip breakdown` line.
- The lit test format adds up these lines across all API tests and
prints a table once lit exits.
- `getVariant` now uses `_testMethodName` instead of `testMethodName`,
which is only set in `setUp`, so the variant is also known for tests
skipped before `setUp` runs.
Tests without a variant (`NO_DEBUG_INFO_TESTCASE`,
`@no_debug_info_test`) are not included.
Example:
[9 lines not shown]
[mlir][LLVM] Add an inherent strictfp attribute to intrinsic ops
Alternative to the discardable llvm.strictfp attribute: give every
LLVM_IntrOp an optional `strictfp` UnitAttr in baseArgs. createIntrinsicCall
sets the call-site strictfp attribute from it, and the intrinsic import
reads it back for every op that has the attribute. Intrinsics with
hand-written LLVM IR builders set it themselves. Constrained and debug
intrinsics opt out with `requiresStrictfp = 0`.
Assembly formats without prop-dict print `strictfp`, and callers of
builders that lost their defaults pass the attribute explicitly.
Assisted-by: Claude Code (Opus 5.5).
[mlir][LLVM] Default intrinsic op arguments to baseArgs (NFC)
LLVM_IntrOpBase now sets its arguments to baseArgs, and intrinsics add
their own with `let prepend arguments` instead of concatenating baseArgs
themselves or taking an `Arguments` mixin. An assert in LLVM_IntrOpBase
rejects arguments that do not end with baseArgs. The LLVM and ROCDL
intrinsics and the intrinsic ODS generator use the new form, and the
generator leaves the access group and alias analysis attributes to
baseArgs. baseArgs stays empty unless an intrinsic enables one of the
requires* flags, so the generated ops do not change. A new per-intrinsic
flag then needs only a change to LLVM_IntrOpBase.
Assisted-by: Claude Code (Opus 5.5).
[mlir][SPIR-V] Allow non-zero size in lifetime ops (#247281)
Non-zero sizes are allowed with physical addressing, which implies the
Addresses capability