Delete orphaned gate expression when dist gating is skipped
This commit is contained in:
parent
71334a9234
commit
8e6fab3075
|
|
@ -4624,7 +4624,10 @@ class RandomizeVisitor final : public VNVisitor {
|
||||||
rmode.index);
|
rmode.index);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if (alwaysActive || !gatep) return chainp;
|
if (alwaysActive || !gatep) {
|
||||||
|
if (gatep) VL_DO_DANGLING(pushDeletep(gatep), gatep);
|
||||||
|
return chainp;
|
||||||
|
}
|
||||||
|
|
||||||
AstNodeExpr* unionExprp = nullptr;
|
AstNodeExpr* unionExprp = nullptr;
|
||||||
for (auto& bucket : buckets) {
|
for (auto& bucket : buckets) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue