Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SV] Mark sv.xmr.ref op as pure (#6260)
Having an `sv.xmr.ref` op inside a procedural block such as `sv.alwayscomb` triggers an assertion in `PrepareForEmission`. The pass would identify the ref op as having side-effects and then go ahead and try to pull it outside the procedural block. Doing so would create a `sv.reg` op with multiple nested inout types, which breaks. Fix the issue by marking the `sv.xmr.ref` op as pure. Taking a reference to something does not have a side-effect. It's accessing what's behind the reference that has side-effects.
- Loading branch information