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

Issue 6665006: Reduce strength of ModI for power-of-2 divisor. (Closed)

Created:
9 years, 9 months ago by Vyacheslav Egorov (Chromium)
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Reduce strength of ModI for power-of-2 divisor. This is ia32 only. I will port it to other platforms if this looks good to you. Committed: http://code.google.com/p/v8/source/detail?r=7158

Patch Set 1 #

Total comments: 4

Patch Set 2 : port to arm and x64 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+191 lines, -76 lines) Patch
M src/arm/lithium-arm.cc View 1 1 chunk +15 lines, -4 lines 0 comments Download
M src/arm/lithium-codegen-arm.cc View 1 2 chunks +26 lines, -0 lines 1 comment Download
M src/hydrogen-instructions.h View 1 1 chunk +10 lines, -0 lines 0 comments Download
M src/ia32/lithium-codegen-ia32.cc View 1 1 chunk +53 lines, -29 lines 0 comments Download
M src/ia32/lithium-ia32.cc View 1 chunk +17 lines, -7 lines 0 comments Download
M src/x64/lithium-codegen-x64.cc View 1 1 chunk +53 lines, -29 lines 0 comments Download
M src/x64/lithium-x64.cc View 1 1 chunk +17 lines, -7 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Vyacheslav Egorov (Chromium)
9 years, 9 months ago (2011-03-10 21:33:26 UTC) #1
Kevin Millikin (Chromium)
I think it's fine. http://codereview.chromium.org/6665006/diff/1/src/hydrogen-instructions.h File src/hydrogen-instructions.h (right): http://codereview.chromium.org/6665006/diff/1/src/hydrogen-instructions.h#newcode2573 src/hydrogen-instructions.h:2573: int32_t value = HConstant::cast(right())->HasInteger32Value(); HConstant::cast(right()->Integer32Value(); ...
9 years, 9 months ago (2011-03-11 11:59:43 UTC) #2
Vyacheslav Egorov (Chromium)
I have fixed issues with ia32 implementation and ported it to ARM/x64. Please take another ...
9 years, 9 months ago (2011-03-14 14:30:51 UTC) #3
Kevin Millikin (Chromium)
9 years, 9 months ago (2011-03-14 14:35:07 UTC) #4
I just looked at the new code.  LGTM, comment applies to x64 as well.

http://codereview.chromium.org/6665006/diff/6001/src/arm/lithium-codegen-arm.cc
File src/arm/lithium-codegen-arm.cc (right):

http://codereview.chromium.org/6665006/diff/6001/src/arm/lithium-codegen-arm....
src/arm/lithium-codegen-arm.cc:799: if
(HMod::cast(instr->hydrogen())->HasPowerOf2Divisor()) {
The HMod::cast should not be necessary here (and just below).

Powered by Google App Engine
This is Rietveld 408576698