Skip to content

Commit 8757f28

Browse files
grebecopybara-github
authored andcommitted
Update XLS_VLOG references in docs.
PiperOrigin-RevId: 617978474
1 parent 5e16cb5 commit 8757f28

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs_src/optimizations/optimizations.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ original leaf node A is being removed and a corresponding logging statement
117117
}
118118
}
119119
}
120-
XLS_VLOG(3) << "DCE removing " << node->ToString();
120+
VLOG(3) << "DCE removing " << node->ToString();
121121
XLS_RETURN_IF_ERROR(f->RemoveNode(node));
122122
removed_count++;
123123
}
@@ -128,7 +128,7 @@ For this pass, this amounts to returning whether or not a single IR node has
128128
been DCE'ed:
129129
130130
```c++
131-
XLS_VLOG(2) << "Removed " << removed_count << " dead nodes";
131+
VLOG(2) << "Removed " << removed_count << " dead nodes";
132132
return removed_count > 0;
133133
}
134134
```
@@ -349,7 +349,7 @@ and mark the IR as modified. We also note whether a true match was found (via
349349
`replaced`):
350350

351351
```c++
352-
XLS_VLOG(3) << absl::StreamFormat(
352+
VLOG(3) << absl::StreamFormat(
353353
"Replacing %s with equivalent node %s", node->GetName(),
354354
candidate->GetName());
355355
XLS_RETURN_IF_ERROR(node->ReplaceUsesWith(candidate));
@@ -416,7 +416,7 @@ literals as operands as well as whether it is safe to replace the node.
416416
!OpIsSideEffecting(node->op()) &&
417417
std::all_of(node->operands().begin(), node->operands().end(),
418418
[](Node* o) { return o->Is<Literal>(); })) {
419-
XLS_VLOG(2) << "Folding: " << *node;
419+
VLOG(2) << "Folding: " << *node;
420420
```
421421

422422
Here now comes the fun part. If the condition is true, XLS simply collects the

0 commit comments

Comments
 (0)