From ac43e7322b064fd0c8a3e99c0f85f1cbcc4a7613 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Sun, 30 Jun 2019 22:11:56 -0400 Subject: [PATCH] Internals: Remove dead code. --- src/V3AstNodes.h | 21 --------------------- src/V3Order.cpp | 5 +---- 2 files changed, 1 insertion(+), 25 deletions(-) diff --git a/src/V3AstNodes.h b/src/V3AstNodes.h index 207669d47..8e589f08a 100644 --- a/src/V3AstNodes.h +++ b/src/V3AstNodes.h @@ -3216,27 +3216,6 @@ public: AstJumpLabel* labelp() const { return m_labelp; } }; -class AstUntilStable : public AstNodeStmt { - // Quasi-while loop until given signals are stable - // Parents: CFUNC (generally) - // Children: VARREF, statements -public: - AstUntilStable(FileLine* fileline, AstVarRef* stablesp, AstNode* bodysp) - : AstNodeStmt(fileline) { - addNOp2p(stablesp); addNOp3p(bodysp); - } - ASTNODE_NODE_FUNCS(UntilStable) - AstVarRef* stablesp() const { return VN_CAST(op2p(), VarRef); } // op2 = list of variables that must become stable - AstNode* bodysp() const { return op3p(); } // op3 = body of loop - void addStablesp(AstVarRef* newp) { addOp2p(newp); } - void addBodysp(AstNode* newp) { addOp3p(newp); } - virtual bool isGateOptimizable() const { return false; } // Not relevant - virtual bool isPredictOptimizable() const { return false; } // Not relevant - virtual int instrCount() const { return instrCountBranch(); } - virtual V3Hash sameHash() const { return V3Hash(); } - virtual bool same(const AstNode* samep) const { return true; } -}; - class AstChangeXor : public AstNodeBiComAsv { // A comparison to determine change detection, common & must be fast. // Returns 32-bit or 64-bit value where 0 indicates no change. diff --git a/src/V3Order.cpp b/src/V3Order.cpp index 20ba3849d..fe7a32dcf 100644 --- a/src/V3Order.cpp +++ b/src/V3Order.cpp @@ -1781,10 +1781,7 @@ AstActive* OrderVisitor::processMoveOneLogic(const OrderLogicVertex* lvertexp, AstNode* nodep = lvertexp->nodep(); AstNodeModule* modp = VN_CAST(scopep->user1p(), NodeModule); // Stashed by visitor func UASSERT(modp, "NULL"); - if (VN_IS(nodep, UntilStable)) { - nodep->v3fatalSrc("Not implemented"); - } - else if (VN_IS(nodep, SenTree)) { + if (VN_IS(nodep, SenTree)) { // Just ignore sensitivities, we'll deal with them when we move statements that need them } else { // Normal logic