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

Unified Diff: src/PNaClTranslator.cpp

Issue 610813002: Subzero: Rewrite the pass timing infrastructure. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix the problem timing parse() 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/PNaClTranslator.cpp
diff --git a/src/PNaClTranslator.cpp b/src/PNaClTranslator.cpp
index 47f6a5e5175acec14cba68b6e87e7d17ebec9c6f..a6ea4a5a783631c51761d54dcaa5974014b0fd7b 100644
--- a/src/PNaClTranslator.cpp
+++ b/src/PNaClTranslator.cpp
@@ -12,7 +12,6 @@
//
//===----------------------------------------------------------------------===//
-#include "PNaClTranslator.h"
#include "IceCfg.h"
#include "IceCfgNode.h"
#include "IceClFlags.h"
@@ -20,6 +19,7 @@
#include "IceInst.h"
#include "IceOperand.h"
#include "IceTypeConverter.h"
+#include "PNaClTranslator.h"
#include "llvm/Analysis/NaCl/PNaClABIProps.h"
#include "llvm/Bitcode/NaCl/NaClBitcodeDecoders.h"
#include "llvm/Bitcode/NaCl/NaClBitcodeHeader.h"
@@ -852,7 +852,7 @@ public:
}
}
- ~FunctionParser() override;
+ ~FunctionParser() override{};
jvoung (off chromium) 2014/09/30 20:19:04 space between override and {}, or is that the clan
Jim Stichnoth 2014/09/30 22:46:00 Sadly, clang-format on my machine is doing that.
// Set the next constant ID to the given constant C.
void setNextConstantID(Ice::Constant *C) {
@@ -860,8 +860,6 @@ public:
}
private:
- // Timer for reading function bitcode and converting to ICE.
- Ice::Timer TConvert;
// The corresponding ICE function defined by the function block.
Ice::Cfg *Func;
// The index to the current basic block being built.
@@ -1376,13 +1374,6 @@ private:
}
};
-FunctionParser::~FunctionParser() {
- if (getFlags().SubzeroTimingEnabled) {
- errs() << "[Subzero timing] Convert function " << Func->getFunctionName()
- << ": " << TConvert.getElapsedSec() << " sec\n";
- }
-}
-
void FunctionParser::ReportInvalidBinopOpcode(unsigned Opcode, Ice::Type Ty) {
std::string Buffer;
raw_string_ostream StrBuf(Buffer);
« src/IceRegAlloc.cpp ('K') | « src/IceTranslator.cpp ('k') | src/llvm2ice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698