Fix output of loops on waiving (#2355)

When an unopt loop is waived, we also don't want the loop's example
path being plot.

Signed-off-by: Stefan Wallentowitz <[email protected]>
This commit is contained in:
Stefan Wallentowitz
2020-05-26 08:45:57 +02:00
committed by GitHub
parent 7f32d4dc45
commit 68a2ed6776
6 changed files with 36 additions and 6 deletions
+4 -2
View File
@@ -816,7 +816,8 @@ private:
nodep->v3warn(UNOPT,
"Signal unoptimizable: Feedback to public clock or circular logic: "
<< nodep->prettyNameQ());
if (!nodep->fileline()->warnIsOff(V3ErrorCode::UNOPT)) {
if (!nodep->fileline()->warnIsOff(V3ErrorCode::UNOPT)
&& !nodep->fileline()->lastWarnWaived()) {
nodep->fileline()->modifyWarnOff(V3ErrorCode::UNOPT,
true); // Complain just once
// Give the user an example.
@@ -834,7 +835,8 @@ private:
nodep->v3warn(UNOPTFLAT,
"Signal unoptimizable: Feedback to clock or circular logic: "
<< nodep->prettyNameQ());
if (!nodep->fileline()->warnIsOff(V3ErrorCode::UNOPTFLAT)) {
if (!nodep->fileline()->warnIsOff(V3ErrorCode::UNOPTFLAT)
&& !nodep->fileline()->lastWarnWaived()) {
nodep->fileline()->modifyWarnOff(V3ErrorCode::UNOPTFLAT,
true); // Complain just once
// Give the user an example.