Skip to content

Commit a170e7d

Browse files
committed
update
1 parent ceabcc2 commit a170e7d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/gc/Analysis/MatmulConfigAnalysis.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ bool readConfigFromAttrs(MatmulConfig &config, ArrayRef<NamedAttribute> attrs,
403403
if (validateConfig(config, shape)) {
404404
return cfgItemCnt == 9;
405405
} else {
406-
LLVM_DEBUG(llvm::dbgs() << "The predefined config is invalid\n");
406+
assert(validateConfig(config, shape) && "config is invalid");
407407
return false;
408408
}
409409
}
@@ -519,6 +519,8 @@ MatmulConfig MatmulConfigAnalysis::getConfig() {
519519
}
520520
if (!configCandidates.empty())
521521
config = configCandidates[0];
522+
523+
assert(validateConfig(config, shape) && "config is invalid");
522524
}
523525

524526
LLVM_DEBUG(llvm::dbgs()

0 commit comments

Comments
 (0)