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

Issue 2064073005: Subzero: Improve register availability peephole for function return values. (Closed)

Created:
4 years, 6 months ago by Jim Stichnoth
Modified:
4 years, 6 months ago
Reviewers:
Eric Holk, Karl, John, manasijm
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 register availability peephole for function return values. Originally, a call instruction was lowered like this: // %result = call @foo(...) %t1:eax = call foo %result = %t1:eax Because t1 is pre-colored, it is not available as a substitution if the following instruction uses %result as a source operand. To improve this, we copy it through an intermediate temporary: // %result = call @foo(...) %t1:eax = call foo %t2 = %t1:eax %result = %t2 BUG= none R=eholk@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=deb5a8258ff638b23af3dd6f05eb1ea8bebd131d

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -7 lines) Patch
M src/IceTargetLoweringX86BaseImpl.h View 3 chunks +16 lines, -7 lines 2 comments Download

Messages

Total messages: 9 (3 generated)
Jim Stichnoth
4 years, 6 months ago (2016-06-14 23:55:33 UTC) #3
Eric Holk
Out of curiosity, did you measure whether this change has any impact on compile time ...
4 years, 6 months ago (2016-06-15 00:14:38 UTC) #4
Jim Stichnoth
https://codereview.chromium.org/2064073005/diff/20001/src/IceTargetLoweringX86BaseImpl.h File src/IceTargetLoweringX86BaseImpl.h (right): https://codereview.chromium.org/2064073005/diff/20001/src/IceTargetLoweringX86BaseImpl.h#newcode2733 src/IceTargetLoweringX86BaseImpl.h:2733: Variable *TmpHi = nullptr; On 2016/06/15 00:14:38, Eric Holk ...
4 years, 6 months ago (2016-06-15 00:35:31 UTC) #5
Jim Stichnoth
On 2016/06/15 00:14:38, Eric Holk wrote: > Out of curiosity, did you measure whether this ...
4 years, 6 months ago (2016-06-15 00:40:56 UTC) #6
Eric Holk
lgtm
4 years, 6 months ago (2016-06-15 00:47:43 UTC) #7
Jim Stichnoth
4 years, 6 months ago (2016-06-15 05:21:43 UTC) #9
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
deb5a8258ff638b23af3dd6f05eb1ea8bebd131d (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698