LeiWang1999 commented on PR #17133:
URL: https://github.com/apache/tvm/pull/17133#issuecomment-2322057557

   I’m attempting to remove the`LoopVar` with `ForNode`, and I’ve encountered 
an unexpected behavior.
   
   ```cpp
   For new_for = For(ax_lane_id, Integer(0), warp_size, 
ForKind::kThreadBinding, n->body);
   const ForNode* new_for_node = new_for.get();
   LOG(INFO) << "new_for->min " << new_for_node->min;
   // Output: 0
   ```
   
   This snippet works fine and logs the expected output of `0` for 
`new_for->min`.
   
   However, when I try to instantiate `new_for_node` directly, like this:
   
   ```cpp
   const ForNode* new_for_node = For(ax_lane_id, Integer(0), warp_size, 
ForKind::kThreadBinding, n->body).get();
   LOG(INFO) << "new_for->min " << new_for_node->min;
   // Check failed: (tindex < type_table_.size() && 
type_table_[tindex].allocated_slots != 0) is false: Unknown type index 76391888
   ```
   
   @wrongtest-intellif, do you have any thoughts?
   


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