Skip to content
Snippets Groups Projects
Commit 8a95f059 authored by Zhenyu Bai's avatar Zhenyu Bai
Browse files
'merge with bai's modifications
parents 18a4a670 7c1ec35d
No related branches found
No related tags found
No related merge requests found
......@@ -188,6 +188,16 @@ void StandardXGraphBuilder::createNodes(ParExeGraph *g, ParExeSequence *seq) {
}
// EXECUTE stage => expand functional unit's pipeline
else {
// no FU
if(stage->numFus() == 0) {
ParExeNode *node = makeNode(g, *inst, *stage);
inst->setFirstFUNode(node);
inst->setLastFUNode(node);
}
// multiple FUs: select one
else {
ParExePipeline *fu = stage->findFU(inst->inst()->kind());
ParExeNode *first = nullptr, *last = nullptr;
......@@ -209,6 +219,7 @@ void StandardXGraphBuilder::createNodes(ParExeGraph *g, ParExeSequence *seq) {
}
}
}
}
g->setLastNode(last_node);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment