junrushao1994 commented on a change in pull request #8544:
URL: https://github.com/apache/tvm/pull/8544#discussion_r676005318
##########
File path: src/tir/schedule/state.cc
##########
@@ -737,7 +709,8 @@ class SRefUpdater : public StmtVisitor {
void UpdateBlockInfo(const StmtSRef& block_sref) {
using TIter = std::unordered_map<StmtSRef, BlockInfo, ObjectPtrHash,
ObjectPtrEqual>::iterator;
// The caller is responsible for correcting the flags
- BlockInfo new_info(BlockScope(GetChildBlocks(self_, block_sref)));
+ Array<StmtSRef> child_block_srefs = GetChildBlockSRefOnSRefTree(self_,
block_sref);
+ BlockInfo new_info((BlockScope(child_block_srefs)));
Review comment:
```suggestion
BlockInfo new_info((BlockScope(GetChildBlockSRefOnSRefTree(self_,
block_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]