[CIR] Fix crashes in the complex constant folders
The folders of `cir.complex.real`, `cir.complex.imag` and
`cir.complex.create` asserted on constants that the `cir.const` verifier
accepts.
`cir.complex.real` and `cir.complex.imag` cast a constant operand to
`#cir.const_complex`. A complex constant can also be `#cir.zero`,
`#cir.undef` or `#cir.poison`. CIRGen emits `#cir.zero` for a
value-initialized complex, so clang crashed on `__real__ CI()`. A part
of `#cir.zero` now folds to the zero of the element type. A part of
`#cir.undef` or `#cir.poison` folds to undef or poison, as the cast
folder does for its operand.
`cir.complex.create` built a `#cir.const_complex` from any two constant
parts. The attribute holds int or float literals only, so its verifier
failed on a part that is undef, poison or a global view. The folder now
leaves such a create alone.
[5 lines not shown]
[LV] Add VPPredInstPHIRecipe::usesScalars override (#247693)
Following a suggestion in a comment on
https://github.com/llvm/llvm-project/pull/245221 I've added the
usesScalars override for VPPredInstPHIRecipe that looks to see if all
the incoming values all have scalar uses. This can help
getScalarizationOverhead to decide if we need to insert scalar results
into lanes of a vector.
I've include PR #247535, since that's the only way I can find to expose
a test for this change. I'll rebase once it lands.
18844 bhyve: overlapping BAR registration can abort
Portions contributed by: Mark Johnston <markj at FreeBSD.org>
Reviewed by: Luqman Aden <luqman at oxide.computer>
Approved by: Dan McDonald <danmcd at oxide.computer>
18835 bhyve: viona should support VIRTIO_NET_F_CTRL_MAC_ADDR
Reviewed by: Luqman Aden <luqman at oxide.computer>
Reviewed by: Kyle Simpson <kyle at oxide.computer>
Approved by: Dan McDonald <danmcd at oxide.computer>
[libc++abi] Mark most functions in private_typeinfo.cpp as inline (#246042)
This allows the compiler to remove functions if they're not referenced
otherwise (e.g. in the vtable), removing some functions from the dylib
that are never referenced otherwise.
build: introduce bundle_aux() and better handle .Build and .Run
When we are merging aux and packages or when packages are first
built using ports stage we have both directories. When packages
stage runs it should extract all aux packages and retain their
.Build markers in the archive. The packages then only retain
their .Run markers. For hotfix/patch runs that's good enough.
For publication we may need to revisit if we don't want to
publish these markers even though they are harmless.
[mlir] Narrow @nicolasvasilache's CODEOWNERS coverage (#244222)
This PR removes @nicolasvasilache's MLIR CODEOWNERS entries outside the
Transform dialect, following the discussion in:
* https://discourse.llvm.org/t/rfc-mlir-align-codeowners-with-active-reviewing/
I used authored commits and PR review searches as a starting point for
checking recent activity. The commands are included below.
The two PRs I identified concern the Transform dialect, so I am
retaining the existing CODEOWNERS entries for that area.
```bash
// Check opened PRs
git log origin/main -i --author='Vasilache' \
--since='2026-01-01' \
--until='2026-12-31' \
--format='%h %cs %an <%ae> %s' | wc -l
[5 lines not shown]
[CodeGen][Rematerializer] Always rollback in the original region
This addresses a subtle issue in the rollbacker which would arise when
rematerizalizing between two adjacent rematerialization regions (i.e.,
the first region's end is the second region's start). When
rematerializing the last instruction of the first region at the
beginning of the second region and rolling back later, the re-created
register would end up in the second region instead of the first because
its re-insertion position was set incorrectly.
This is fixed by ensuring that a deleted register's re-insertion
position is always before all its rematerializations in the same block.
[CodeGen][Rematerializer] Fix region bounds tracking logic
This addresses a few edge-case/rare issues with keeping the bounds of
rematerialization regions valid and up-to-date as rematerializations
happen.
1. An upper region boundary deleted through dead-def elimination needs
to be pushed to the next valid instruction.
2. Updating any region boundary in any case may require updating
boundaries of other "touching" regions to keep them valid too. Issues
could typically happen when a rematerialization region's end would be
the beginning of the next one. Receeding the beginning of the latter
region also requires receeding the ending of the former region to
keep them non-overlapping.
Added unit-tests would crash without changes.
[CodeGen][Rematerializer] Region upper-bounds are not rematerializable (#245642)
Upper-bounds of rematerialization regions should not be considered
rematerializable instructions since they are semantically outside the
regions they delimitate. Rematerializing them would make region bounds
invalid.
[SimplifyCFG] Strip require-preserve-domtree from tests (NFC) (#248707)
Follow up on the stripping out of the DomTree from SimplifyCFG in
c93435d559 ([SimplifyCFG] Strip DomTree, #248854) to remove the
RequireAndPreserveDomTree option completely, stripping it out from all
tests that pass it as a command-line argument to opt.
Assisted-by: llm
[MLIR][SPIR-V] (De)serialize InputAttachmentIndex and PerVertexKHR decoration (#248548)
Per the spec `InputAttachmentIndex` is an unsigned 32-bit integer and
`PerVertexKHR` is a unit decoration.