Skip to content

Commit 0ed2f24

Browse files
committed
remove extraneous check
1 parent ea316e5 commit 0ed2f24

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/meta_schedule/postproc/rewrite_cooperative_fetch.cc

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,7 @@ Optional<Integer> ParseThreadBinding(const Schedule& sch, const Instruction& ins
4040
return NullOpt;
4141
}
4242

43-
try {
44-
return Downcast<Integer>(sch->Get(Downcast<LoopRV>(inst->inputs[0]))->extent);
45-
} catch (const std::exception& e) {
46-
// This can occur if in a schedule we manually bind threads in the middle of a schedule
47-
// and then later modify the schedule. As the passed in schedule is after running the entire
48-
// trace the bound loop may be moved around in the IRModule.
49-
LOG(DEBUG) << "Failed to calculate extent so skipping RewriteCooperativeFetching. Error "
50-
<< e.what();
51-
return NullOpt;
52-
}
43+
return Downcast<Integer>(sch->Get(Downcast<LoopRV>(inst->inputs[0]))->extent);
5344
}
5445

5546
/*!

0 commit comments

Comments
 (0)