spectrometerHBH commented on a change in pull request #9041:
URL: https://github.com/apache/tvm/pull/9041#discussion_r720405611
##########
File path: include/tvm/tir/schedule/state.h
##########
@@ -142,6 +142,8 @@ class ScheduleStateNode : public Object {
/******** Property of blocks ********/
/*! \brief Returns the BlockInfo correpsonding to the block sref */
TVM_DLL BlockInfo GetBlockInfo(const StmtSRef& block_sref) const;
+ /*! \brief Recalculate the BlockInfo recursively under stmt */
+ TVM_DLL void UpdateSubtreeBlockInfo(const Stmt& stmt);
Review comment:
The function just updates the BlockInfo. I think it is always doable to
do so.
If we want to enforce some constraint, then the constraint should be all
loop/blocks in the subtree must have sref.
--
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]