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

Issue 1900543002: Subzero: Allow per-method controls. (Closed)

Created:
4 years, 8 months ago by Jim Stichnoth
Modified:
4 years, 8 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: Allow per-method controls. Several aspects of compilation can now be controlled with fine per-function granularity: - Focus -timing on individual functions - Only translate certain functions - Enable verbosity only for certain functions - Force O2 translation for certain functions (with Om1 default) In addition, -test-status limits the output of -verbose=status. This is just used to enable lit testing of the RangeSpec class. The main motivation here is to enable bisection debugging of a PNaCl application running in the browser. The initial use is to control O2 versus Om1, and could be extended to control things like address mode inference and advanced phi lowering, possibly even controlling at the granularity of the instruction numbers. BUG= https://bugs.chromium.org/p/nativeclient/issues/detail?id=4370 R=eholk@chromium.org, jpp@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=dd6dcfaf765dc93ae64ec45d623106f4b3a3c13a

Patch Set 1 #

Patch Set 2 : Some cleanup #

Patch Set 3 : More cleanup #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+394 lines, -64 lines) Patch
M Makefile.standalone View 1 chunk +1 line, -0 lines 0 comments Download
M src/IceCfg.h View 2 chunks +3 lines, -1 line 0 comments Download
M src/IceCfg.cpp View 2 chunks +15 lines, -10 lines 0 comments Download
M src/IceClFlags.h View 1 2 2 chunks +25 lines, -0 lines 0 comments Download
M src/IceClFlags.cpp View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M src/IceClFlags.def View 3 chunks +13 lines, -7 lines 2 comments Download
M src/IceELFObjectWriter.cpp View 2 chunks +3 lines, -4 lines 0 comments Download
M src/IceGlobalContext.h View 1 chunk +0 lines, -8 lines 0 comments Download
M src/IceGlobalContext.cpp View 5 chunks +12 lines, -18 lines 0 comments Download
A src/IceRangeSpec.h View 1 1 chunk +73 lines, -0 lines 0 comments Download
A src/IceRangeSpec.cpp View 1 2 1 chunk +161 lines, -0 lines 0 comments Download
M src/IceStringPool.h View 1 chunk +2 lines, -0 lines 2 comments Download
M src/IceTargetLowering.h View 1 chunk +1 line, -1 line 0 comments Download
M src/IceTargetLoweringARM32.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M src/IceTargetLoweringMIPS32.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M src/IceTargetLoweringX86BaseImpl.h View 7 chunks +7 lines, -8 lines 0 comments Download
M src/PNaClTranslator.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
A tests_lit/llvm2ice_tests/rangespec.ll View 1 1 chunk +68 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
Jim Stichnoth
4 years, 8 months ago (2016-04-18 17:01:53 UTC) #3
John
lgtm did you think about how to use this for register include/exclude cl flags?
4 years, 8 months ago (2016-04-18 18:48:39 UTC) #4
Eric Holk
lgtm https://codereview.chromium.org/1900543002/diff/40001/src/IceClFlags.def File src/IceClFlags.def (right): https://codereview.chromium.org/1900543002/diff/40001/src/IceClFlags.def#newcode153 src/IceClFlags.def:153: cl::desc("Force -O2 for certain functions (assumes -Om1)"), cl::init("")) ...
4 years, 8 months ago (2016-04-18 18:51:49 UTC) #5
Jim Stichnoth
On 2016/04/18 18:48:39, John wrote: > lgtm > > did you think about how to ...
4 years, 8 months ago (2016-04-18 19:49:39 UTC) #6
Jim Stichnoth
https://codereview.chromium.org/1900543002/diff/40001/src/IceClFlags.def File src/IceClFlags.def (right): https://codereview.chromium.org/1900543002/diff/40001/src/IceClFlags.def#newcode153 src/IceClFlags.def:153: cl::desc("Force -O2 for certain functions (assumes -Om1)"), cl::init("")) \ ...
4 years, 8 months ago (2016-04-18 19:49:49 UTC) #7
Jim Stichnoth
4 years, 8 months ago (2016-04-18 19:52:18 UTC) #9
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
dd6dcfaf765dc93ae64ec45d623106f4b3a3c13a (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698