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

Issue 1784243006: Subzero: Improve the use of timers. (Closed)

Created:
4 years, 9 months ago by Jim Stichnoth
Modified:
4 years, 9 months ago
Reviewers:
Eric Holk, Karl, sehr, John
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Subzero: Improve the use of timers. Several things are done here: 1. Move timer support to be guarded by the ALLOW_TIMERS define, or the BuildDefs::timers() constexpr method. 2. Add a NODUMP build configuration to control whether dump support is built in. So "make -f Makefile.standalone NODUMP=1 NOASSERT=1" is pretty close to a MINIMAL build with timer support. 3. Add some missing timers: alloca analysis, RMW analysis, helper call pre-lowering, load optimization analysis. These omitted pass timings were being rolled up into the "O2" bucket. 4. Add timers around push and pop operations on the translate queue and the emit queue. 5. Refactor the clumsy code to push/pop function timers (as opposed to pass timers), so that it fits into the nice RAII TimerMarker class like the pass timers. 6. It turns out that even with MINIMAL or NODUMP builds, we still construct a longish std::string every time Cfg::dump() is called, even though the string isn't used in MINIMAL/NODUMP mode. The dump() arg might as well be a const char * arg instead. BUG= https://bugs.chromium.org/p/nativeclient/issues/detail?id=4360 R=kschimpf@google.com Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=b88d8c878538d856b845bd5cabdff7e75ef2761a

Patch Set 1 #

Total comments: 4

Patch Set 2 : Code review changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -75 lines) Patch
M Makefile.standalone View 1 chunk +12 lines, -4 lines 0 comments Download
M src/IceBuildDefs.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/IceCfg.h View 1 chunk +1 line, -1 line 0 comments Download
M src/IceCfg.cpp View 4 chunks +4 lines, -9 lines 0 comments Download
M src/IceCompiler.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M src/IceConverter.cpp View 1 chunk +1 line, -10 lines 0 comments Download
M src/IceELFObjectWriter.cpp View 2 chunks +1 line, -9 lines 0 comments Download
M src/IceGlobalContext.h View 4 chunks +14 lines, -6 lines 0 comments Download
M src/IceGlobalContext.cpp View 5 chunks +22 lines, -5 lines 0 comments Download
M src/IceTargetLowering.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M src/IceTargetLoweringX86BaseImpl.h View 2 chunks +2 lines, -0 lines 0 comments Download
M src/IceTimerTree.cpp View 10 chunks +10 lines, -10 lines 0 comments Download
M src/IceTimerTree.def View 3 chunks +8 lines, -0 lines 0 comments Download
M src/PNaClTranslator.cpp View 1 2 chunks +6 lines, -19 lines 0 comments Download

Messages

Total messages: 8 (4 generated)
Jim Stichnoth
4 years, 9 months ago (2016-03-11 22:51:45 UTC) #4
Karl
lgtm https://codereview.chromium.org/1784243006/diff/1/src/IceCompiler.cpp File src/IceCompiler.cpp (right): https://codereview.chromium.org/1784243006/diff/1/src/IceCompiler.cpp#newcode142 src/IceCompiler.cpp:142: constexpr bool NoDumpCumulative = false; What about? constexpr ...
4 years, 9 months ago (2016-03-11 23:05:50 UTC) #5
Jim Stichnoth
https://codereview.chromium.org/1784243006/diff/1/src/IceCompiler.cpp File src/IceCompiler.cpp (right): https://codereview.chromium.org/1784243006/diff/1/src/IceCompiler.cpp#newcode142 src/IceCompiler.cpp:142: constexpr bool NoDumpCumulative = false; On 2016/03/11 23:05:50, Karl ...
4 years, 9 months ago (2016-03-11 23:32:34 UTC) #6
Jim Stichnoth
4 years, 9 months ago (2016-03-11 23:33:05 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
b88d8c878538d856b845bd5cabdff7e75ef2761a (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698