[analyzer][NFC] Check the lock state first in BlockInCriticalSectionChecker (#245798)
BlockInCriticalSectionChecker::isBlockingInCritSection is called for
every call. It matched the call against the list of blocking functions
before checking whether any critical section is active, which is rarely
the case and only needs a lookup of the ActiveCritSections trait. Check
the lock state first.
On some LLVM TUs (GVN, LiveVariables, RegionStore, SemaExpr) this
reduces the instructions of the static analyzer by 0.4-0.7%.
Assisted-by: Claude Opus 5.5
Co-authored-by: Gabor Horvath <gaborh at apple.com>
[SystemZ] Fix implicit defs of TRT and TRTR (#246033)
TRANSLATE AND TEST and TRANSLATE AND TEST REVERSE store the function
byte in GR2 and the argument address in GR1, and never modify GR0.
Replace the incorrect R0L implicit def with R2L.
Assisted by: IBM Bob
[SPIR-V] Fix getArg() assert on pointer constants in variadic call arguments (#214136)
`insertPtrCastOrAssignTypeInstr()` looks up the callee's formal
parameter for every pointer constant passed to a call, so a pointer
constant in a variadic position trips `getArg() out of range!`. OpenCL
`printf("%s", "a")` is enough to hit it. Skip operands that have no
formal parameter: like a parameter without a deduced element type, they
are left unchanged.
This PR was generated using AI
Co-authored-by: Marcos Maronas <mmaronas at amd.com>
[SPIRV] Lower llvm.minimumnum and llvm.maximumnum (#231759)
llvm.minimumnum and llvm.maximumnum aborted in the SPIR-V legalizer.
They are now expanded next to llvm.minimum/maximum into minnum/maxnum
(fmin/fmax), first replacing a NaN operand with the other operand and
then fixing the sign of zero, because fmin/fmax neither guarantee
signaling NaN handling nor order -0.0 below +0.0 as LangRef requires.
Split out of #218641.
This PR was generated using AI
firmware: key return moves to -Y for reasons
We want to use -x in opnsense-update for cross-community
installs for the business edition which helps with dev
workflo.
[LinkerWrapper] Do not mistake ld64's -lto_library for -l<libname> (#216939)
On Darwin, clang passes ld64 `-lto_library <path>` and, for LTO links,
`-object_path_lto <path>`. The linker wrapper parsed these as the
`JoinedOrSeparate` options `-l` and `-o`, so the first failed with
`unable to find library -lto_library` and the second became the output
file `bject_path_lto`. This defines both as `Separate` options so they
are forwarded to the linker unchanged.
This PR was generated using AI
[LinkerWrapper] Use a four component triple for the host bundle entry (#216938)
The linker wrapper wrote the host entry of a HIP fat binary with the
default triple normalization, so a three component host triple such as
`x86_64-apple-macosx15.0.0` produced the entry
`host-x86_64-apple-macosx15.0.0`. clang-offload-bundler requires every
entry to be `<kind>-<arch>-<vendor>-<os>-<env>` and rejects that one, so
the HIP link fails. This normalizes the host entry with
`CanonicalForm::FOUR_IDENT`, as the driver already does for its own host
entry.
This PR was generated using AI
[AMDGPU] Do not always keep unclustered schedules under SGPR pressure (#244823)
UnclusteredHighRPStage keeps its schedule without checking the schedule
metric when the region has excess register pressure. With this patch,
that only happens when the schedule before or after has excess VGPR
pressure. SGPRs spills are cheap, and the unclustered schedule mostly
reduces VGPR pressure, so for regions with only excess SGPRs the
schedule metric now decides.
Before this change:
```
buffer_load v1, ...
s_wait_loadcnt 0x0
v_fma v2, v1... ; use load's result
buffer_load v, ... ; next load
s_wait_loadcnt 0x0
...
```
[13 lines not shown]
imgact_elf: Pass program headers to the sv_protect hook
We handle program headers beyond the first page of the file, but
arm64_exec_protect() wasn't updated to handle this. Pass the program
header array directly to the sv_protect hook.
Also fix a pre-existing bug: imgp->et_dyn_addr isn't the right base
address to use for the SV_INTERP case.
Reported by: alc
Reviewed by: alc, kib
Fixes: 804daf166406 ("imgact_elf: read program headers if not contained in the first page")
Fixes: 670af174e27b ("arm64: Enable BTI in the kernel ELF loader")
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D61999
[CIR] Give the #cir.fenv parameters default values
The parameters of `#cir.fenv` were optional, and accessors substituted
a default for an absent one. The default floating-point environment
therefore had several spellings, such as `fenv<>`,
`fenv<except_mode = masked>` and the form CIRGen emits with all three
parameters, each a distinct attribute.
This makes the parameters default-valued: `tonearest`, `masked` and
`false`, the default floating-point environment. A parameter with its
default value is not printed, so each environment has one printed form
and `fenv<>` is the default one. A parameter spelled with its default
value still parses and gives the same attribute. An operation with
`fenv<>` is still constrained. Only an operation without the attribute
is not.
The default of `dynamic_rounding_mode` changes from `unknown` to
`tonearest`, in the documentation and in what the accessor returns for
an absent mode. Lowering already emitted `round.tonearest` for an
[9 lines not shown]
[CIR] Use one check for ignorable FP exceptions
Speculation and lowering each decided on their own whether a
constrained operation can ignore floating-point exceptions, and they
disagreed. An operation with `fenv<strict_except = false>` was
speculatable but lowered to `fpexcept.maytrap`, and one with masked but
strict exceptions was not speculatable but lowered to
`fpexcept.ignore`. `cir.vec.fcmp` never folded a constrained
comparison.
This adds `FenvAttr::canIgnoreExceptions()`, true when exceptions are
masked and not strict, and uses it in all three places:
- Speculation already used this condition and does not change.
- Lowering emits `fpexcept.ignore` when it holds, and otherwise
`fpexcept.strict` or `fpexcept.maytrap` by `strict_except`. Three
hand-written forms change: `fenv<strict_except = false>` goes from
maytrap to ignore, masked exceptions with `strict_except = true` from
ignore to strict, and unmasked or unknown exceptions without
[11 lines not shown]
[SystemZ] Use MSRKC/MSGRKC/MSC/MSGC for smul.with.overflow
On z14 and later (miscellaneous-instruction-extensions 2), lower
ISD::SMULO for i32 and i64 to the multiply-single instructions that
set the condition code. Overflow is reported as CC 3.
Add a SystemZISD::SMULO node and select it with MSRKC and MSGRKC for
register operands, and with MSC and MSGC for a memory operand. This
replaces the wide multiply plus compare of the high half (mgrk/srag/
cgrjlh for i64, lgfr/msgfr/srak/srlg/crjlh for i32) with a multiply
and a branch or select on CC.
Plain 'mul' selection is unchanged. Targets without the extension
keep the generic expansion.
Assisted by: IBM Bob
textproc/py-mkdocstrings-python-legacy: Deprecate/Set to expire
* Upstream repo archived on 26th September 2026.
* Bump PORTREVISION to force a rebuild to inform users about
the deprecation.
MFH: 2026Q4
textproc/py-pytkdocs: Deprecate/Set to expire
* Upstream repo archived on 20th October 2026.
* Bump PORTREVISION to force a rebuild to inform users about
the deprecation.
MFH: 2026Q4