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

Commit fcfc897

Browse files
committed
Avoid reconstructing HalideComponents from TC lang
TcExecutor creates and holds an instance of HalideComponents in constructor. At the same time, in "compile" call, it passes unparsed TC string to makeScop. The latter creates a new instance of HalideComponents internally, which leads to inference warnings being emitted twice. Use makeScop overload that takes HalideComponents instead to avoid double parsing and analysis.
1 parent de59ea2 commit fcfc897

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/tc_executor.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ std::vector<int> narrowParamsVector(const std::vector<long>& params) {
287287
void TcExecutor::compileWithTcMapper() {
288288
// A bit chicken-and-eggy, need scop from TC to have the space to build the
289289
// context to specialize the scop..
290-
auto scopTmp = polyhedral::Scop::makeScop(ctx_, tcTree_);
290+
auto scopTmp = polyhedral::Scop::makeScop(ctx_, halideComponents_);
291291
auto globalParameterContext =
292292
scopTmp->makeContextFromInputs(extractRawPtrs(execInfo_.inputsInfo));
293293
scopTmp = polyhedral::Scop::makeSpecializedScop(

0 commit comments

Comments
 (0)