Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dsharlet committed Jan 29, 2025
1 parent 87f77c5 commit ac717d7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions builder/optimizations.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1357,7 +1357,10 @@ class reuse_shadows : public stmt_mutator {

void visit(const allocate* op) override { visit_buffer_decl(op); }
void visit(const make_buffer* op) override { visit_buffer_decl(op); }
void visit(const constant_buffer* op) override { visit_buffer_decl(op, false); }
void visit(const constant_buffer* op) override {
// Constant buffers are not mutable, because the raw_buffer object we use is not allocated by a declaration.
visit_buffer_decl(op, false);
}

void visit(const crop_buffer* op) override { visit_buffer_mutator(op); }
void visit(const crop_dim* op) override { visit_buffer_mutator(op); }
Expand Down Expand Up @@ -1405,9 +1408,7 @@ class node_canonicalizer : public node_mutator {

} // namespace

expr canonicalize_nodes(const expr& e) {
return node_canonicalizer().mutate(e);
}
expr canonicalize_nodes(const expr& e) { return node_canonicalizer().mutate(e); }
stmt canonicalize_nodes(const stmt& s) {
scoped_trace trace("canonicalize_nodes");
return node_canonicalizer().mutate(s);
Expand Down

0 comments on commit ac717d7

Please sign in to comment.