[AArch64] Handle poison shuffle elements in tryToConvertShuffleOfTbl2ToTbl4 (#247253)
Part of fixing #244169, this folds undef elements in the input shuffle
to out of range zero elements in the produced tbl4.
[flang][Lower] Add coarray explicit initialization support (#237312)
Add support for explicit initialization of coarray variables.
Initialization occurs after the variable is allocated and declared,
since allocation is handled by PRIF at runtime.
---------
Co-authored-by: Dan Bonachea <dobonachea at lbl.gov>
Co-authored-by: Eugene Epshteyn <eepshteyn at nvidia.com>
[X86] Only drop VZEXT_MOVL node if the upper elements are known zero and never undef/poison (#245048)
SimplifyDemandedVectorEltsForTargetNode was using MaskedVectorIsZero
(ComputeKnownBits) to determine if a VZEXT_MOVL node was superfluous,
but KnownBits analysis doesn't guarantee that the value isn't
UNDEF/POISON - so we must check for that as well to ensure the result is
always zero.
We rely on the VZEXT_MOVL pattern to fold with many
conversion/truncation nodes that implicitly leave the upper elements
zero - so we need to add the missing the necessary
isGuaranteedNotToBeUndefOrPoison handling to many of these.
Fixes #244566
[DAG] visitEXTRACT_VECTOR_ELT - fix shadow warning. (#248027)
linter is warning about the local "SDValue Elt" variable shadowing the
original "int Elt" element index.
Use the getExtractVectorElt helper and rename variable.
firmware: do revision/patch and .0 version strips where they matter
This moves stripping to the functions it matters. Also reduces diff
against stable.
Reland "Improve isGuaranteedNotToBeUndefOrPoison for global variables (#247136)" (#247682)
This was reverted by #247651 due to an issue with getGlobalSize not
handling opaque struct types. The fix is trivial and we can just return
0 for those cases. Added an extra freeze_of_gep_opaque_global test for
this in InstCombine/freeze.ll.
kobo: Fix detection of the non-removable SD card.
The SD card was not recognized as a non-removable card.
Tested: KOBO and NETWALKER kernels build with no warnings.
On a Kobo Glo (N613), ld0 did not attach before this change. With
this change, "ld0 at sdmmc0" appears and the card is read in 4-bit
mode at 50 MHz. NETWALKER is build-tested only.
Services: Kea DHCPv4/6: Offer one "Add Reservation" button per lease identifier
A reservation is matched on exactly one identifier (MAC address or
client id for DHCPv4, DUID or MAC address for DHCPv6), but the leases
pages passed both to the reservation dialog, which the model then
refused to save.
Show a button for each identifier the lease has and pass only that one,
so the choice stays with the user and the dialog can be saved as is.
Co-Authored-By: Claude Fable 5.2 <noreply at anthropic.com>
(cherry picked from commit afb5708cd9182567847612c9105d4ff674fe468a)
interfaces: ifctl: remove eval and hash interface names for variable use
Simplify the export and print and use a md5 checksum. We could still
return garbage names to the caller, but that's only because they do
exist and FreeBSD virtually has no restrictions on the interface name
except when tools prohibit something due to implementation choices.
Reported by: squirt1e, outis, atum (MiniMax Cyber)
(cherry picked from commit 80f190d8a61bd2cb42e3b6f9f5f0134658791561)
[DAG] Add trunc(select) narrowing tests (NFC)
DAGCombiner::visitTRUNCATE narrows trunc(select c, a, b) to
select c, (trunc a), (trunc b) when truncating is free. These tests pin
its current output for #223763, which stops it for i8 on X86 with CMOV.
All test IR is what opt -O2 produces for x86-64, s390x and amdgcn with
their real datalayouts, so it is IR the backend can see. InstCombine
already narrows a trunc of a select with a constant arm, so that case
only comes from truncates the DAG creates, here a shift amount.
X86 (x86-64, i686 with and without CMOV):
- trunc_select_i8: computed arms of an i32 select truncated to i8. With
CMOV, LowerSELECT widens the i8 select with a MOVZX of each arm
computed in i8.
- trunc_select_i32: an i64 select truncated to i32, which has a CMOV of
its own width.
- trunc_select_i7: an illegal type, legalized to i8.
- trunc_select_shift_amount: a select of two constant shift amounts,
[14 lines not shown]
[AMDGPU] Preserve flags in min3/max3 combines (#248023)
The combines:
min(min(a, b), c) -> min3(a, b, c)
min(a, min(b, c)) -> min3(a, b, c)
min(min(a, b), min(c, d)) -> min(min3(a, b, c), d)
dropped the flags on the new nodes. Keep the flags that are common to all of
the nodes being replaced.
Without nnan the new 2-operand node in the last case may be lowered with an
extra canonicalize of its operand, and users of a min3/max3 may need a NaN
check that would otherwise be known to be redundant.
Assisted-by: Claude Fable 5.2 <noreply at anthropic.com>
IDS: add a timeout to rule downloads (#11303)
A server that accepts the connection and never answers kept
rule-updater.py waiting indefinitely while it holds the lock, so every
later "ids update" exited early while configd reported OK.
(cherry picked from commit 0aa19d8c001cb9dd6d0d22a6c5ab359ef4ab033b)
IDS: list rotated alert logs in rotation order (#11295)
The alert log selector listed the eve.json files sorted as text, so
with more than ten rotated logs eve.json.10 came before eve.json.2
and the dates were out of order. Sort on the rotation number instead.
(cherry picked from commit 2b8c230c17e7ebcd9b022a5343fda32478ee2033)