Skip to content

Commit 653552c

Browse files
committed
update
1 parent a170e7d commit 653552c

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

lib/gc/Analysis/MatmulConfigAnalysis.cpp

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -400,10 +400,15 @@ bool readConfigFromAttrs(MatmulConfig &config, ArrayRef<NamedAttribute> attrs,
400400
cfgItemCnt++;
401401
}
402402
}
403-
if (validateConfig(config, shape)) {
404-
return cfgItemCnt == 9;
405-
} else {
406-
assert(validateConfig(config, shape) && "config is invalid");
403+
if (cfgItemCnt != 9) {
404+
LLVM_DEBUG(llvm::dbgs() << "The predefined matmul config is incomplete. "
405+
"Default matmul config will be set.\n");
406+
return false;
407+
}
408+
if (validateConfig(config, shape))
409+
return true;
410+
else {
411+
assert(0 && "config is invalid");
407412
return false;
408413
}
409414
}

0 commit comments

Comments
 (0)