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

Side by Side Diff: src/IceConverter.cpp

Issue 788713002: Subzero: Disable stats and timers under the MINIMAL build. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review changes Created 6 years 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 unified diff | Download patch
« no previous file with comments | « src/IceCfg.cpp ('k') | src/IceGlobalContext.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===- subzero/src/IceConverter.cpp - Converts LLVM to Ice ---------------===// 1 //===- subzero/src/IceConverter.cpp - Converts LLVM to Ice ---------------===//
2 // 2 //
3 // The Subzero Code Generator 3 // The Subzero Code Generator
4 // 4 //
5 // This file is distributed under the University of Illinois Open Source 5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details. 6 // License. See LICENSE.TXT for details.
7 // 7 //
8 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===//
9 // 9 //
10 // This file implements the LLVM to ICE converter. 10 // This file implements the LLVM to ICE converter.
(...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after
876 lowerGlobals(VariableDeclarations); 876 lowerGlobals(VariableDeclarations);
877 } 877 }
878 878
879 void Converter::convertFunctions() { 879 void Converter::convertFunctions() {
880 TimerStackIdT StackID = GlobalContext::TSK_Funcs; 880 TimerStackIdT StackID = GlobalContext::TSK_Funcs;
881 for (const Function &I : *Mod) { 881 for (const Function &I : *Mod) {
882 if (I.empty()) 882 if (I.empty())
883 continue; 883 continue;
884 884
885 TimerIdT TimerID = 0; 885 TimerIdT TimerID = 0;
886 if (Ctx->getFlags().TimeEachFunction) { 886 if (ALLOW_DUMP && Ctx->getFlags().TimeEachFunction) {
887 TimerID = Ctx->getTimerID(StackID, I.getName()); 887 TimerID = Ctx->getTimerID(StackID, I.getName());
888 Ctx->pushTimer(TimerID, StackID); 888 Ctx->pushTimer(TimerID, StackID);
889 } 889 }
890 LLVM2ICEFunctionConverter FunctionConverter(*this); 890 LLVM2ICEFunctionConverter FunctionConverter(*this);
891 891
892 Cfg *Fcn = FunctionConverter.convertFunction(&I); 892 Cfg *Fcn = FunctionConverter.convertFunction(&I);
893 translateFcn(Fcn); 893 translateFcn(Fcn);
894 if (Ctx->getFlags().TimeEachFunction) 894 if (ALLOW_DUMP && Ctx->getFlags().TimeEachFunction)
895 Ctx->popTimer(TimerID, StackID); 895 Ctx->popTimer(TimerID, StackID);
896 } 896 }
897 897
898 emitConstants(); 898 emitConstants();
899 } 899 }
900 900
901 } // end of namespace Ice 901 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceCfg.cpp ('k') | src/IceGlobalContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698