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

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

Created:
6 years ago by Jim Stichnoth
Modified:
6 years ago
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/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. This is a continuation of https://codereview.chromium.org/456033003/ which Matt owns. BUG= none R=jfb@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=e6d24789bc5cc2ccadb5582ff51e5b4a5d4e2ac8

Patch Set 1 #

Patch Set 2 : Cleanup #

Patch Set 3 : Simply; fix a bug; add the lit test #

Total comments: 25

Patch Set 4 : Address most of JF's comments #

Patch Set 5 : Code review updates part B #

Patch Set 6 : Add Context() to initializer list #

Total comments: 2

Patch Set 7 : Add a TODO #

Unified diffs Side-by-side diffs Delta from patch set Stats (+210 lines, -15 lines) Patch
M src/IceDefs.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/IceRNG.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/IceRegAlloc.h View 1 chunk +1 line, -1 line 0 comments Download
M src/IceRegAlloc.cpp View 1 2 3 5 chunks +32 lines, -8 lines 0 comments Download
M src/IceTargetLowering.h View 1 2 3 3 chunks +6 lines, -3 lines 0 comments Download
M src/IceTargetLowering.cpp View 1 2 3 4 5 4 chunks +13 lines, -1 line 0 comments Download
M src/IceTargetLoweringX8632.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M src/IceTargetLoweringX8632.cpp View 1 2 3 4 5 6 2 chunks +67 lines, -1 line 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 3 4 1 chunk +84 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (1 generated)
Jim Stichnoth
6 years ago (2014-12-17 00:39:53 UTC) #2
JF
https://codereview.chromium.org/807293003/diff/40001/src/IceRNG.h File src/IceRNG.h (right): https://codereview.chromium.org/807293003/diff/40001/src/IceRNG.h#newcode46 src/IceRNG.h:46: uint64_t next(uint64_t Max) { return RNG.next(Max); } I'd only ...
6 years ago (2014-12-17 18:56:19 UTC) #3
jvoung (off chromium)
https://codereview.chromium.org/807293003/diff/40001/src/IceRegAlloc.cpp File src/IceRegAlloc.cpp (right): https://codereview.chromium.org/807293003/diff/40001/src/IceRegAlloc.cpp#newcode697 src/IceRegAlloc.cpp:697: Str << (RegNum == Item->getRegNum() ? "Reassigning " : ...
6 years ago (2014-12-17 19:53:34 UTC) #4
Jim Stichnoth
https://codereview.chromium.org/807293003/diff/40001/src/IceRNG.h File src/IceRNG.h (right): https://codereview.chromium.org/807293003/diff/40001/src/IceRNG.h#newcode46 src/IceRNG.h:46: uint64_t next(uint64_t Max) { return RNG.next(Max); } On 2014/12/17 ...
6 years ago (2014-12-18 18:52:03 UTC) #5
Jim Stichnoth
https://codereview.chromium.org/807293003/diff/40001/src/IceTargetLowering.cpp File src/IceTargetLowering.cpp (right): https://codereview.chromium.org/807293003/diff/40001/src/IceTargetLowering.cpp#newcode107 src/IceTargetLowering.cpp:107: RandomizeRegisterAllocation(CLRandomizeRegisterAllocation) {} On 2014/12/18 18:52:03, stichnot wrote: > On ...
6 years ago (2014-12-18 18:59:35 UTC) #6
JF
https://codereview.chromium.org/807293003/diff/100001/src/IceTargetLoweringX8632.cpp File src/IceTargetLoweringX8632.cpp (right): https://codereview.chromium.org/807293003/diff/100001/src/IceTargetLoweringX8632.cpp#newcode4534 src/IceTargetLoweringX8632.cpp:4534: llvm::SmallVectorImpl<int32_t> &Permutation, You may not want to type-erase the ...
6 years ago (2014-12-18 19:14:00 UTC) #7
Jim Stichnoth
https://codereview.chromium.org/807293003/diff/100001/src/IceTargetLoweringX8632.cpp File src/IceTargetLoweringX8632.cpp (right): https://codereview.chromium.org/807293003/diff/100001/src/IceTargetLoweringX8632.cpp#newcode4534 src/IceTargetLoweringX8632.cpp:4534: llvm::SmallVectorImpl<int32_t> &Permutation, On 2014/12/18 19:14:00, JF wrote: > You ...
6 years ago (2014-12-18 23:44:46 UTC) #8
JF
lgtm
6 years ago (2014-12-19 05:15:25 UTC) #9
Jim Stichnoth
6 years ago (2014-12-19 13:42:33 UTC) #10
Message was sent while issue was closed.
Committed patchset #7 (id:120001) manually as
e6d24789bc5cc2ccadb5582ff51e5b4a5d4e2ac8 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698