Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/meta_schedule/feature_extractor/per_store_feature.cc
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,7 @@ void Feature::SubFeature::SetStride(const LoopNest& loop_nest, arith::Analyzer*
// Calculate this->prod
int64_t& prod = this->prod_non_strided_loop_extent = 1;
for (int j = n_loops - 1; j > i; --j) {
if (const int64_t* extent = GetLoopIntExtent(loops[n_loops - 1])) {
if (const int64_t* extent = GetLoopIntExtent(loops[j])) {
prod *= *extent;
}
}
Expand All @@ -894,7 +894,7 @@ void Feature::SubFeature::SetStride(const LoopNest& loop_nest, arith::Analyzer*
void Feature::SubFeature::SetReuse(const LoopNest& loop_nest, int64_t top_loop_touch_bytes,
const ForBufferMap<IntVec>& buffer_touched_under_loop) {
const BufferNode* buffer = this->buffer;
// Step 0. Collect all `Var`s that appears in the buffer region
// Step 3.1. Collect all `Var`s that appears in the buffer region
std::unordered_set<const VarNode*> region_vars;
for (const MultiIndex& multi_index : this->multi_indices) {
for (const PrimExpr& index : multi_index) {
Expand Down