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

Issue 11175013: Add range to kBIT_AND with positive constants. Use that range to eliminate compares in left shifts. (Closed)

Created:
8 years, 2 months ago by srdjan
Modified:
8 years, 1 month ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Add range to kBIT_AND with positive constants. Use that range to eliminate compares in left shifts. Committed: https://code.google.com/p/dart/source/detail?r=14304

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -7 lines) Patch
M runtime/vm/intermediate_language.h View 1 2 2 chunks +5 lines, -2 lines 0 comments Download
M runtime/vm/intermediate_language.cc View 1 2 3 2 chunks +25 lines, -0 lines 0 comments Download
M runtime/vm/intermediate_language_ia32.cc View 1 2 1 chunk +7 lines, -2 lines 0 comments Download
M runtime/vm/intermediate_language_x64.cc View 1 2 1 chunk +8 lines, -3 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
srdjan
8 years, 2 months ago (2012-10-19 19:39:46 UTC) #1
Vyacheslav Egorov (Google)
https://codereview.chromium.org/11175013/diff/1/runtime/vm/intermediate_language.cc File runtime/vm/intermediate_language.cc (right): https://codereview.chromium.org/11175013/diff/1/runtime/vm/intermediate_language.cc#newcode2201 runtime/vm/intermediate_language.cc:2201: if (range_ == NULL) { I sense a problem ...
8 years, 2 months ago (2012-10-19 20:05:28 UTC) #2
srdjan
Please have another look.
8 years, 1 month ago (2012-10-25 21:44:05 UTC) #3
Vyacheslav Egorov (Google)
lgtm https://codereview.chromium.org/11175013/diff/8001/runtime/vm/intermediate_language.cc File runtime/vm/intermediate_language.cc (right): https://codereview.chromium.org/11175013/diff/8001/runtime/vm/intermediate_language.cc#newcode2243 runtime/vm/intermediate_language.cc:2243: if (!min().IsConstant() || (min().value() < min_int)) return false; ...
8 years, 1 month ago (2012-10-26 12:21:42 UTC) #4
srdjan
8 years, 1 month ago (2012-10-30 18:21:13 UTC) #5
Better late than never.

https://codereview.chromium.org/11175013/diff/8001/runtime/vm/intermediate_la...
File runtime/vm/intermediate_language.cc (right):

https://codereview.chromium.org/11175013/diff/8001/runtime/vm/intermediate_la...
runtime/vm/intermediate_language.cc:2243: if (!min().IsConstant() ||
(min().value() < min_int)) return false;
On 2012/10/26 12:21:42, Vyacheslav Egorov (Google) wrote:
> I suggest using LowerBound() and UpperBound() here instead of limiting
function
> to constant boundaries.

Done.

Powered by Google App Engine
This is Rietveld 408576698