d-smirnov commented on code in PR #10189:
URL: https://github.com/apache/tvm/pull/10189#discussion_r845022389
##########
src/tir/usmp/analysis/extract_buffer_info.cc:
##########
@@ -491,6 +559,55 @@ BufferInfoAnalysis BufferInfoExtractor::operator()(const
PrimFunc& main_func) {
open_set.erase(le_event.buffer_info);
}
}
+
+ // All items in RO pool should have conflicts with each other in this RO pool
+ // as they will be placed in RO segment and pre-initialized
+ // Array<BufferInfo> buffer_info_arr =
+ // ConvertToArrayOfBufferInfo(this->buffer_info_map_);
+
+ // split buffers to vars (RW) and constants (RO)
+ Array<BufferInfo> buffer_info_vars;
+ Array<BufferInfo> buffer_info_cons;
+ for (const auto& kv : this->buffer_info_map_) {
+ const auto& buf = kv.first;
+ for (const auto& pool : buf->pool_candidates) {
Review Comment:
done
--
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]