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

Unified Diff: src/IceConverter.cpp

Issue 610813002: Subzero: Rewrite the pass timing infrastructure. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Bug fixes and performance improvements Created 6 years, 3 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/IceConverter.cpp
diff --git a/src/IceConverter.cpp b/src/IceConverter.cpp
index 4888e8fed6673797a2360d59617685bdeae81ba7..ee6d68abf1b56258778db0316f64cd8c01bc17ee 100644
--- a/src/IceConverter.cpp
+++ b/src/IceConverter.cpp
@@ -11,11 +11,10 @@
//
//===----------------------------------------------------------------------===//
-#include "IceConverter.h"
-
#include "IceCfg.h"
#include "IceCfgNode.h"
#include "IceClFlags.h"
+#include "IceConverter.h"
#include "IceDefs.h"
#include "IceGlobalContext.h"
#include "IceInst.h"
@@ -60,6 +59,7 @@ public:
// Caller is expected to delete the returned Ice::Cfg object.
Ice::Cfg *convertFunction(const Function *F) {
+ Ice::TimerMarker T("llvmConvert", Ctx);
VarMap.clear();
NodeMap.clear();
Func = new Ice::Cfg(Ctx);
@@ -621,6 +621,7 @@ private:
namespace Ice {
void Converter::convertToIce() {
+ TimerMarker T("convertToIce", Ctx);
nameUnnamedGlobalAddresses(Mod);
if (!Ctx->getFlags().DisableGlobals)
convertGlobals(Mod);
@@ -635,11 +636,6 @@ void Converter::convertFunctions() {
Timer TConvert;
Cfg *Fcn = FunctionConverter.convertFunction(I);
- if (Ctx->getFlags().SubzeroTimingEnabled) {
- std::cerr << "[Subzero timing] Convert function "
- << Fcn->getFunctionName() << ": " << TConvert.getElapsedSec()
- << " sec\n";
- }
translateFcn(Fcn);
}

Powered by Google App Engine
This is Rietveld 408576698