[analyzer][NFC] Out-line `CheckerContext::addTransitionImpl` (#248181)
- `CheckerContext::addTransitionImpl` is reached from every
`addTransition` overload and instantiated `CoreEngine::makeNode` and the
`ExplodedNodeSet` calls in every checker TU. Move it into
`CheckerContext.cpp`.
Build-time impact (instructions retired, 196 `lib/StaticAnalyzer` TUs):
- Total: -1.23% (4 paired sweeps, all faster; run-to-run noise 0.2%).
- 97 TUs change by more than 0.15%, by -2.5% over those.
Run-time impact (analyzer, 20 TUs of clang/lib/{AST,Sema,Parse,CodeGen},
elapsed cycles, 10 interleaved rounds per binary, before = merge base
a26d5a8):
- Result: no slowdown detected. Median of per-round totals -0.12%: no
slowdown; total cycles are slightly lower (95% CI -0.21%..-0.08%
excludes zero).
- Total per round (%): -0.05, -0.12, -0.20, -0.11, -0.32, -0.02, -0.01,
-0.30, -0.10, -0.19.
[5 lines not shown]
[NVPTX] Fold predicate only when it has one user (#248159)
This is a perf fix for 9386502801a033a676d9dce8ca8482c0d50e4f43. Folding
the predicate is not beneficial if there are multiple users. In that
case the shared predicate can be kept in a register and we need a
shorter code sequence in the final codegen.
NAS-145547 / 27.1.0 / Fix autorid migration (by anodos325) (#20358)
Prior to TrueNAS 25.10 we exposed a non-default idmap backend for Active
Directory (added in TrueNAS 9.10) that users really shouldn't have been
using because it was non-deterministic in ways that are quite painful to
fix. We removed the backend in 25.10 and had a best-effort migration to
put the user into something equivalent that wouldn't require redoing
ACLs. Overall, the backend was rarely used and so an edge-case in the
migration was missed until recently. This commit fixes the migration
in-place (e.g. doesn't add a new migration). Anyone who was impacted by
it most likely simply rejoined AD after failure on upgrade.
Original PR: https://github.com/truenas/middleware/pull/20352
Co-authored-by: Andrew Walker <andrew.walker at truenas.com>
Fix autorid migration
Prior to TrueNAS 25.10 we exposed a non-default idmap backend
for Active Directory (added in TrueNAS 9.10) that users really
shouldn't have been using because it was non-deterministic in
ways that are quite painful to fix. We removed the backend in
25.10 and had a best-effort migration to put the user into something
equivalent that wouldn't require redoing ACLs. Overall, the
backend was rarely used and so an edge-case in the migration
was missed until recently. This commit fixes the migration in-place
(e.g. doesn't add a new migration). Anyone who was impacted by
it most likely simply rejoined AD after failure on upgrade.
(cherry picked from commit 1d6e57042f6b636513a60337ebedeeb89e93a22d)
NAS-145547 / 28.0.0-BETA.1 / Fix autorid migration (#20352)
Prior to TrueNAS 25.10 we exposed a non-default idmap backend for Active
Directory (added in TrueNAS 9.10) that users really shouldn't have been
using because it was non-deterministic in ways that are quite painful to
fix. We removed the backend in 25.10 and had a best-effort migration to
put the user into something equivalent that wouldn't require redoing
ACLs. Overall, the backend was rarely used and so an edge-case in the
migration was missed until recently. This commit fixes the migration
in-place (e.g. doesn't add a new migration). Anyone who was impacted by
it most likely simply rejoined AD after failure on upgrade.
[mlir][python][dsl] Move the DSL to mlir/python/mlir/dsl
The package moves from mlir/tools/mlir-dsl to the root Python package and
its tests to mlir/test/python/dsl, so they use the lit configuration of the
Python bindings. The MLIR_ENABLE_PYTHON_DSL option and the check-mlir-dsl
target are removed: the DSL is built and tested with the bindings.
Co-Authored-By: Claude Fable 5.2 <noreply at anthropic.com>
[Attributor][NFC] Remove AAValueSimplify
Unused since bf789b1957ef replaced it with AAPotentialValues. Seed
AAPotentialValues instead in allow_list.ll.
Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
[ValueTracking] Fix arg conflation in ComputeMaxSignificantBits (#248129)
The function llvm::ComputeMaxSignificantBits passes a Depth integer in
place of the UseInstrInfo boolean to ComputeNumSignBits, which was
unflagged to date due to implicit conversions. Fix this.
Assisted-by: llm, for testing
[flang] Optionally warn when a structure constructor nulls a pointer subcomponent (#247865)
When a structure constructor omits a component whose type has default
initialization, that component gets the default initialization.
In the case where a pointer subcomponent has no initializer of its own,
the standard (F'2023 7.5.10 p3, 19.5.2.2 p1, 7.5.4.6 p7) specifies that
it is undefined. However, flang makes such a pointer subcomponent
NULL().
This PR adds a usage warning for it which is off by default. The
warning is enabled by -pedantic or -Wdefault-init-null-pointer.
The existing -Wdefault-struct-constructor-null-pointer warning catches
cases
where the pointer is omitted directly. This PR and
-Wdefault-init-null-pointer
cover a pointer nested inside an omitted component.
Follow-up to #247370.
Assisted-by: AI
net-im/continuwuity: Update to 26.11.0
Experimental features are now opt-in and have to be enabled in the new
experiments section, and support for unauthenticated media is gone along
with the allow_legacy_media and freeze_legacy_media options. The
release also carries security fixes.
Changelog: https://forgejo.ellis.link/continuwuation/continuwuity/releases/tag/v26.11.0
Sponsored by: Netzkommune GmbH
[PowerPC] Enable SlotIndexes compaction by default
Greedy measures live ranges in slot indexes, and instructions erased
before allocation (by PHI elimination, two-address lowering and the
coalescer) leave entries behind that make ranges look longer than
they are. Opt PowerPC in to dropping them, as AMDGPU and ARM do, so
allocation works with real distances. Passing
-greedy-compact-slot-indexes=false restores the old behaviour.
On CTMark (pwr8, pwr10, AIX, ppc32), .text and llc compile time move
by less than 0.03% and evictions drop by 1.5-5.8%.
The test updates are register allocation changes; csr-split.ll gets
back the live range split it was written to check.
[RISCV] Fix RVV callee-saves in realigned frames
The prologue saves RVV callee-saved registers before it realigns SP
and sets up BP, but their slots were addressed from the realigned SP
or BP. The epilogue reloaded them from the wrong address, BP frames
stored them through the caller's s1, and their CFI was wrong.
Address these slots from FP, which does not move, and derive their
CFI from getFrameIndexReference so the two cannot diverge.
Fixes #244792
[RISCV] Add tests for RVV CSRs in realigned frames
Precommit the tests for #244792 so that its fix shows up as a diff.
The checks record the current, wrong output: the prologue saves the
vector callee-saved registers before it realigns the stack, and the
epilogue reloads them from a different address.
gsl: update to 2.9.
* What is new in gsl-2.9:
** new implementation of gsl_cdf_tdist_Pinv and gsl_cdf_tdist_Qinv
** fix for bug #45924 (new implementation of gsl_cdf_beta_Pinv and
gsl_cdf_beta_Qinv)
** fix for bug #39057 (new implementation of gsl_cdf_gamma_Pinv and
gsl_cdf_gamma_Qinv; reported by Y. Zhou)
** fix for bug #68518 (reported by Fermé le Lundi)
** fix for bugs #67058 and #68415 (statistics functions now return NaN
for an empty dataset; reported by Z. Yuan and Fermé le Lundi)
** close bug #68704 (added gsl_histogram_variance,
gsl_histogram2d_xvariance and gsl_histogram2d_yvariance;
[369 lines not shown]
Don't treat distinct literal substrings as equal
Expression equality compares dummy arguments by position, as needed
when comparing interfaces (F2023 15.3.2.2). As a result, a host dummy
and an internal procedure dummy at the same position currently compare
equal, even though they are distinct entities (19.5.1.4).
This was not a problem before because literal substrings never compared
equal, so their bounds were never considered. Now that literal
substrings are compared by value, 'ab'(i:i) with host dummy i compares
equal to 'ab'(j:j) with internal dummy j. This can cause Semantics to
reject valid code, such as an ATOMIC READ of a(iachar('ab'(j:j))) into
a(iachar('ab'(i:i))).
For literal substring bounds, only match dummy arguments by position
when neither procedure is nested within the other.
Lowering's own expression equality compared literals by name(), which
is never set, so any two literals compared equal. Since Semantics now
[6 lines not shown]
[lldb] Publish the attaching state before sending the attach request (#245632)
When attaching to a process that was connected before the attach (e.g.
`process connect` followed by `process attach --waitfor`), the private
state thread is already running, so Process::Attach has to publish
eStateAttaching itself. It only did so after
DoAttachToProcessWithName/ID returned, but by then the attach request
may already be on its way to the server.
TestAttachWaitConnected.py shows the resulting race:
1. The test calls SBTarget::Attach with a wait-for attach info.
Process::Attach calls DoAttachToProcessWithName, which hands the
vAttachWait packet to the gdb-remote async thread and returns.
2. The mock server receives vAttachWait, and the test immediately calls
SBProcess::SendAsyncInterrupt to cancel the attach.
3. Process::SendAsyncInterrupt sends eBroadcastBitInterrupt to the
[14 lines not shown]
[lld][MachO] Stream FunctionStartsSection from laid-out code sections (#247021)
Currently, `FunctionStartsSection::finalizeContents()` scans every
`ObjFile`'s full symbol table, resolves `defined->getVA()` for each live
code symbol, and sorts all addresses with `llvm::sort`.
By the time `FunctionStartsSection::finalizeContents()` runs, output
segments, their sections, and each `ConcatOutputSection`'s inputs are
already laid out in ascending virtual address order, and each input
section's `symbols` list is kept sorted by offset. This PR walks those
laid-out code sections directly.
To avoid calling `isCodeSection()` on every subsection, we add an
`isCodeSection(const Section &)` overload and cache its result across
consecutive inputs sharing the same originating `Section`. This targets
the common case where most subsections remain in their original input
order (even under an order file, non-code sections and unprioritized
code sections stay grouped by `Section`).
[13 lines not shown]
[CIR] Emit the object of an inherited static call operator
Sema converts the object argument of an inherited static operator() or
operator[] to the base class with a CK_NoOp cast, not a derived-to-base
conversion. emitCastLValue rejects a CK_NoOp that changes the record
type and reports errorNYI.
emitCall now drops that cast before emitting the object as an ignored
expression. The object is never read, so the cast has no effect on the
IR. emitCastLValue still rejects every other record-changing CK_NoOp.
This change does not handle CK_AddressSpaceConversion, which Sema uses
when the object is in a different address space.
libc++'s ranges::begin, ranges::end and ranges::data now inherit a
static operator() from std::_CPO. Without this change, 860 libc++ std/
tests fail to compile under -fclangir.
Assisted-by: Cursor / Claude Opus 5.5
xprt_verbs.c: Use the default fib# for route lookups
Without this patch, fib4_lookup()/fib6_lookup() are
called with the fib# for the current thread.
During a reconnect, this could be any thread, so use
the default fib# instead.
Reported by: llm-postcr
MFC after: 1 month
Fixes: 80bee4d83637 ("nfsclrdma: Add code to support client side NFS over RDMA")