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

Issue 1775253003: Cache common constants before lowering. (Closed)

Created:
4 years, 9 months ago by Karl
Modified:
4 years, 9 months ago
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Cache common constants before lowering. This code moves some constants used by the target lowering, so that they are defined (and cached) during static initialization of the target lowering, rather than looking up everytime they are used. This CL does this for the constant zero, and predefined helper functions. BUG= https://bugs.chromium.org/p/nativeclient/issues/detail?id=4076 R=jpp@chromium.org, stichnot@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=20070e84c21b9aa15a83e53b5d2ffa692c4e081a

Patch Set 1 #

Patch Set 2 : Clean up code. #

Total comments: 19

Patch Set 3 : Fix issues from last patch. #

Patch Set 4 : Fix nits. #

Total comments: 25

Patch Set 5 : Fix issues raised in last patch. #

Patch Set 6 : Make RuntimeHelper an enum class. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+277 lines, -164 lines) Patch
M src/IceGlobalContext.h View 1 2 3 4 5 5 chunks +73 lines, -6 lines 2 comments Download
M src/IceGlobalContext.cpp View 1 2 3 4 5 4 chunks +33 lines, -27 lines 0 comments Download
M src/IceTargetLowering.h View 1 2 3 4 5 2 chunks +1 line, -40 lines 0 comments Download
M src/IceTargetLowering.cpp View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
A src/IceTargetLowering.def View 1 2 3 4 1 chunk +59 lines, -0 lines 0 comments Download
M src/IceTargetLoweringARM32.cpp View 1 2 3 4 5 15 chunks +51 lines, -44 lines 0 comments Download
M src/IceTargetLoweringMIPS32.cpp View 1 2 3 4 5 chunks +8 lines, -6 lines 0 comments Download
M src/IceTargetLoweringX8664.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/IceTargetLoweringX86BaseImpl.h View 1 2 3 4 5 16 chunks +49 lines, -38 lines 0 comments Download

Messages

Total messages: 15 (3 generated)
Karl
4 years, 9 months ago (2016-03-09 20:01:18 UTC) #3
John
https://codereview.chromium.org/1775253003/diff/20001/src/IceTargetLowering.cpp File src/IceTargetLowering.cpp (right): https://codereview.chromium.org/1775253003/diff/20001/src/IceTargetLowering.cpp#newcode265 src/IceTargetLowering.cpp:265: #define X(Ty) \ This looks dangerous in the context ...
4 years, 9 months ago (2016-03-09 23:26:56 UTC) #4
Jim Stichnoth
https://codereview.chromium.org/1775253003/diff/20001/src/IceTargetLowering.def File src/IceTargetLowering.def (right): https://codereview.chromium.org/1775253003/diff/20001/src/IceTargetLowering.def#newcode34 src/IceTargetLowering.def:34: X(bitcast_16xi1_i16, "__Sz_bitcast_16xi1_i16") \ Could you reformat this into aligned ...
4 years, 9 months ago (2016-03-10 00:24:46 UTC) #5
Karl
https://codereview.chromium.org/1775253003/diff/20001/src/IceTargetLowering.cpp File src/IceTargetLowering.cpp (right): https://codereview.chromium.org/1775253003/diff/20001/src/IceTargetLowering.cpp#newcode265 src/IceTargetLowering.cpp:265: #define X(Ty) \ On 2016/03/09 23:26:56, John wrote: > ...
4 years, 9 months ago (2016-03-16 22:50:52 UTC) #6
Jim Stichnoth
https://codereview.chromium.org/1775253003/diff/60001/src/IceGlobalContext.cpp File src/IceGlobalContext.cpp (right): https://codereview.chromium.org/1775253003/diff/60001/src/IceGlobalContext.cpp#newcode302 src/IceGlobalContext.cpp:302: { Is this set of braces necessary? https://codereview.chromium.org/1775253003/diff/60001/src/IceGlobalContext.cpp#newcode673 src/IceGlobalContext.cpp:673: ...
4 years, 9 months ago (2016-03-17 00:14:52 UTC) #7
John
lgtm https://codereview.chromium.org/1775253003/diff/60001/src/IceGlobalContext.cpp File src/IceGlobalContext.cpp (right): https://codereview.chromium.org/1775253003/diff/60001/src/IceGlobalContext.cpp#newcode751 src/IceGlobalContext.cpp:751: return nullptr; On 2016/03/17 00:14:52, stichnot wrote: > ...
4 years, 9 months ago (2016-03-17 14:31:33 UTC) #8
Karl
https://codereview.chromium.org/1775253003/diff/60001/src/IceGlobalContext.cpp File src/IceGlobalContext.cpp (right): https://codereview.chromium.org/1775253003/diff/60001/src/IceGlobalContext.cpp#newcode302 src/IceGlobalContext.cpp:302: { On 2016/03/17 00:14:52, stichnot wrote: > Is this ...
4 years, 9 months ago (2016-03-17 16:40:53 UTC) #9
John
https://codereview.chromium.org/1775253003/diff/60001/src/IceGlobalContext.h File src/IceGlobalContext.h (right): https://codereview.chromium.org/1775253003/diff/60001/src/IceGlobalContext.h#newcode47 src/IceGlobalContext.h:47: enum RuntimeHelperFuncID { On 2016/03/17 16:40:53, Karl wrote: > ...
4 years, 9 months ago (2016-03-17 16:57:17 UTC) #10
Karl
https://codereview.chromium.org/1775253003/diff/60001/src/IceGlobalContext.h File src/IceGlobalContext.h (right): https://codereview.chromium.org/1775253003/diff/60001/src/IceGlobalContext.h#newcode47 src/IceGlobalContext.h:47: enum RuntimeHelperFuncID { On 2016/03/17 16:57:17, John wrote: > ...
4 years, 9 months ago (2016-03-17 18:54:56 UTC) #11
Jim Stichnoth
lgtm https://codereview.chromium.org/1775253003/diff/100001/src/IceGlobalContext.h File src/IceGlobalContext.h (right): https://codereview.chromium.org/1775253003/diff/100001/src/IceGlobalContext.h#newcode267 src/IceGlobalContext.h:267: Constant *Result = RuntimeHelperFunc[static_cast<size_t>(FuncID)]; Can you can use ...
4 years, 9 months ago (2016-03-17 20:12:23 UTC) #12
John
lgtm https://codereview.chromium.org/1775253003/diff/100001/src/IceGlobalContext.h File src/IceGlobalContext.h (right): https://codereview.chromium.org/1775253003/diff/100001/src/IceGlobalContext.h#newcode267 src/IceGlobalContext.h:267: Constant *Result = RuntimeHelperFunc[static_cast<size_t>(FuncID)]; On 2016/03/17 20:12:22, stichnot ...
4 years, 9 months ago (2016-03-17 20:22:57 UTC) #13
Karl
4 years, 9 months ago (2016-03-17 20:30:18 UTC) #15
Message was sent while issue was closed.
Committed patchset #6 (id:100001) manually as
20070e84c21b9aa15a83e53b5d2ffa692c4e081a (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698