Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mzmzm committed Jan 2, 2022
1 parent fa31729 commit f70f31d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions taichi/transforms/offload.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -646,12 +646,10 @@ class FixCrossOffloadReferences : public BasicStmtVisitor {
} else {
// For other cases like ArgLoadStmt UnaryOpStmt which needs to load.
auto load = Stmt::make<GlobalLoadStmt>(global_temporary.get());
auto pload = load.get();
stmt_to_offloaded_[load.get()] = offloaded;
stmt->set_operand(index, load.get());
stmt->insert_before_me(std::move(global_temporary));
stmt->insert_before_me(std::move(load));
generic_visit(pload);
}
}
return true;
Expand Down

0 comments on commit f70f31d

Please sign in to comment.