OSDN Git Service

Subzero: Fix -timing-funcs and -timing-focus flags.
authorJim Stichnoth <stichnot@chromium.org>
Mon, 4 Apr 2016 04:58:03 +0000 (21:58 -0700)
committerJim Stichnoth <stichnot@chromium.org>
Mon, 4 Apr 2016 04:58:03 +0000 (21:58 -0700)
commit318c01bca3cebe3a452333a5bc4bf64b8ab817c8
tree37f186b4db1479e771f18cc4ad8cbe8f192b53d2
parent2a9d186d1cb3eb75f90f2c82ec7c84ee06c3b569
Subzero: Fix -timing-funcs and -timing-focus flags.

1. Generate dummy FunctionXXX function names when either of those flags is given.

2. Remove the browser code that automatically sets F/G prefixes instead of Function/Global, since that performance tweak is no longer relevant.

3. Fix a presumably long-standing bug where -timing-focus would accumulate timings into the TLS copy of the timers, but would then try to print timing info based on the currently-empty GlobalContext copy of the timers.

BUG= none
R=kschimpf@google.com

Review URL: https://codereview.chromium.org/1855683002 .
src/IceCfg.cpp
src/IceClFlags.def
src/IceGlobalContext.cpp
src/IceGlobalContext.h
src/PNaClTranslator.cpp