Chromium Code Reviews

Unified Diff: src/IceTranslator.cpp

Issue 610813002: Subzero: Rewrite the pass timing infrastructure. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Make the optimized overlaps() implementation actually correct Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: src/IceTranslator.cpp
diff --git a/src/IceTranslator.cpp b/src/IceTranslator.cpp
index e0c7e2dbf849397ba5d4e20de9fd27aec770e618..91dcfd4de08bea8a02c5aa1a1411a001462d15f2 100644
--- a/src/IceTranslator.cpp
+++ b/src/IceTranslator.cpp
@@ -12,12 +12,11 @@
//
//===----------------------------------------------------------------------===//
-#include "IceTranslator.h"
-
#include "IceCfg.h"
#include "IceClFlags.h"
#include "IceDefs.h"
#include "IceTargetLowering.h"
+#include "IceTranslator.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/Constant.h"
#include "llvm/IR/Constants.h"
@@ -80,24 +79,13 @@ void Translator::translateFcn(Cfg *Fcn) {
if (Ctx->getFlags().DisableTranslation) {
Func->dump();
} else {
- Timer TTranslate;
Func->translate();
- if (Ctx->getFlags().SubzeroTimingEnabled) {
- std::cerr << "[Subzero timing] Translate function "
- << Func->getFunctionName() << ": " << TTranslate.getElapsedSec()
- << " sec\n";
- }
if (Func->hasError()) {
std::cerr << "ICE translation error: " << Func->getError() << "\n";
ErrorStatus = true;
}
- Timer TEmit;
Func->emit();
- if (Ctx->getFlags().SubzeroTimingEnabled) {
- std::cerr << "[Subzero timing] Emit function " << Func->getFunctionName()
- << ": " << TEmit.getElapsedSec() << " sec\n";
- }
Ctx->dumpStats(Func->getFunctionName());
}
}
« src/IceOperand.cpp ('K') | « src/IceTimerTree.cpp ('k') | src/PNaClTranslator.cpp » ('j') | no next file with comments »

Powered by Google App Engine