[AMDGPU] Ignore edges from the def block in PhiIncomingAnalysis (#232297)
PhiIncomingAnalysis inserts the def block into the set of reachable
blocks so that it acts as an end point for the traversal, but it also
counted it as a reachable predecessor when deciding whether an incoming
block is a source. An edge from the def block to an incoming block
starts a new trip around a loop through the def block, so it does not
mean that some lanes may have taken their value from an earlier incoming
block.
This affects lane mask phis in loops where the header has a divergent
branch to the latch: the header phi merged the value from the latch, and
the latch phi merged the value from the header, even though EXEC is the
same at the end of the header and at the end of the latch, so the merged
bits could only belong to lanes that had already left the loop.
This relies on the incoming block's terminator not enabling any lanes
that were inactive in the block. The only terminator that could do that
is SI_ELSE, and a structurized CFG never puts an SI_ELSE block in a cycle
[2 lines not shown]
acpi_ec: Interpret a relative ECDT's EC_ID as an absolute namepath
This commit makes the Elan touchpad (ELAN06FA) on the Lenovo Thinkbook
14 6G attach at boot by resolving the ECDT's relative EC_ID path from
the namespace root.
The motherboard supports multiple touchpad models (Synaptics, Elan, ...)
As a result, the firmware defers the selection until runtime:
- touchpad device _INI method queries the embedded controller (EC),
- determines the actual model installed
- writes the correct _HID and I²C slave address
In acpi_ec_ecdt_probe(), the ECDT's EC_ID string is resolved with a NULL
scope. However ACPICA only accepts absolute paths in this context, while
the EC_ID provided by this machine's firmware is relative.
Although this is not specification-compliant, this change interprets
the relative EC_ID as an absolute namepath from the namespace root.
[3 lines not shown]
[MLIR][Vector] Lower fixed two-stream transposes to interleave ops (#237937)
Lower fixed-size rank-2 `vector.transpose` operations with a dimension
of size two to fixed-size `vector.interleave` or `vector.deinterleave`
operations. This keeps the lowering entirely VLS: it introduces no
scalable vectors, `vscale`, runtime loops, masks, or scratch buffers.
Preserving the transpose as structured vector operations avoids
elementwise expansion. For `vector<64x2xf32>`, this eliminates 128
`extractelement` and 128 `insertelement` operations. In an end-to-end
load–transpose–store benchmark on Neoverse N2, the generated assembly
decreased from 78 to 54 instructions, stack usage from 128 to 64 bytes,
compilation improved by 10.9× in MLIR and 2.1× in `llc`
The transformation remains opt-in because profitability depends on the
shape and target. It is exposed through the Transform dialect and tested
in both transpose directions, including unsupported and scalable-vector
cases.
Assisted by: GPT-5.6 Sol
[LVI][CVP] Consider pointer provenance when pointer equality is assumed (#239218)
Similarly to what GVN and SCCP already account for, make sure pointer
substitutions pass through canReplacePointersIfEqual(), subject to its
approximations. When LVI derives a pointer constant from an equality
predicate, such a constant may have different or non-existent pointer
provenance than the original value, and may therefore not be freely
substituted for it.
Fixes: https://github.com/llvm/llvm-project/issues/163144.
www/py-calibreweb: Backport upstream patch
archivers/py-py7zr that this port depends on via METADATA option
got updated to v1.1.4, so backport upstream patch for the support.
PR: 301067
MFH: 2026Q4
(cherry picked from commit 1ac23752855f6ac6920dd2167144f9deca348a5b)
[mlir][vector] Add `getUnrollOrder` to `VectorUnrollOpInterface` (#243527)
In essence, the unrolling order depends on the underlying Op, so it is
natural to add `getUnrollOrder` to `VectorUnrollOpInterface`. This
change helps us unify unrolling patterns in `VectorUnroll.cpp`.
In addition, `UnrollVectorOptions` gains two new fields:
1) `bool reverseDefaultTraversalOrder = false;`
2) `SmallVector<int64_t> unrollOrderForContractOp`
The first one is self-explanatory. The second one is currently driven by
the test pipeline option, e.g.:
* `-test-vector-unrolling-patterns="unroll-based-on-type
unroll-order=2,0,1"`
The provided unrolling order is only used when unrolling ContractionOp,
hence `unrollOrderForContractOp` rather than some more generic name. It
effectively replaces `traversalOrderCallback`, which was mostly used in
TestVectorTransforms.cpp (the remaining user in `GPUTransformOps.cpp`
[16 lines not shown]
www/py-calibreweb: Backport upstream patch
archivers/py-py7zr that this port depends on via METADATA option
got updated to v1.1.4, so backport upstream patch for the support.
PR: 301067
MFH: 2026Q4
18758 autofs: mkdir should return EEXIST if directory exists
Reviewed by: Toomas Soome <tsoome at me.com>
Reviewed by: Bill Sommerfeld <sommerfeld at hamachi.org>
Approved by: Robert Mustacchi <rm at fingolfin.org>
[RelLookupTableConverter] Add support for multiple uses (#244625)
This adds support for uses of the lookup table in multiple gep+load
pairs (including in different functions), as long as *all* of them can
be converted.
I've factored out the use analysis logic to make it easier to extend
this to support uses through phis/selects in the future.
[mlir][ODS] Register the operations of a dialect by default
Dialects registered their ODS operations by expanding `GET_OP_LIST` into
`addOperations` in `initialize`, while sharded and partitioned dialects
had to call the generated `register<Dialect>Operations` themselves.
This was not only an inconsistent interface but also boilerplate for every dialect definition.
Like attributes and types do since https://github.com/llvm/llvm-project/pull/243481, operations are now only registered by a generated
`register<Dialect>Operations` hook that the generated dialect
constructor calls, for all generated files whether sharded, partitioned
or neither (i.e., we are consistent again!).
Contrary to attributes and types, this is the default, as
almost every dialect defines operations in ODS. Dialects without
operations, or that register them manually, set
`useDefaultOperationRegistration` to 0. `-op-registration-name` names the
hooks of dialects whose operations are generated from several files.
Dialects whose `initialize` would now be empty can set `hasInitializer`
to 0 instead of defining an empty one.
[9 lines not shown]
[mlir][ODS] Add partitions for attributes and types
Allow attributes and types to be grouped into named partitions, like
ops. Each def can set `partition` to a `Partition` record. Passing
`-attrdefs-partition=<name>` or `-typedefs-partition=<name>` to the
attrdef/typedef decls and defs generators then emits only the defs of
that partition. A large dialect can thus split its attributes and types
over several compilation units with narrower headers.
The implementation mirrors the approach used in op partitioning
with a `register<DialectClass>Attributes` function (or Types) is used to register every attribute (or type) of the dialect and dispatches to partition specific functions.
The `generated{Parser,Printer}` function saw the biggest change.
It is not generated as `generated<DialectClass>{Attribute,Type}{Parser,Printer}` which is a method with public linkage.
This method is also generated for non-partitioned dialects and the old `generated{Parser,Printer}` function soft-deprecated (but for now retained for migration purposes).
The additional testing, the test dialect's attributes and types are split into the
partitions `Core` and `Syntax`.
This roughly halves the compile time (15.1s -> 6.7s + 6.9s) and peak memory (721 MiB -> 385 and
376 MiB) of the largest test dialect attribute compilation unit.
[2 lines not shown]
[mlir] Fix scalable index handling and support scalable forall tiling (#235596)
Fixes https://github.com/llvm/llvm-project/issues/150203.
`tile_using_forall` accepts `tile_sizes [[8], 1]`, but the parser drops
the scalable flag and prints it back as `[8, 1]`. At `vscale = 2`, this
requests a tile size of 8 instead of 16. The bug changes the requested
tiling even when numerical results remain correct.
Preserve the flags in `scalable_sizes` and use the SCF tile-size
callback to materialize each nonzero scalable factor times
`vector.vscale`, after checking the target's tiling interface and tensor
semantics. Materialization happens separately for each payload target to
preserve SSA dominance across functions. Zero sizes remain untiled, and
omitted flags retain fixed-size behavior.
Parser overloads that cannot return scalable flags now diagnose scalable
indices instead of discarding them. Previously accepted markers in SCF
bounds and pack/unpack inner tiles are now rejected intentionally.
[28 lines not shown]
[BOLT][DWARF] Do not modify file name entries in CU line tables (#241862)
When rewriting a compile unit's line table, we should make sure that we
don't modify the file name list. In turn, this means that BOLT doesn't
have to update `DW_AT_decl_file` and `DW_AT_call_file` values when
rewriting debug info, as the same index should be used in both the input
and the output.
For this, we explicitly require that the same index is assigned to the
file name entries in the output table as in the input by passing a
non-zero index to `BinaryContext::getDwarfFile`.
Additionally, DWARF 5 requires that a compile unit's `DW_AT_comp_dir`
and `DW_AT_name` attributes match the corresponding directory and file
name entries in the CU's associated line table. However, input files may
not always have correct DWARF debug info.
Instead of relying on the inputs being correct, we should use the file
name from the input line table as the correct value so that we don't
[3 lines not shown]
Firewall: Alias: align category handling with how firewall and nat rules already do it (#11293)
* Firewall: Alias: align category handling with how firewall and nat rules already do it
* Also change the enabled column header to be the same as in firewall/nat rules
* Fix width too
* Review comments @swhite2