fix(compiler): Activate the loop parallelism in ConcreteToBConcrete when the option is set

This commit is contained in:
Quentin Bourgerie
2022-03-24 17:05:42 +01:00
parent d8aa9ff76b
commit fc51b1d2ab
6 changed files with 29 additions and 13 deletions

View File

@@ -299,7 +299,8 @@ CompilerEngine::compile(llvm::SourceMgr &sm, Target target, OptionalLib lib) {
// Concrete -> BConcrete
if (mlir::concretelang::pipeline::lowerConcreteToBConcrete(
mlirContext, module, this->enablePass)
mlirContext, module, this->enablePass,
this->loopParallelize || this->autoParallelize)
.failed()) {
return StreamStringError(
"Lowering from Concrete to Bufferized Concrete failed");