Skip to content

Commit

Permalink
Update the variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
prithayan committed Nov 12, 2024
1 parent 86de1b0 commit 2c88173
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Dialect/FIRRTL/Transforms/LowerIntmodules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ void LowerIntmodulesPass::runOnOperation() {
auto &ig = getAnalysis<InstanceGraph>();

bool changed = false;
bool warningEmittedOnce = false;
bool warnEICGwrapperDropsDedupAnno = false;

// Convert to int ops.
for (auto op :
Expand Down Expand Up @@ -159,10 +159,10 @@ void LowerIntmodulesPass::runOnOperation() {
// it causes an error with `fixupEICGWrapper`. For now drop the
// annotation until we fully migrate into EICG intrinsic.
if (AnnotationSet::removeAnnotations(op, firrtl::dedupGroupAnnoClass))
if (!warningEmittedOnce) {
if (!warnEICGwrapperDropsDedupAnno) {
op.emitWarning() << "Annotation " << firrtl::dedupGroupAnnoClass
<< " on EICG_wrapper is dropped";
warningEmittedOnce = true;
warnEICGwrapperDropsDedupAnno = true;
}

if (failed(checkModForAnnotations(op, eicgName)))
Expand Down

0 comments on commit 2c88173

Please sign in to comment.