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

Issue 696383004: Disable Subzero IR generation for performance testing. (Closed)

Created:
6 years, 1 month ago by Karl
Modified:
6 years, 1 month ago
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Visibility:
Public.

Description

Disable Subzero IR generation for performance testing. This CL allows one to time Subzero's bitcode parsing without IR generation (other than types, function declarations, and uninitialized global variables) for performance testing. BUG=None R=jvoung@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=6fcbdddb021da27376e62c32623f92b3904b6211

Patch Set 1 #

Patch Set 2 : Fix formatting. #

Total comments: 4

Patch Set 3 : Fix issues in patch set 2. #

Total comments: 17

Patch Set 4 : Fix issues in patch set 2, and add tests. #

Total comments: 6

Patch Set 5 : Fix issues in patch set 4. #

Patch Set 6 : Fix nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+388 lines, -63 lines) Patch
M Makefile.standalone View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M pydir/run-llvm2ice.py View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M src/IceCfg.cpp View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M src/IceClFlags.h View 1 2 chunks +4 lines, -2 lines 0 comments Download
M src/IceGlobalContext.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M src/IceOperand.h View 1 2 3 3 chunks +6 lines, -0 lines 0 comments Download
M src/PNaClTranslator.cpp View 1 2 3 4 47 chunks +223 lines, -47 lines 0 comments Download
M src/llvm2ice.cpp View 1 2 3 4 5 5 chunks +20 lines, -6 lines 0 comments Download
M tests_lit/lit.cfg View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M tests_lit/reader_tests/alloca.ll View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M tests_lit/reader_tests/binops.ll View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M tests_lit/reader_tests/branch.ll View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M tests_lit/reader_tests/call.ll View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M tests_lit/reader_tests/call-indirect.ll View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M tests_lit/reader_tests/casts.ll View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M tests_lit/reader_tests/compare.ll View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M tests_lit/reader_tests/constants.ll View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M tests_lit/reader_tests/forwardref.ll View 1 2 3 4 2 chunks +6 lines, -1 line 0 comments Download
M tests_lit/reader_tests/globalinit.pnacl.ll View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M tests_lit/reader_tests/globalrelocs.ll View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M tests_lit/reader_tests/insertextract.ll View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M tests_lit/reader_tests/load.ll View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M tests_lit/reader_tests/nacl-atomic-intrinsics.ll View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M tests_lit/reader_tests/nacl-other-intrinsics.ll View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M tests_lit/reader_tests/phi.ll View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M tests_lit/reader_tests/select.ll View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M tests_lit/reader_tests/store.ll View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M tests_lit/reader_tests/switch.ll View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M tests_lit/reader_tests/unnamed.ll View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download
M tests_lit/reader_tests/unreachable.ll View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (1 generated)
Karl
6 years, 1 month ago (2014-11-03 23:32:57 UTC) #2
Jim Stichnoth
https://codereview.chromium.org/696383004/diff/20001/src/PNaClTranslator.cpp File src/PNaClTranslator.cpp (right): https://codereview.chromium.org/696383004/diff/20001/src/PNaClTranslator.cpp#newcode204 src/PNaClTranslator.cpp:204: bool disableIRGeneration() const { Add comment for consistency with ...
6 years, 1 month ago (2014-11-04 00:07:07 UTC) #3
Karl
https://codereview.chromium.org/696383004/diff/20001/src/PNaClTranslator.cpp File src/PNaClTranslator.cpp (right): https://codereview.chromium.org/696383004/diff/20001/src/PNaClTranslator.cpp#newcode204 src/PNaClTranslator.cpp:204: bool disableIRGeneration() const { On 2014/11/04 00:07:07, stichnot wrote: ...
6 years, 1 month ago (2014-11-04 20:37:22 UTC) #4
jvoung (off chromium)
https://codereview.chromium.org/696383004/diff/40001/src/IceOperand.h File src/IceOperand.h (right): https://codereview.chromium.org/696383004/diff/40001/src/IceOperand.h#newcode388 src/IceOperand.h:388: return new (Func->allocate<Variable>()) Why not have Cfg's makeVariable() also ...
6 years, 1 month ago (2014-11-04 22:30:15 UTC) #5
Jim Stichnoth
https://codereview.chromium.org/696383004/diff/40001/src/IceOperand.h File src/IceOperand.h (right): https://codereview.chromium.org/696383004/diff/40001/src/IceOperand.h#newcode388 src/IceOperand.h:388: return new (Func->allocate<Variable>()) On 2014/11/04 22:30:15, jvoung wrote: > ...
6 years, 1 month ago (2014-11-04 23:43:15 UTC) #6
Karl
Also updated reader tests to make sure parsing still works when no IR is generated ...
6 years, 1 month ago (2014-11-05 21:13:34 UTC) #7
jvoung (off chromium)
https://codereview.chromium.org/696383004/diff/60001/pydir/run-llvm2ice.py File pydir/run-llvm2ice.py (right): https://codereview.chromium.org/696383004/diff/60001/pydir/run-llvm2ice.py#newcode64 pydir/run-llvm2ice.py:64: if '-noIRgen' in args.args or '--noIRgen' in args.args: Is ...
6 years, 1 month ago (2014-11-05 23:55:08 UTC) #8
Karl
https://codereview.chromium.org/696383004/diff/60001/pydir/run-llvm2ice.py File pydir/run-llvm2ice.py (right): https://codereview.chromium.org/696383004/diff/60001/pydir/run-llvm2ice.py#newcode64 pydir/run-llvm2ice.py:64: if '-noIRgen' in args.args or '--noIRgen' in args.args: On ...
6 years, 1 month ago (2014-11-06 17:06:11 UTC) #9
jvoung (off chromium)
LGTM
6 years, 1 month ago (2014-11-06 17:33:05 UTC) #10
Karl
6 years, 1 month ago (2014-11-06 17:49:32 UTC) #11
Message was sent while issue was closed.
Committed patchset #6 (id:100001) manually as
6fcbdddb021da27376e62c32623f92b3904b6211 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698