data flow: perfomance improvement
This commit is contained in:
@@ -33,20 +33,18 @@ void DataFlowAnalysisNode<DataType>::doStep()
|
|||||||
{
|
{
|
||||||
if (in_cnt < next->out_cnt)
|
if (in_cnt < next->out_cnt)
|
||||||
{
|
{
|
||||||
for (const auto& byOut : next->getOut())
|
const auto& byOut = next->getOut();
|
||||||
|
bool inserted = addIn( byOut);
|
||||||
|
|
||||||
|
if (inserted)
|
||||||
{
|
{
|
||||||
bool inserted = addIn({ byOut });
|
if (next->out_cnt > in_max_cnt)
|
||||||
|
in_max_cnt = next->out_cnt;
|
||||||
|
|
||||||
if (inserted)
|
inserted = forwardData(byOut);
|
||||||
{
|
|
||||||
if (next->out_cnt > in_max_cnt)
|
|
||||||
in_max_cnt = next->out_cnt;
|
|
||||||
|
|
||||||
inserted = forwardData({ byOut });
|
if (inserted && next->out_cnt > out_max_cnt)
|
||||||
|
out_max_cnt = next->out_cnt;
|
||||||
if (inserted && next->out_cnt > out_max_cnt)
|
|
||||||
out_max_cnt = next->out_cnt;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user