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

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: 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. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/IceCfg.cpp ('k') | src/IceDefs.h » ('j') | src/IceOperand.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceConverter.cpp
diff --git a/src/IceConverter.cpp b/src/IceConverter.cpp
index 4888e8fed6673797a2360d59617685bdeae81ba7..9910f06d17338709a8629f8821873d79064ab73c 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,9 @@ public:
// Caller is expected to delete the returned Ice::Cfg object.
Ice::Cfg *convertFunction(const Function *F) {
+ static Ice::TimerIdT IDllvmConvert =
+ Ice::GlobalContext::getTimerID("llvmConvert");
+ Ice::TimerMarker T(IDllvmConvert, Ctx);
VarMap.clear();
NodeMap.clear();
Func = new Ice::Cfg(Ctx);
@@ -621,6 +623,8 @@ private:
namespace Ice {
void Converter::convertToIce() {
+ static TimerIdT IDconvertToIce = GlobalContext::getTimerID("convertToIce");
+ TimerMarker T(IDconvertToIce, Ctx);
nameUnnamedGlobalAddresses(Mod);
if (!Ctx->getFlags().DisableGlobals)
convertGlobals(Mod);
@@ -635,11 +639,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);
}
« no previous file with comments | « src/IceCfg.cpp ('k') | src/IceDefs.h » ('j') | src/IceOperand.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698