slyubomirsky commented on code in PR #16769:
URL: https://github.com/apache/tvm/pull/16769#discussion_r1535974811


##########
src/tir/ir/data_type_rewriter.cc:
##########
@@ -532,12 +532,6 @@ Stmt IndexDataTypeRewriter::VisitStmt_(const ForNode* op) {
     n->loop_var = new_loop_var;
     n->min = cast(new_loop_var.dtype(), min);
     n->extent = cast(new_loop_var.dtype(), extent);
-    if (op->thread_binding.defined()) {
-      auto old_thread_binding = op->thread_binding.value();
-      auto* ptr = old_thread_binding.CopyOnWrite();
-      ptr->var = old_thread_binding->var.copy_with_dtype(new_loop_var.dtype());
-      n->thread_binding = 
std::move(Optional<IterVar>(std::move(old_thread_binding)));
-    }

Review Comment:
   This was to address 
https://github.com/apache/tvm/pull/16634#issuecomment-1973891325



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to