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

Issue 1866463002: Subzero: Improve non-MINIMAL string performance. (Closed)

Created:
4 years, 8 months ago by Jim Stichnoth
Modified:
4 years, 8 months ago
Reviewers:
Eric Holk, Karl, sehr, John
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

Subzero: Improve non-MINIMAL string performance. In a DUMP-enabled build, such as the standard Release+Asserts build, translator performance has regressed as a result of 467ffe51bebcb3ae3e3ce745c38fc20e8837c31c (https://codereview.chromium.org/1838753002). This is because Variable and CfgNode names are being instantiated unconditionally, rather than on-demand. This CL restores most of that performance by going back to being on-demand. Note that it should have no effect on MINIMAL build performance. Also, it turns out that Variable::getName() does not really need the Cfg* parameter, so that is removed (and all its callers are fixed transitively). In addition, Variable and CfgNode are made more uniform with respect to each other in terms of inline definitions of the ctor, getName(), and setName(). BUG= none R=jpp@chromium.org, kschimpf@google.com Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=a91c34118294efbf08ebd11eed96fce83bf35f3c

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -53 lines) Patch
M src/IceCfg.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/IceCfgNode.h View 2 chunks +10 lines, -3 lines 0 comments Download
M src/IceCfgNode.cpp View 5 chunks +4 lines, -13 lines 0 comments Download
M src/IceInst.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/IceOperand.h View 5 chunks +11 lines, -14 lines 0 comments Download
M src/IceOperand.cpp View 2 chunks +2 lines, -8 lines 0 comments Download
M src/IceRegAlloc.cpp View 3 chunks +5 lines, -5 lines 0 comments Download
M src/IceTargetLoweringARM32.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M src/IceTargetLoweringMIPS32.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M src/IceTargetLoweringX86BaseImpl.h View 4 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 9 (5 generated)
Jim Stichnoth
4 years, 8 months ago (2016-04-05 22:01:01 UTC) #5
Karl
lgtm
4 years, 8 months ago (2016-04-05 22:06:20 UTC) #6
John
lgtm
4 years, 8 months ago (2016-04-05 22:08:00 UTC) #7
Jim Stichnoth
4 years, 8 months ago (2016-04-05 22:32:13 UTC) #9
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
a91c34118294efbf08ebd11eed96fce83bf35f3c (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698