You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2020/07/13 06:49:33 UTC

[GitHub] [incubator-tvm] merrymercy commented on a change in pull request #6041: [CODEGEN] Fix code generation bugs for C/CUDA & Improve VerifyGPUCode pass

merrymercy commented on a change in pull request #6041:
URL: https://github.com/apache/incubator-tvm/pull/6041#discussion_r453465743



##########
File path: src/target/source/codegen_c.cc
##########
@@ -720,14 +720,15 @@ void CodeGenC::VisitStmt_(const StoreNode* op) {
   } else {
     CHECK(is_one(op->predicate)) << "Predicated store is not supported";
     arith::PVar<PrimExpr> base;
+
+    // The assignment below introduces side-effect, and the resulting value cannot
+    // be reused across multiple expression, thus a new scope is needed

Review comment:
       test case added




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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org