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

Issue 2260153002: [turbofan] Induction variable decrement bound analysis. (Closed)

Created:
4 years, 4 months ago by Franzi
Modified:
4 years, 4 months ago
Reviewers:
Jarin
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@DeleteUnusedVar
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[turbofan] Induction variable bound analysis for decrements. This detects loops with integer decrements. Drive-by fix: Add lower bounds to lower_bounds zone vector instead of upper_bounds. BUG= Committed: https://crrev.com/6e665b094e7cbb6187fb59e3eb135266fa4c2e96 Cr-Commit-Position: refs/heads/master@{#38772}

Patch Set 1 #

Patch Set 2 : Rename constants. #

Patch Set 3 : Set lower bounds correctly. #

Patch Set 4 : Rename function. #

Total comments: 4

Patch Set 5 : Simplify bound calculation. #

Patch Set 6 : Add tests. #

Patch Set 7 : Rename testfile. #

Patch Set 8 : Rename variable. #

Patch Set 9 : Add test for non-constant bound. #

Total comments: 10

Patch Set 10 : Simplify if-else loop #

Unified diffs Side-by-side diffs Delta from patch set Stats (+144 lines, -12 lines) Patch
M src/compiler/loop-variable-optimizer.h View 1 2 3 3 chunks +7 lines, -2 lines 0 comments Download
M src/compiler/loop-variable-optimizer.cc View 1 2 3 chunks +10 lines, -4 lines 0 comments Download
M src/compiler/typer.cc View 1 2 3 4 5 6 7 8 9 4 chunks +25 lines, -6 lines 0 comments Download
A test/mjsunit/induction-variable-turbofan.js View 1 2 3 4 5 6 7 8 9 1 chunk +102 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 40 (31 generated)
Franzi
Hi, I tried the induction variable bound analysis for subtraction. Can you have a look ...
4 years, 4 months ago (2016-08-19 11:37:09 UTC) #15
Jarin
https://codereview.chromium.org/2260153002/diff/60001/src/compiler/loop-variable-optimizer.cc File src/compiler/loop-variable-optimizer.cc (right): https://codereview.chromium.org/2260153002/diff/60001/src/compiler/loop-variable-optimizer.cc#newcode191 src/compiler/loop-variable-optimizer.cc:191: var->second->AddLowerBound(constraint->left(), constraint->kind()); Awesome, thanks for the fix! After a ...
4 years, 4 months ago (2016-08-19 13:08:25 UTC) #18
Franzi
Thanks for the feedback. I added some test cases. Did I miss any loop variation ...
4 years, 4 months ago (2016-08-19 18:38:51 UTC) #23
Jarin
lgtm once the comments are addressed. https://codereview.chromium.org/2260153002/diff/160001/src/compiler/typer.cc File src/compiler/typer.cc (right): https://codereview.chromium.org/2260153002/diff/160001/src/compiler/typer.cc#newcode673 src/compiler/typer.cc:673: arithmetic_type == InductionVariable::ArithmeticType::kSubtraction)) ...
4 years, 4 months ago (2016-08-22 07:27:20 UTC) #28
Franzi
https://codereview.chromium.org/2260153002/diff/160001/src/compiler/typer.cc File src/compiler/typer.cc (right): https://codereview.chromium.org/2260153002/diff/160001/src/compiler/typer.cc#newcode673 src/compiler/typer.cc:673: arithmetic_type == InductionVariable::ArithmeticType::kSubtraction)) { On 2016/08/22 07:27:20, Jarin wrote: ...
4 years, 4 months ago (2016-08-22 09:06:30 UTC) #31
Jarin
Very nice! lgtm.
4 years, 4 months ago (2016-08-22 09:12:25 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2260153002/180001
4 years, 4 months ago (2016-08-22 09:19:46 UTC) #36
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 4 months ago (2016-08-22 09:21:26 UTC) #38
commit-bot: I haz the power
4 years, 4 months ago (2016-08-22 09:21:57 UTC) #40
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/6e665b094e7cbb6187fb59e3eb135266fa4c2e96
Cr-Commit-Position: refs/heads/master@{#38772}

Powered by Google App Engine
This is Rietveld 408576698