Skip to content

Commit

Permalink
Revet Skip assignment optimization with local_buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanghonggeng committed Dec 18, 2024
1 parent b9a0da5 commit bec2707
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions paddle/cinn/optim/eliminate_common_global_memory_read.cc
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,6 @@ struct GlobalTensorInfoCollector : public ir::IRMutator<Expr*> {

void Visit(const ir::For* op, ir::Expr* expr) override {
auto* node = expr->As<ir::For>();

// If the current context is vectorized, the common global memory read
// elimination optimization is not necessary.
if (op->is_vectorized()) return;

PADDLE_ENFORCE_NOT_NULL(
node,
::common::errors::InvalidArgument("The input expr should be a For"));
Expand Down

0 comments on commit bec2707

Please sign in to comment.