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

Unified Diff: src/IceOperand.cpp

Issue 620373004: Subzero: Add a few performance measurement tools. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Improve the use of containers Created 6 years, 2 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/IceInstX8632.cpp ('k') | src/IceRegAlloc.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceOperand.cpp
diff --git a/src/IceOperand.cpp b/src/IceOperand.cpp
index c366dd993558f604ff6ddf7b441b5350e7c5a36c..c631e8096569250f0d083166a2fdeac13c4cd7e2 100644
--- a/src/IceOperand.cpp
+++ b/src/IceOperand.cpp
@@ -278,8 +278,7 @@ const Inst *VariableTracking::getSingleDefinition() const {
}
void VariablesMetadata::init() {
- static TimerIdT IDvmetadata = GlobalContext::getTimerID("vmetadata");
- TimerMarker T(IDvmetadata, Func->getContext());
+ TimerMarker T(TimerStack::TT_vmetadata, Func);
Metadata.clear();
Metadata.resize(Func->getNumVariables());
@@ -438,7 +437,7 @@ void LiveRange::dump(Ostream &Str) const {
Str << "(weight=" << Weight << ") ";
bool First = true;
for (const RangeElementType &I : Range) {
- if (First)
+ if (!First)
Str << ", ";
First = false;
Str << "[" << I.first << ":" << I.second << ")";
« no previous file with comments | « src/IceInstX8632.cpp ('k') | src/IceRegAlloc.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698