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

Issue 463563006: Subzero: Randomly insert nops. (Closed)

Created:
6 years, 4 months ago by wala
Modified:
6 years, 4 months ago
CC:
native-client-reviews_googlegroups.com
Base URL:
https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Visibility:
Public.

Description

Subzero: Randomly insert nops. Adds command line options -nop-insertion, -nop-insertion-probability=X, and -max-nops-per-instruction=X. BUG=none R=jvoung@chromium.org, stichnot@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=c330274

Patch Set 1 #

Patch Set 2 : Remove redundancy and fix formatting. #

Total comments: 10

Patch Set 3 : Comments round 1, make compatible with LLVM #

Total comments: 2

Patch Set 4 : IceTargetLowering::randomlyInsertNop: name the argument and make abstract #

Total comments: 2

Patch Set 5 : Fix insertion strategy #

Unified diffs Side-by-side diffs Delta from patch set Stats (+244 lines, -1 line) Patch
M src/IceCfg.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/IceCfg.cpp View 1 chunk +6 lines, -0 lines 0 comments Download
M src/IceCfgNode.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/IceCfgNode.cpp View 1 2 3 4 1 chunk +18 lines, -0 lines 0 comments Download
M src/IceInstX8632.h View 1 2 2 chunks +23 lines, -0 lines 0 comments Download
M src/IceInstX8632.cpp View 1 2 2 chunks +14 lines, -0 lines 0 comments Download
M src/IceRNG.h View 1 2 2 chunks +23 lines, -0 lines 0 comments Download
M src/IceRNG.cpp View 2 chunks +7 lines, -1 line 0 comments Download
M src/IceTargetLowering.h View 1 2 3 3 chunks +4 lines, -0 lines 0 comments Download
M src/IceTargetLowering.cpp View 1 2 3 4 2 chunks +31 lines, -0 lines 0 comments Download
M src/IceTargetLoweringX8632.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M src/IceTargetLoweringX8632.cpp View 1 2 4 chunks +19 lines, -0 lines 0 comments Download
A tests_lit/llvm2ice_tests/nop-insertion.ll View 1 2 3 4 1 chunk +93 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
wala
This is provisional. There may be changes after Wednesday's design review.
6 years, 4 months ago (2014-08-12 03:46:43 UTC) #1
Jim Stichnoth
lgtm https://codereview.chromium.org/463563006/diff/20001/src/IceRNG.h File src/IceRNG.h (right): https://codereview.chromium.org/463563006/diff/20001/src/IceRNG.h#newcode34 src/IceRNG.h:34: class RandomNumberGeneratorWrapper { Disable default copy ctor etc. ...
6 years, 4 months ago (2014-08-14 01:20:10 UTC) #2
jvoung (off chromium)
https://codereview.chromium.org/463563006/diff/20001/src/IceTargetLowering.cpp File src/IceTargetLowering.cpp (right): https://codereview.chromium.org/463563006/diff/20001/src/IceTargetLowering.cpp#newcode34 src/IceTargetLowering.cpp:34: cl::desc("Nop insertion probability"), A default of "10" should be ...
6 years, 4 months ago (2014-08-14 15:17:17 UTC) #3
wala
In addition to addressing the comments, I've made the interface identical to the current version ...
6 years, 4 months ago (2014-08-14 23:29:50 UTC) #4
Jim Stichnoth
https://codereview.chromium.org/463563006/diff/40001/src/IceTargetLowering.h File src/IceTargetLowering.h (right): https://codereview.chromium.org/463563006/diff/40001/src/IceTargetLowering.h#newcode199 src/IceTargetLowering.h:199: virtual void randomlyInsertNop(float) {} float Probability
6 years, 4 months ago (2014-08-15 14:07:08 UTC) #5
wala
https://codereview.chromium.org/463563006/diff/40001/src/IceTargetLowering.h File src/IceTargetLowering.h (right): https://codereview.chromium.org/463563006/diff/40001/src/IceTargetLowering.h#newcode199 src/IceTargetLowering.h:199: virtual void randomlyInsertNop(float) {} On 2014/08/15 14:07:08, stichnot wrote: ...
6 years, 4 months ago (2014-08-15 17:57:49 UTC) #6
Jim Stichnoth
Still lgtm, pending Jan's review.
6 years, 4 months ago (2014-08-15 20:06:39 UTC) #7
jvoung (off chromium)
LGTM thanks https://codereview.chromium.org/463563006/diff/60001/tests_lit/llvm2ice_tests/nop-insertion.ll File tests_lit/llvm2ice_tests/nop-insertion.ll (right): https://codereview.chromium.org/463563006/diff/60001/tests_lit/llvm2ice_tests/nop-insertion.ll#newcode66 tests_lit/llvm2ice_tests/nop-insertion.ll:66: ; PROB90: nop # variant = 0 ...
6 years, 4 months ago (2014-08-15 20:18:12 UTC) #8
wala
A slight change: I've made the nop insertion insert NOPs before the current instruction rather ...
6 years, 4 months ago (2014-08-15 22:19:46 UTC) #9
wala
6 years, 4 months ago (2014-08-15 23:22:02 UTC) #10
Message was sent while issue was closed.
Committed patchset #5 manually as c330274 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698