Skip to content

Commit

Permalink
fixup! Add optimizer pass to remove dead stores.
Browse files Browse the repository at this point in the history
  • Loading branch information
bbannier committed May 16, 2023
1 parent 8003436 commit e01c950
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions hilti/toolchain/src/compiler/optimizer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1522,12 +1522,6 @@ struct DeadStoreVisitor : OptimizerVisitor, visitor::PreOrder<bool, DeadStoreVis
}

bool prune_decls(Node& node) override {
// FIXME(bbannier):
// std::cerr << "UNUSED STORES:\n";

// for ( const auto& [id, used] : used )
// std::cerr << "\t" << id << "\t\t" << used << '\n';

_stage = OptimizerVisitor::Stage::PRUNE_DECLS;
return prune(node);
}
Expand Down

0 comments on commit e01c950

Please sign in to comment.