Fix nondeterminism in trace stage (#8046)
Co-authored-by: Sumanth Kadiyala <sumanth@hudson-trading.com>
This commit is contained in:
parent
e6c613f28d
commit
472a131df7
|
|
@ -294,6 +294,7 @@ Stuart Morris
|
|||
sumpster
|
||||
Szymon Gizler
|
||||
Sören Tempel
|
||||
Sumanth Kadiyala
|
||||
Teng Huang
|
||||
Thomas Aldrian
|
||||
Thomas Brown
|
||||
|
|
|
|||
|
|
@ -1146,8 +1146,8 @@ class TraceVisitor final : public VNVisitor {
|
|||
}
|
||||
|
||||
TraceCFuncVertex* getCFuncVertexp(AstCFunc* nodep) {
|
||||
TraceCFuncVertex* vertexp
|
||||
= nodep->user1() ? nodep->user1u().toGraphVertex()->cast<TraceCFuncVertex>() : nullptr;
|
||||
V3GraphVertex* const vtxp = nodep->user1u().toGraphVertex();
|
||||
TraceCFuncVertex* vertexp = vtxp ? vtxp->cast<TraceCFuncVertex>() : nullptr;
|
||||
if (!vertexp) {
|
||||
vertexp = new TraceCFuncVertex{&m_graph, nodep};
|
||||
nodep->user1p(vertexp);
|
||||
|
|
@ -1155,9 +1155,8 @@ class TraceVisitor final : public VNVisitor {
|
|||
return vertexp;
|
||||
}
|
||||
TraceActivityVertex* getActivityVertexp(AstNode* nodep, bool slow) {
|
||||
TraceActivityVertex* vertexp
|
||||
= nodep->user3() ? nodep->user3u().toGraphVertex()->cast<TraceActivityVertex>()
|
||||
: nullptr;
|
||||
V3GraphVertex* const vtxp = nodep->user3u().toGraphVertex();
|
||||
TraceActivityVertex* vertexp = vtxp ? vtxp->cast<TraceActivityVertex>() : nullptr;
|
||||
if (!vertexp) {
|
||||
vertexp = new TraceActivityVertex{&m_graph, nodep, slow};
|
||||
nodep->user3p(vertexp);
|
||||
|
|
|
|||
Loading…
Reference in New Issue