Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Commit 04f1062

Browse files
committed
promoteToSharedAtDepth: do not throw at depth 0
The original implementation was throwing a NYI exception if promotion was requested at depth 0. This was due to bandsContainingScheduleDepth not supporting the depth 0, and is fixed in a5a88f8 (bandsContainingScheduleDepth: support depth 0). Drop the check and NYI exception.
1 parent 900cb42 commit 04f1062

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

tc/core/polyhedral/cuda/memory_promotion_heuristic.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -584,10 +584,6 @@ void promoteToSharedAtDepth(
584584
bool unrollCopies) {
585585
using namespace tc::polyhedral::detail;
586586

587-
if (depth == 0) {
588-
throw promotion::PromotionNYI("promotion before any band");
589-
}
590-
591587
auto& scop = mscop.scop();
592588
auto root = scop.scheduleRoot();
593589

0 commit comments

Comments
 (0)