From 94f1690a8334d965b57a275bb857749f459b34b8 Mon Sep 17 00:00:00 2001 From: dabaiji Date: Thu, 1 Apr 2021 10:29:44 +0800 Subject: [PATCH] disable some performance related tiling strategies during tuning to avoid null tuning space --- src/poly/tiling/tiling_analyzer.cc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/poly/tiling/tiling_analyzer.cc b/src/poly/tiling/tiling_analyzer.cc index bdb97de5..ac440b43 100644 --- a/src/poly/tiling/tiling_analyzer.cc +++ b/src/poly/tiling/tiling_analyzer.cc @@ -1404,13 +1404,18 @@ void TilingAnalyzer::AddTilingConstraints() { VectorizedStrategy vectorized_strategy(this); TensorOfTensorStrategy tot_strategy(this); actived_strategies.push_back(&cast_strategy); - actived_strategies.push_back(&vectorized_strategy); + if (!scop_info_.user_config_.GetIsTuning()) { + actived_strategies.push_back(&vectorized_strategy); + } actived_strategies.push_back(&tot_strategy); ReduceStrategy reduce_strategy(this); DmaAlignStrategy dma_align_stratgey(this); - actived_strategies.push_back(&reduce_strategy); - actived_strategies.push_back(&dma_align_stratgey); + + if (!scop_info_.user_config_.GetIsTuning()) { + actived_strategies.push_back(&reduce_strategy); + actived_strategies.push_back(&dma_align_stratgey); + } ModStrategy mod_strategy(this); actived_strategies.push_back(&mod_strategy); -- Gitee