Skip to content

Conversation

rocallahan
Copy link
Contributor

What are the reasons/motivation for this change?

As dsicussed in https://yosyshq.discourse.group/t/parallel-optmergepass-implementation we want to make RTLIL more compatible with multithreaded read-only access, by making access to const objects thread-safe.

Explain how this is achieved.

We make the parent links relaxed atomics so concurrent ifind() calls are safe.

This may appear to cause a tiny performance regression but as discussed in https://yosyshq.discourse.group/t/parallel-optmergepass-implementation/87/16 this is probably just noise.

In particular, we make the parent links relaxed atomics so concurrent
`ifind()` calls are safe.

This may appear to cause a tiny performance regression but as discussed
in https://yosyshq.discourse.group/t/parallel-optmergepass-implementation/87/16
this is probably just noise.
@jix jix self-assigned this Oct 7, 2025
@jix jix added the merge-after-release Merge: PR should not be included in the next release label Oct 7, 2025
@mmicko mmicko merged commit b7a7281 into YosysHQ:main Oct 8, 2025
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-after-release Merge: PR should not be included in the next release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants