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

Issue 19695007: Optimize double min/max by reducing the code size (reusing left register as result removes the need… (Closed)

Created:
7 years, 5 months ago by srdjan
Modified:
7 years, 5 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Optimize double min/max by reducing the code size (reusing left register as result removes the need to copy left into result). Add code for two Smi arguments. R=regis@google.com, zra@google.com Committed: https://code.google.com/p/dart/source/detail?r=25367

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+135 lines, -67 lines) Patch
M runtime/vm/flow_graph_optimizer.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M runtime/vm/intermediate_language_arm.cc View 1 3 chunks +26 lines, -11 lines 0 comments Download
M runtime/vm/intermediate_language_ia32.cc View 1 3 chunks +36 lines, -18 lines 2 comments Download
M runtime/vm/intermediate_language_mips.cc View 1 3 chunks +35 lines, -18 lines 0 comments Download
M runtime/vm/intermediate_language_x64.cc View 1 3 chunks +37 lines, -18 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
srdjan
7 years, 5 months ago (2013-07-23 18:50:23 UTC) #1
regis
LGTM https://codereview.chromium.org/19695007/diff/1/runtime/vm/intermediate_language_arm.cc File runtime/vm/intermediate_language_arm.cc (right): https://codereview.chromium.org/19695007/diff/1/runtime/vm/intermediate_language_arm.cc#newcode3428 runtime/vm/intermediate_language_arm.cc:3428: __ mov(result, ShifterOperand(right), GE); GT would be more ...
7 years, 5 months ago (2013-07-23 19:45:47 UTC) #2
zra
lgtm
7 years, 5 months ago (2013-07-23 19:51:49 UTC) #3
srdjan
https://codereview.chromium.org/19695007/diff/1/runtime/vm/intermediate_language_arm.cc File runtime/vm/intermediate_language_arm.cc (right): https://codereview.chromium.org/19695007/diff/1/runtime/vm/intermediate_language_arm.cc#newcode3428 runtime/vm/intermediate_language_arm.cc:3428: __ mov(result, ShifterOperand(right), GE); On 2013/07/23 19:45:47, regis wrote: ...
7 years, 5 months ago (2013-07-23 20:34:01 UTC) #4
srdjan
Committed patchset #2 manually as r25367 (presubmit successful).
7 years, 5 months ago (2013-07-23 20:40:45 UTC) #5
sra1
https://codereview.chromium.org/19695007/diff/9001/runtime/vm/intermediate_language_ia32.cc File runtime/vm/intermediate_language_ia32.cc (right): https://codereview.chromium.org/19695007/diff/9001/runtime/vm/intermediate_language_ia32.cc#newcode3718 runtime/vm/intermediate_language_ia32.cc:3718: __ j(LESS_EQUAL, &done, Assembler::kNearJump); CMOVLE result, right Or is ...
7 years, 5 months ago (2013-07-23 20:53:27 UTC) #6
srdjan
https://codereview.chromium.org/19695007/diff/9001/runtime/vm/intermediate_language_ia32.cc File runtime/vm/intermediate_language_ia32.cc (right): https://codereview.chromium.org/19695007/diff/9001/runtime/vm/intermediate_language_ia32.cc#newcode3718 runtime/vm/intermediate_language_ia32.cc:3718: __ j(LESS_EQUAL, &done, Assembler::kNearJump); On 2013/07/23 20:53:27, sra1 wrote: ...
7 years, 5 months ago (2013-07-23 21:22:21 UTC) #7
Vyacheslav Egorov (Google)
7 years, 5 months ago (2013-07-24 09:33:41 UTC) #8
Message was sent while issue was closed.
drive by:

I wonder this new instruction can be merged with IfThenElseInstr to keep the
size of the IR down?

Powered by Google App Engine
This is Rietveld 408576698