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

Issue 1074009: Mark all loop conditions. (Closed)

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

Description

Mark all loop conditions. Previously we marked compare operations that occurred as for loop conditions so as to avoid inlining the floating-point code for them. Begin marking all expressions that occur as any loop condition (because they are never dead code). Committed: http://code.google.com/p/v8/source/detail?r=4227

Patch Set 1 #

Patch Set 2 : Created a derived work. #

Patch Set 3 : Negate test to match previous (and correct) behavior. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -27 lines) Patch
M src/ast.h View 5 chunks +11 lines, -6 lines 0 comments Download
M src/ast.cc View 1 2 chunks +2 lines, -3 lines 0 comments Download
M src/data-flow.cc View 1 chunk +2 lines, -1 line 2 comments Download
M src/ia32/codegen-ia32.cc View 1 2 2 chunks +9 lines, -10 lines 1 comment Download
M src/parser.cc View 1 4 chunks +4 lines, -4 lines 0 comments Download
M src/x64/codegen-x64.cc View 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Kevin Millikin (Chromium)
10 years, 9 months ago (2010-03-23 13:04:46 UTC) #1
fschneider
LGTM. http://codereview.chromium.org/1074009/diff/4001/5004 File src/ia32/codegen-ia32.cc (right): http://codereview.chromium.org/1074009/diff/4001/5004#newcode2475 src/ia32/codegen-ia32.cc:2475: bool is_loop_condition = (node->AsExpression() != NULL) && I ...
10 years, 9 months ago (2010-03-23 13:19:38 UTC) #2
Søren Thygesen Gjesse
LGTM http://codereview.chromium.org/1074009/diff/4001/5003 File src/data-flow.cc (right): http://codereview.chromium.org/1074009/diff/4001/5003#newcode223 src/data-flow.cc:223: cond_copy->set_is_loop_condition(false); Strictly speaking this is a lie, and ...
10 years, 9 months ago (2010-03-23 13:21:02 UTC) #3
Kevin Millikin (Chromium)
10 years, 9 months ago (2010-03-23 13:36:26 UTC) #4
http://codereview.chromium.org/1074009/diff/4001/5003
File src/data-flow.cc (right):

http://codereview.chromium.org/1074009/diff/4001/5003#newcode223
src/data-flow.cc:223: cond_copy->set_is_loop_condition(false);
On 2010/03/23 13:21:02, Søren Gjesse wrote:
> Strictly speaking this is a lie, and it will cause the number compare code to
be
> inlined (if already in a loop), which I am not sure we want. Should we keep
this
> as a loop condition?

I guess not.  I've removed it for now.

Powered by Google App Engine
This is Rietveld 408576698