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

Issue 11190049: Improve ClampDoubleToUint8 on ia32/x64 (Closed)

Created:
8 years, 2 months ago by Zheng Liu
Modified:
8 years, 2 months ago
Reviewers:
Sven Panne, Yang
CC:
v8-dev, zheng.z.liu
Visibility:
Public.

Description

Improve ClampDoubleToUint8 on ia32/x64. It's measured faster when: a) clamp never happens; b) clamp random happens ([-128,384], pseudo random). Committed: https://code.google.com/p/v8/source/detail?r=12777

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -32 lines) Patch
M src/ia32/lithium-ia32.cc View 1 chunk +1 line, -1 line 1 comment Download
M src/ia32/macro-assembler-ia32.cc View 1 chunk +13 lines, -5 lines 0 comments Download
M src/x64/lithium-codegen-x64.cc View 3 chunks +3 lines, -5 lines 0 comments Download
M src/x64/lithium-x64.h View 2 chunks +6 lines, -11 lines 0 comments Download
M src/x64/lithium-x64.cc View 2 chunks +1 line, -3 lines 0 comments Download
M src/x64/macro-assembler-x64.h View 1 chunk +1 line, -2 lines 0 comments Download
M src/x64/macro-assembler-x64.cc View 1 chunk +13 lines, -5 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Zheng Liu
PTAL Zheng Liu zheng.z.liu@intel.com
8 years, 2 months ago (2012-10-19 05:20:58 UTC) #1
Yang
On 2012/10/19 05:20:58, Zheng Liu wrote: > PTAL > > Zheng Liu > mailto:zheng.z.liu@intel.com LGTM ...
8 years, 2 months ago (2012-10-19 09:29:37 UTC) #2
Yang
https://codereview.chromium.org/11190049/diff/1/src/ia32/lithium-ia32.cc File src/ia32/lithium-ia32.cc (right): https://codereview.chromium.org/11190049/diff/1/src/ia32/lithium-ia32.cc#newcode1782 src/ia32/lithium-ia32.cc:1782: return DefineFixed(new(zone()) LClampDToUint8(reg), eax); I assume that you have ...
8 years, 2 months ago (2012-10-19 09:29:45 UTC) #3
Zheng Liu
On 2012/10/19 09:29:45, Yang wrote: > https://codereview.chromium.org/11190049/diff/1/src/ia32/lithium-ia32.cc > File src/ia32/lithium-ia32.cc (right): > > https://codereview.chromium.org/11190049/diff/1/src/ia32/lithium-ia32.cc#newcode1782 > ...
8 years, 2 months ago (2012-10-19 10:25:48 UTC) #4
Yang
8 years, 2 months ago (2012-10-19 13:21:12 UTC) #5
On 2012/10/19 10:25:48, Zheng Liu wrote:
> On 2012/10/19 09:29:45, Yang wrote:
> > https://codereview.chromium.org/11190049/diff/1/src/ia32/lithium-ia32.cc
> > File src/ia32/lithium-ia32.cc (right):
> > 
> >
>
https://codereview.chromium.org/11190049/diff/1/src/ia32/lithium-ia32.cc#newc...
> > src/ia32/lithium-ia32.cc:1782: return DefineFixed(new(zone())
> > LClampDToUint8(reg), eax);
> > I assume that you have to use EAX because SETcc needs to access the least
> > significant byte, ruling out ESI and EDI?
> 
> Yes.
> And I sent a micro benchmark to you (with a 2MiB attachment).

Thanks for this patch! I landed this as r12777.

Powered by Google App Engine
This is Rietveld 408576698