NAS-145410 / 28.0.0-BETA.1 / Make `alert.oneshot_replace` reuse existing alerts (#20297)
This is necessary for future work (conflicting paths alerts).
With `reuse`, an instance that matches an existing alert (same class and
key) continues that alert.
Without `reuse`, the method runs `oneshot_delete` with no query, then
`oneshot_create` for every instance. Each step sends its own changes.
NAS-145422 / 28.0.0-BETA.1 / Fix flaky FTP tests (#20306)
Preserving configs from previous test runs made tests unstable as they
became dependent on unrelated and uncontrollable environment.
NAS-145423 / 28.0.0-BETA.1 / Fix queries like `["event_data.method", "in", ["network.configuration.update", "smb.update"]]` (#20307)
It failed with TypeError: 'in <string>' requires string as left operand,
not NoneType at plugins/datastore/filter.py:13.
Not used by any of the current code, it was found by an agent
investigating an unrelated bug.
*Cause*: for JSON-path filters, filter.py turns a list or dict value
into one JSON string. That is right for `=`, as in
`["event_data.params", "=", [1]]`. But `in` and `nin` got the whole list
as one string, so `in_()` failed. This was added in f8bf3b9578. Before
that commit, in on a JSON path worked, so this is a regression.
[lld] Address review: move thread_local comment, assert Relocation is trivially destructible
Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
Move sysctl_securelevel() out of unnecessary vslock. This path is
mp-safe, but the new `securelevel' value should be installed with
kernel lock held because all corresponding read paths are mp-safe
yet.
ok kirill
[ARM] Mark SEH_EpilogEnd as a barrier (#238534)
On Windows, the ARM epilogue includes the final return or tail branch,
so since 6c34ed7b365b (#184953) ARMFrameLowering::emitEpilogue emits
the SEH_Nop_Ret/SEH_SaveRegs_Ret and SEH_EpilogEnd pseudos after that
terminator. analyzeBranch gives up on these terminators, and
MachineBasicBlock::getFallThrough then checks back().isBarrier(), which
is SEH_EpilogEnd rather than the return. A returning block that still has
an EH pad successor laid out after it, as with an __except handler, is then
considered to fall through, which trips the "Unexpected block with
un-analyzable fallthrough!" assertion in MachineBlockPlacement.
SEH_EpilogEnd is only emitted at the end of return and tail-call blocks
(shrink-wrapping is disabled with Windows unwind info), so mark it as a
barrier, like SpeculationBarrierISBDSBEndBB.
Assisted-by: Claude Opus 5.5
[lld] Address review: move thread_local comment, assert Relocation is trivially destructible
Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
vio(4): check for csum offload before using LRO
We need a double check here for this illegal behavior,
cause not all Hypervisor follow the VirtIO specification.
And Linux has this check, too.
Reported and tested by Ali Raheem.
ok stsp@
discussed with sf@
[X86] lowerShuffleAsRepeatedMaskAndLanePermute - bail out if mask matches broadcast mask up to undefs (#245053)
When the input mask matches the broadcast mask up to undef elements,
`lowerShuffleAsRepeatedMaskAndLanePermute` returns the original shuffle
with its undef filled in.
`lowerShuffleAsLanePermuteAndPermute` can then create a shuffle that
again has a mask that matches the broadcast mask up to undef elements,
so the two lowerings loop forever in op legalization.
Fixes #245049
[clang][modules-driver] Add docs & release notes for the modules-driver (#203387)
This adds documentation and an entry in the release-notes for the new
and experimental `-fmodules-driver` feature.
[SelectionDAG] Reuse the scheduler for all blocks of a function (NFC) (#242660)
CodeGenAndEmitDAG creates and deletes the scheduler for each block. This
triggers a large number of allocations (priority queue, hazard
recognizer, live register arrays, SUnits)
Create the scheduler once per function instead, and reset the per-block
state that previously started fresh with each new scheduler. The
priority queues now compute their register pressure limits when a block
is scheduled instead of on construction, as the limits depend on
function state that can change during selection, e.g. whether a frame
pointer is needed. Schedulers registered via RegisterScheduler now must
support being run on more than one block.
The "Instruction Scheduling Cleanup" timer is removed, and the pre-RA
hazard recognizer is constructed once per function, so its -debug output
is printed once per function.
stage1-O3: -0.12%
[11 lines not shown]
RuntimeLibcalls: Add __sync_synchronize
Fix hardcoding a function name and not going through
RuntimeLibcallsInfo.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
[mlir] Avoid eager invalidation in `DeadnessCache` (#244443)
Obviously, any performance problem can be fixed with just another level
of caching (or two).
An attempt to properly fix
https://github.com/llvm/llvm-project/pull/243287
Original impl was eagerly invalidating deadness cache on each IR
modification, which may include nested ops tree walks, causing some
operations to become quadratic.
Now, in addition to caching deadness state per op, also cache the
invalidation requests so actual nested ops walk is delayed to the next
`isOpTriviallyDead`. Also, as invalidation requests are stored in
`SetVector` which will need to be traversed when op is deleted making
bulk deletion quadratic, maintain separate `cancelled` cache, which will
be flushed before `pending` is flushed, lol.
[9 lines not shown]
[X86] canonicalizeShuffleWithOp - VZEXT_MOVL(LOGIC(X,Y)) -> LOGIC(VZEXT_MOVL(X),VZEXT_MOVL(Y)) (#245974)
Attempt to fold VZEXT_MOVL nodes through and/or/xor (but not andnp!)
logic ops to merge with existing shuffles/constants.
Fixing regressions for #244566 - there's more shuffles with implicit
zeros that could potentially use this in the future