mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Exclude SystemC variables from DFG (#6208)
SystemC variables are fairly special (they can only be assigned to/from, but not otherwise participate in expressions), which complicates some DFG code. These variables only ever appear as port on the top level wrapper, so excluding them from DFG does not make us loose any optimizations, but simplifies internals.
This commit is contained in:
@@ -639,9 +639,6 @@ DfgVertexVar* DfgVertex::getResultVar() {
|
||||
this->forEachSink([&resp](DfgVertex& sink) {
|
||||
DfgVertexVar* const varp = sink.cast<DfgVertexVar>();
|
||||
if (!varp) return;
|
||||
// Ignore SystemC variables, they cannot participate in expressions or
|
||||
// be assigned rvalue expressions.
|
||||
if (varp->varp()->isSc()) return;
|
||||
// First variable found
|
||||
if (!resp) {
|
||||
resp = varp;
|
||||
|
||||
Reference in New Issue
Block a user