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

Issue 11308040: ARM: Emit RSB (reverse-subtract) for subtraction with constant lhs (Closed)

Created:
8 years, 1 month ago by hans
Modified:
8 years, 1 month ago
Reviewers:
ulan
CC:
v8-dev
Visibility:
Public.

Description

Emit RSB for subtraction with constant lhs on ARM Instead of generating the following for "100 - x": mov r1, #100 subs r0, r1, r0 this patch makes Crankshaft generate this: rsbs r0, r0, #100 thus saving a register and a mov. BUG= Committed: https://code.google.com/p/v8/source/detail?r=13017

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebase, address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -0 lines) Patch
M src/arm/lithium-arm.h View 3 chunks +17 lines, -0 lines 0 comments Download
M src/arm/lithium-arm.cc View 1 2 chunks +25 lines, -0 lines 0 comments Download
M src/arm/lithium-codegen-arm.cc View 1 chunk +21 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
hans
I couldn't measure any performance impact on the benchmarks with this, but thought I might ...
8 years, 1 month ago (2012-11-15 16:14:58 UTC) #1
hans
> this patch makes Crankshaft generate this: > > rsbs r0, r1, #100 Sorry, that ...
8 years, 1 month ago (2012-11-16 13:58:40 UTC) #2
ulan_google
Looks good, one small comment: https://codereview.chromium.org/11308040/diff/1/src/arm/lithium-arm.cc File src/arm/lithium-arm.cc (right): https://codereview.chromium.org/11308040/diff/1/src/arm/lithium-arm.cc#newcode1356 src/arm/lithium-arm.cc:1356: ASSERT(instr->left().IsInteger32()); This should be ...
8 years, 1 month ago (2012-11-20 08:53:06 UTC) #3
hans
Uploaded new patch. This one removes the assert that was failing. I've failed http://code.google.com/p/v8/issues/detail?id=2420 for ...
8 years, 1 month ago (2012-11-20 10:10:19 UTC) #4
ulan
8 years, 1 month ago (2012-11-20 14:45:30 UTC) #5
LGTM, landing

Powered by Google App Engine
This is Rietveld 408576698