Skip to content

Commit

Permalink
Refactor2023: Remove Program::lower & Add irpass::ast_to_ir (fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
PGZXB committed Dec 18, 2022
1 parent c8e6285 commit a77e46a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions taichi/transforms/compile_to_offloads.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ void compile_to_offloads(IRNode *ir,
if (config.print_preprocessed_ir && start_from_ast) {
TI_INFO("[{}] {}:", kernel->get_name(), "Preprocessed IR");
std::cout << std::flush;
irpass::re_id(kernel->ir.get());
irpass::print(kernel->ir.get());
irpass::re_id(ir);
irpass::print(ir);
std::cout << std::flush;
}

Expand Down

0 comments on commit a77e46a

Please sign in to comment.