Skip to content

Commit

Permalink
🐛 Fix initializing the extractor by not removing phase nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
chinyi0523 committed Dec 26, 2023
1 parent 449785c commit fc29018
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extractor/extract.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ void Extractor::update_neighbors() {

if (num_boundaries != 2) continue;

if (_graph->get_num_neighbors(f) == 2) {
if (_graph->get_num_neighbors(f) == 2 && f->get_phase() == dvlab::Phase(0)) {
// NOTE - Remove
for (auto& [b, ep] : _graph->get_neighbors(f)) {
if (_graph->get_inputs().contains(b)) {
Expand Down

0 comments on commit fc29018

Please sign in to comment.