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

Issue 709533002: Subzero: Implement InstList in terms of llvm::ilist<> . (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: Implement InstList in terms of llvm::ilist<> . Use LLVM's intrusive list ADT template to implement instruction lists. This embeds prev/next pointers into the instruction, and as such, iterators essentially double as instruction pointers. This means stripping off one level of indirection when dereferencing, and also the range-based for loop can't be used. The performance difference in translation time seems to be 1-2%. I tried to also do this for the much less used PhiList and AssignList, but ran into SFINAE problems. BUG= none R=jvoung@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=607e9f0e947305da9b54df6573920299c9f6610e

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add a comment explaining the ilist traits specialization #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -35 lines) Patch
M src/IceCfg.cpp View 2 chunks +4 lines, -2 lines 0 comments Download
M src/IceCfgNode.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/IceCfgNode.cpp View 14 chunks +21 lines, -20 lines 0 comments Download
M src/IceDefs.h View 2 chunks +3 lines, -1 line 0 comments Download
M src/IceInst.h View 1 2 chunks +19 lines, -1 line 0 comments Download
M src/IceOperand.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M src/IceTargetLowering.h View 1 chunk +2 lines, -2 lines 0 comments Download
M src/IceTargetLowering.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M src/IceTargetLoweringX8632.cpp View 5 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
Jim Stichnoth
6 years, 1 month ago (2014-11-06 19:47:43 UTC) #2
jvoung (off chromium)
otherwise LGTM https://codereview.chromium.org/709533002/diff/1/src/IceInst.h File src/IceInst.h (right): https://codereview.chromium.org/709533002/diff/1/src/IceInst.h#newcode841 src/IceInst.h:841: template <> Can you leave a comment ...
6 years, 1 month ago (2014-11-06 21:20:53 UTC) #3
Jim Stichnoth
https://codereview.chromium.org/709533002/diff/1/src/IceInst.h File src/IceInst.h (right): https://codereview.chromium.org/709533002/diff/1/src/IceInst.h#newcode841 src/IceInst.h:841: template <> On 2014/11/06 21:20:53, jvoung wrote: > Can ...
6 years, 1 month ago (2014-11-06 21:31:58 UTC) #4
Jim Stichnoth
6 years, 1 month ago (2014-11-06 21:32:08 UTC) #5
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
607e9f0e947305da9b54df6573920299c9f6610e (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698