echuraev commented on code in PR #12401:
URL: https://github.com/apache/tvm/pull/12401#discussion_r944636156


##########
src/tir/transforms/storage_rewrite.cc:
##########
@@ -1463,7 +1463,9 @@ class VectorTypeRewriter : public StmtExprMutator {
 
   Stmt VisitStmt_(const LetStmtNode* op) final {
     auto it = rewrite_map_.find(op->var.get());
-    if (it == rewrite_map_.end()) {
+    PrimExpr value = this->VisitExpr(op->value);
+    Stmt body = this->VisitStmt(op->body);
+    if (value.same_as(op->value) && body.same_as(op->body) && it == 
rewrite_map_.end()) {

Review Comment:
   Done. Thank you @Lunderberg for your help! We will enable OpenCL tests in 
the CI to cover this OpenCL specific case.



-- 
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