From 77361fb8a0a800238ed6097d44d6e2012489a468 Mon Sep 17 00:00:00 2001 From: steve Date: Fri, 28 Apr 2000 23:12:12 +0000 Subject: [PATCH] Overly aggressive eliding of task calls. --- elaborate.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/elaborate.cc b/elaborate.cc index e41432527..5f05393e4 100644 --- a/elaborate.cc +++ b/elaborate.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #if !defined(WINNT) && !defined(macintosh) -#ident "$Id: elaborate.cc,v 1.164 2000/04/28 22:17:47 steve Exp $" +#ident "$Id: elaborate.cc,v 1.165 2000/04/28 23:12:12 steve Exp $" #endif /* @@ -1461,13 +1461,10 @@ NetProc* PCallTask::elaborate_usr(Design*des, const string&path) const NetBlock*block = new NetBlock(NetBlock::SEQU); - /* Detect the case where the definition of the task is + /* Detect the case where the definition of the task is known empty. In this case, we need not bother with calls to the task, all the assignments, etc. Just return a no-op. */ - if (def->proc() == 0) - return block; - if (const NetBlock*tp = dynamic_cast(def->proc())) { if (tp->proc_first() == 0) return block; @@ -2353,6 +2350,9 @@ Design* elaborate(const map&modules, /* * $Log: elaborate.cc,v $ + * Revision 1.165 2000/04/28 23:12:12 steve + * Overly aggressive eliding of task calls. + * * Revision 1.164 2000/04/28 22:17:47 steve * Skip empty tasks. *