[AMDGPU] Assume nonzero EXEC at kernel entry for VA_VDST
Waves are launched with at least one active lane, so in a kernel EXEC
can only become zero at an EXEC write that may produce zero. Until such
a write, VALUs after an always-issued VALU are issued as well and may
credit its accesses as VA_VDST successors.
Track this per bracket. It starts set in entry functions, is cleared by
EXEC writes that may produce zero, and merges by intersection. Blocks of
an entry function propagate their state even with no pending events, so
a cleared fact reaches every merge.
Assisted-by: Claude
[AMDGPU] Ignore EXEC writes that cannot zero EXEC for VA_VDST
Only an EXEC write that may produce zero can cause later VALUs to be
skipped. Moves of a nonzero immediate, ORs and WQMs of EXEC, and
S_OR_SAVEEXEC keep a nonzero EXEC nonzero, so pending VA_VDST accesses
keep their credit across them.
Assisted-by: Claude
[AMDGPU] Stop crediting skippable VALUs as VA_VDST successors
When EXEC is zero most VALUs are skipped and never increment VA_VDST,
but lane accesses, V_NOP, VALUs that write an SGPR, VCC or NULL, and
WMMA/SWMMAC are still issued. A skipped VALU therefore must not count as
a successor of a pending access that was issued, which happens across
EXEC writes and after WMMA/SWMMAC and lane accesses.
Mark pending accesses at EXEC writes, and the accesses of WMMA/SWMMAC
and lane accesses, which access VGPRs regardless of EXEC. The other
always-issued VALUs access VGPRs per lane, so they are assumed to access
none when EXEC is zero; they are counted but do not mark their operands.
A marked access keeps the count it had already earned and is otherwise
credited only by later always-issued VALUs and ordered XDL writes. A
later skippable access to the same register does not clear the mark.
Partial waits keep unsatisfied marked accesses pending, and merges take
the smaller count.
Assisted-by: Claude
[2 lines not shown]
[ARM][NFC] Remove global state from ARMLatencyMutations (#246973)
Using a global variable is not thread-safe, results in wrong results if
multiple targets are used in the same process, and a unique_ptr adds an
extra global destructor. Replace with created instances with singleton
ManagedStatic instances of the InstructionInformations.
As ManagedStatics must be constructible without additionally suppliable
parameters, expose the MCInstrDesc array separately (somewhat hacky, but
should still be tolerable).
[AArch64] Fold widened vector reductions to UADDLV/SADDLV (#241875)
Recognize i64 vector.reduce.add reductions fed by zero/sign-extended
NEON vectors and lower them through UADDLV/SADDLV respectively when the
widened sum cannot overflow.
This covers v8i8, v16i8, v4i16, and v8i16 inputs.
Assisted-by: Codex
bootgrid: add asyncDataSources option (#11307)
Introduce a generic asyncDataSources option, that allows for auxiliary data to be fetched in parallel to the primary data fetch. Fetching this data does not affect grid rendering performance. While this data is being loaded, columns marked for this data stay in a pending state and show a spinner until it resolves, at which point the grid formatters wil re-run, updating the cells.
This allows for rendering expensive columns such as firewall rule statistics, as well as host discovery statistics and reverse lookups without affecting the main search endpoint speed.
---------
Co-authored-by: Monviech <gitacc at pischem.com>
[mlir][ExecutionEngine] Stop registering the OpenMP translation in the C API (#246673)
Follow-up to #246443
`mlirExecutionEngineCreate` registered the OpenMP dialect translation in
every context it was called with, since db7cc0348c9a. Every library
embedding the execution engine C API therefore carried the OpenMP
dialect and its translation, one of the most expensive parts of MLIR to
compile, even if it never JITs `omp` IR. The C++ `ExecutionEngine`
registers no translations at all and leaves this to its callers.
Leave the OpenMP translation to the caller as well. The builtin and LLVM
dialect translations are still registered, as every JIT needs them.
C API clients that JIT IR containing `omp` operations now have to
register the translation themselves, e.g. with
`mlirRegisterAllLLVMTranslations`; otherwise engine creation returns
null. The upstream Python bindings are unaffected, since
`_mlirRegisterEverything` registers all LLVM translations for every
[2 lines not shown]
[mlir] Preserve cached operation order through splice (#246641)
Improve `transferNodesFromList` for `mlir::Operation` to preserve the
parent block ordering info as much as possible.
In particular we don't need to invalidate the source block order, and
when the slicing is within the same block and we only move a single
operation we can simply invalidate the one operation instead of the
entire block.
Supersede #246563.
Assisted-by: Codex
py-icecream: updated to 2.3.0
2.3.0
Added: ic.timer, to measure how long code takes, as a decorator or a context manager.
Changed: Colors are turned off when the output isn't a terminal.
Fixed: ic.timer no longer crashes on callables without a __name__, like functools.partial.
Fixed: IndexError when repr() returns an empty string.
Fixed: configureOutput() type hint now accepts a callable prefix.
Fixed: The sdist now includes the tests and tox.ini
Improved: README documents ic.timer, lineWrapWidth, noColor and use_stdout()/use_stderr().
py-email_validator: updated to 2.4.0
2.4.0
Python 3.8 and 3.9 are no longer supported, and Python 3.14 and 3.15 are added to testing.
The original field of the returned validated email object incorrectly un-escaped the local part of the email address. Now it returns the original address, without any display name, as passed to validate_email.
With allow_quoted_local=True, a quoted local part containing U+037E (Greek question mark), which Unicode NFC normalization changes to a semicolon, was returned without its quotes in the normalized address (e.g. a;b at example.com), getting around the re-validation added in 2.2.0. The normalized local part is now quoted according to its normalized form, giving "a;b"@example.com.
When parsing display names, multiple closing angle brackets at the end of the email address is now rejected.
The IPv6 tag of a domain literal is now case-insensitive, as in the RFCs, so me@[ipv6:::1] is accepted (and normalized to me@[IPv6:::1]) when allow_domain_literal=True.
IPv6 domain literals with a zone index are now rejected.
Internationalized domains with a right-to-left label are now rejected if any other label breaks the IDNA Bidi Rule (RFC 5893), such as a label starting with a digit. Such domains, like 1.xn--4dbc.com and xn--4dbc.1.com (1.אב.com and אב.1.com in Unicode), could be displayed identically.
Faster validation of domains without Punycode (xn--) labels.
Internationalized domains longer than 253 characters are now rejected for their length before IDNA encoding, which could take time quadratic in the length of the input.
The command line tool now properly reads boolean environment variables and the DEFAULT_TIMEOUT environment variable.
Improvements in type hinting, code comments, and tests.
[InstSimplify] Handle select of abs / neg.abs via select equivalence (#247093)
`X == 0 ? abs(X) : -abs(X) --> -abs(X)` is already handled by
simplifySelectWithEquivalence, so drop the explicit fold. This also has
the advantage that the generic handling has proper handling for things
like poison-generating attributes...
...except that there was a special case for abs() that actually broke
that special handling, so fix that as well. Affected cases are now
folded in InstCombine by dropping the attribute.
[InstSimplify] Partially handle sel of min/max via select equivalence (#247103)
`(X != Y) ? X : max/min(X, Y) --> X` is already handled via select
equivalence. The `(X == Y) ? X : max/min(X, Y) --> max/min(X, Y)` case
needs a minor improvement to simplifyWithOpsReplaced, so that the X ->
max/min(X, X) replacement is not considered a derefinement (as long as
it has no poison-generating annotations).
This also fixes handling of poison-generating attributes, which are no
longer folded in InstSimplify and get dropped in InstCombine.
Note that the miscompile still exists in the remainder of the transform,
which will be fixed by https://github.com/llvm/llvm-project/pull/246815.
The motivation for this change is to avoid an InstSimplify leftover
there.