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

Side by Side Diff: src/IceCompiler.cpp

Issue 1775603002: Fix timing of parseFunctions. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nits. Created 4 years, 9 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 unified diff | Download patch
« no previous file with comments | « src/IceCfg.cpp ('k') | src/IceELFObjectWriter.cpp » ('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/IceCompiler.cpp - Driver for bitcode translation -------===// 1 //===- subzero/src/IceCompiler.cpp - Driver for bitcode translation -------===//
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 /// \file 10 /// \file
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 Ctx.waitForWorkerThreads(); 122 Ctx.waitForWorkerThreads();
123 if (Translator->getErrorStatus()) { 123 if (Translator->getErrorStatus()) {
124 Ctx.getErrorStatus()->assign(Translator->getErrorStatus().value()); 124 Ctx.getErrorStatus()->assign(Translator->getErrorStatus().value());
125 } else { 125 } else {
126 Ctx.lowerGlobals("last"); 126 Ctx.lowerGlobals("last");
127 Ctx.lowerProfileData(); 127 Ctx.lowerProfileData();
128 Ctx.lowerConstants(); 128 Ctx.lowerConstants();
129 Ctx.lowerJumpTables(); 129 Ctx.lowerJumpTables();
130 130
131 if (Ctx.getFlags().getOutFileType() == FT_Elf) { 131 if (Ctx.getFlags().getOutFileType() == FT_Elf) {
132 TimerMarker T1(Ice::TimerStack::TT_emit, &Ctx); 132 TimerMarker T1(Ice::TimerStack::TT_emitAsm, &Ctx);
133 Ctx.getObjectWriter()->setUndefinedSyms(Ctx.getConstantExternSyms()); 133 Ctx.getObjectWriter()->setUndefinedSyms(Ctx.getConstantExternSyms());
134 Ctx.getObjectWriter()->writeNonUserSections(); 134 Ctx.getObjectWriter()->writeNonUserSections();
135 } 135 }
136 } 136 }
137 137
138 if (Ctx.getFlags().getSubzeroTimingEnabled()) 138 if (Ctx.getFlags().getSubzeroTimingEnabled())
139 Ctx.dumpTimers(); 139 Ctx.dumpTimers();
140 140
141 if (Ctx.getFlags().getTimeEachFunction()) { 141 if (Ctx.getFlags().getTimeEachFunction()) {
142 constexpr bool DumpCumulative = false; 142 constexpr bool DumpCumulative = false;
143 Ctx.dumpTimers(GlobalContext::TSK_Funcs, DumpCumulative); 143 Ctx.dumpTimers(GlobalContext::TSK_Funcs, DumpCumulative);
144 } 144 }
145 constexpr bool FinalStats = true; 145 constexpr bool FinalStats = true;
146 Ctx.dumpStats("_FINAL_", FinalStats); 146 Ctx.dumpStats("_FINAL_", FinalStats);
147 } 147 }
148 148
149 } // end of namespace Ice 149 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceCfg.cpp ('k') | src/IceELFObjectWriter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698