Fix always_ff on constant (#6519)

This commit is contained in:
Todd Strader
2025-10-03 13:16:12 -04:00
committed by GitHub
parent ce0a05691b
commit defe282fe8
3 changed files with 63 additions and 0 deletions
+5
View File
@@ -266,6 +266,11 @@ class DataflowOptimize final {
if (hasExtWr) DfgVertexVar::setHasExtWrRefs(vscp);
return;
}
// TODO: remove once Actives can tolerate NEVER SenItems
if (AstSenItem* senItemp = VN_CAST(nodep, SenItem)) {
senItemp->foreach(
[](AstVarRef* refp) { DfgVertexVar::setHasExtRdRefs(refp->varScopep()); });
}
} else {
if (AstVar* const varp = VN_CAST(nodep, Var)) {
const bool hasExtRd = varp->isPrimaryIO() || varp->isSigUserRdPublic() //