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

Issue 2320803002: [turbofan] Ensure monotonicity for induction variable typing. (Closed)

Created:
4 years, 3 months ago by Jarin
Modified:
4 years, 3 months ago
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[turbofan] Ensure monotonicity for induction variable typing. The trouble here is that the type of the induction variable might be a bit ahead of the increment (JSAdd) operation's type. When we update the type of the increment, we might only update the induction variable type while the JSAdd type might be stale. If the induction variable typing needs to fall back to normal phi typing (e.g., when the increment is not an integer anymore), it might use the stale type. To get around this, we fake monotonicity if we fallback to normal phi typing. Another option would be to force re-typing of the increment operation, but that seems to be harder to maintain. BUG=chromium:644633 Committed: https://crrev.com/b4f8a7c9006fb99f17217027e56d8e8113193636 Cr-Commit-Position: refs/heads/master@{#39261}

Patch Set 1 #

Patch Set 2 : Actual fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -6 lines) Patch
M src/compiler/typer.cc View 1 1 chunk +8 lines, -3 lines 0 comments Download
A + test/mjsunit/compiler/regress-644633.js View 1 chunk +4 lines, -3 lines 0 comments Download

Messages

Total messages: 15 (10 generated)
Jarin
Could you take a look, please?
4 years, 3 months ago (2016-09-07 19:37:09 UTC) #6
Benedikt Meurer
LGTM, thanks.
4 years, 3 months ago (2016-09-08 03:48:58 UTC) #9
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/2320803002/20001
4 years, 3 months ago (2016-09-08 03:49:09 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-09-08 03:50:52 UTC) #13
commit-bot: I haz the power
4 years, 3 months ago (2016-09-08 03:51:19 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/b4f8a7c9006fb99f17217027e56d8e8113193636
Cr-Commit-Position: refs/heads/master@{#39261}

Powered by Google App Engine
This is Rietveld 408576698