Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: src/IceCompiler.cpp

Issue 1834473002: Allow Subzero to parse function blocks in parallel. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Clean up code. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/IceCompiler.cpp
diff --git a/src/IceCompiler.cpp b/src/IceCompiler.cpp
index bd5e8343a554bf1ada85fd1da831f64ce6007770..5d635c5f5cd2c58b7d684fe041486dc434a4cd90 100644
--- a/src/IceCompiler.cpp
+++ b/src/IceCompiler.cpp
@@ -114,6 +114,7 @@ void Compiler::run(const Ice::ClFlags &Flags, GlobalContext &Ctx,
std::unique_ptr<Converter> Converter(new class Converter(Mod.get(), &Ctx));
Converter->convertToIce();
Translator.reset(Converter.release());
+ Ctx.waitForWorkerThreads();
John 2016/03/24 17:32:34 I don't understand this change.
Karl 2016/03/24 17:37:49 For the bitcode reader, we must move this call ins
John 2016/03/24 17:44:00 ok, maybe add a comment here? I get nervous when I
Karl 2016/03/24 22:35:25 I looked at the code more carefully, and (due to p
} else {
Ctx.getStrError() << "Error: Build doesn't allow LLVM IR, "
<< "--build-on-read=0 not allowed\n";
@@ -121,7 +122,6 @@ void Compiler::run(const Ice::ClFlags &Flags, GlobalContext &Ctx,
return;
}
- Ctx.waitForWorkerThreads();
if (Translator->getErrorStatus()) {
Ctx.getErrorStatus()->assign(Translator->getErrorStatus().value());
} else {
« no previous file with comments | « src/IceClFlags.def ('k') | src/IceGlobalContext.h » ('j') | src/IceTranslator.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698