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

Issue 704753007: Subzero: Improve the use of NodeList objects. (Closed)

Created:
6 years, 1 month ago by Jim Stichnoth
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

Subzero: Improve the use of NodeList objects. Currently NodeList is defined as std::vector<CfgNode*>, but in the future it may be desirable to change it to something like std::list<CfgNode*> so that it is easier to split edges and insert the new nodes at the right locations, rather than re-sorting them in a separate pass. This gets us closer by using foo.front() instead of foo[0]. There are still a couple more places using the [] operator, but the changes would be more intrusive. Also, a few instances of ".size()==0" are changed to the possibly more efficient ".empty()". BUG= none R=jvoung@chromium.org, kschimpf@google.com Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=bfb410dd04d46ca34b2ea437151af2dc26930b5b

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -22 lines) Patch
M src/IceCfg.cpp View 4 chunks +9 lines, -7 lines 4 comments Download
M src/IceCfgNode.cpp View 2 chunks +17 lines, -12 lines 0 comments Download
M src/IceTargetLoweringX8632.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/PNaClTranslator.cpp View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (1 generated)
Jim Stichnoth
6 years, 1 month ago (2014-11-05 23:14:33 UTC) #2
Karl
https://codereview.chromium.org/704753007/diff/1/src/IceCfg.cpp File src/IceCfg.cpp (right): https://codereview.chromium.org/704753007/diff/1/src/IceCfg.cpp#newcode192 src/IceCfg.cpp:192: SizeT OldSize = Nodes.size(); Note: One of the downsides ...
6 years, 1 month ago (2014-11-05 23:24:38 UTC) #3
Jim Stichnoth
https://codereview.chromium.org/704753007/diff/1/src/IceCfg.cpp File src/IceCfg.cpp (right): https://codereview.chromium.org/704753007/diff/1/src/IceCfg.cpp#newcode192 src/IceCfg.cpp:192: SizeT OldSize = Nodes.size(); On 2014/11/05 23:24:37, Karl wrote: ...
6 years, 1 month ago (2014-11-05 23:39:46 UTC) #4
Karl
lgtm
6 years, 1 month ago (2014-11-05 23:42:07 UTC) #5
jvoung (off chromium)
lgtm
6 years, 1 month ago (2014-11-05 23:57:44 UTC) #6
Jim Stichnoth
6 years, 1 month ago (2014-11-06 00:04:11 UTC) #7
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
bfb410dd04d46ca34b2ea437151af2dc26930b5b (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698