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

Issue 456033003: Subzero: Randomize register assignment. (Closed)

Created:
6 years, 4 months ago by wala
Modified:
6 years 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: Randomize register assignment. Randomize the order that registers appear in the free list. Only randomize fully "equivalent" registers to ensure no extra spills. This adds the -randomize-regalloc option. BUG=none

Patch Set 1 #

Patch Set 2 : Remove redundancies. #

Total comments: 20

Patch Set 3 : Comments round 1 #

Patch Set 4 : Typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+253 lines, -24 lines) Patch
M src/IceDefs.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/IceRNG.h View 1 2 2 chunks +24 lines, -0 lines 0 comments Download
M src/IceRegAlloc.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/IceRegAlloc.cpp View 1 2 4 chunks +35 lines, -13 lines 0 comments Download
M src/IceTargetLowering.h View 1 2 3 chunks +6 lines, -3 lines 0 comments Download
M src/IceTargetLowering.cpp View 1 2 3 chunks +17 lines, -1 line 0 comments Download
M src/IceTargetLoweringX8632.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M src/IceTargetLoweringX8632.cpp View 1 2 3 chunks +114 lines, -6 lines 0 comments Download
M src/llvm2ice.cpp View 1 chunk +1 line, -0 lines 0 comments Download
A tests_lit/llvm2ice_tests/randomize-regalloc.ll View 1 2 1 chunk +50 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (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:08 UTC) #1
JF
I'm wondering if it would be a sufficient randomization to start allocating from the free ...
6 years, 4 months ago (2014-08-12 05:27:00 UTC) #2
Jim Stichnoth
https://codereview.chromium.org/456033003/diff/20001/src/IceRNG.h File src/IceRNG.h (right): https://codereview.chromium.org/456033003/diff/20001/src/IceRNG.h#newcode34 src/IceRNG.h:34: class RandomNumberGeneratorWrapper { Here and above, add the usual ...
6 years, 4 months ago (2014-08-14 01:10:29 UTC) #3
wala
I've changed the -Om1 register allocator implementation to begin assigning registers from a random offset ...
6 years, 4 months ago (2014-08-15 03:37:24 UTC) #4
Jim Stichnoth
6 years ago (2014-12-17 00:39:01 UTC) #5
This is being replaced by https://codereview.chromium.org/807293003/ since I
can't assume ownership of this CL.

Powered by Google App Engine
This is Rietveld 408576698