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

Issue 642603005: Subzero: Translation-time improvements in the register allocator. (Closed)

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

Description

Subzero: Translation-time improvements in the register allocator. 1. Use a sorted std::vector instead of std::set to improve management of the Unhandled sets. This is the main performance gain. 2. Use std::list.splice() to move items between lists, instead of erase()+push_back(). This doesn't really save much, but the intention is somewhat clearer. BUG= none R=jvoung@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=e22f823680ec21304509c1ebcee119cb843f5e76

Patch Set 1 #

Total comments: 5

Patch Set 2 : Code review changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -43 lines) Patch
M src/IceRegAlloc.h View 2 chunks +3 lines, -16 lines 0 comments Download
M src/IceRegAlloc.cpp View 1 13 chunks +31 lines, -27 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
Jim Stichnoth
This gives at least 5% gain in most cases, sometimes more than 10%.
6 years, 2 months ago (2014-10-13 21:28:08 UTC) #2
jvoung (off chromium)
lgtm https://codereview.chromium.org/642603005/diff/1/src/IceRegAlloc.cpp File src/IceRegAlloc.cpp (right): https://codereview.chromium.org/642603005/diff/1/src/IceRegAlloc.cpp#newcode96 src/IceRegAlloc.cpp:96: // Unhandled set. TODO: Unhandled is a set<> ...
6 years, 2 months ago (2014-10-13 21:41:50 UTC) #3
Jim Stichnoth
Committed patchset #2 (id:80001) manually as e22f823680ec21304509c1ebcee119cb843f5e76 (presubmit successful).
6 years, 2 months ago (2014-10-13 23:21:03 UTC) #4
Jim Stichnoth
6 years, 2 months ago (2014-10-13 23:40:31 UTC) #5
Message was sent while issue was closed.
https://codereview.chromium.org/642603005/diff/1/src/IceRegAlloc.cpp
File src/IceRegAlloc.cpp (right):

https://codereview.chromium.org/642603005/diff/1/src/IceRegAlloc.cpp#newcode96
src/IceRegAlloc.cpp:96: // Unhandled set.  TODO: Unhandled is a set<> which is
based on a
On 2014/10/13 21:41:50, jvoung wrote:
> Could remove comment about Unhandled being a set<>

Removed the TODO altogether, as I think this is now the best overall approach.

https://codereview.chromium.org/642603005/diff/1/src/IceRegAlloc.cpp#newcode124
src/IceRegAlloc.cpp:124: // Do a reverse sort so that erasing elements (from the
end) is
On 2014/10/13 21:41:50, jvoung wrote:
> Can the comment fit on one line?

Done.  (overriding emacs's default preferences :) )

Powered by Google App Engine
This is Rietveld 408576698