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

Issue 2666283002: [turbofan] Constant propagation for JumpIfFalse/JumpIfTrue. (Closed)

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

Description

[turbofan] Constant propagation for JumpIfFalse/JumpIfTrue. The JumpIfFalse and JumpIfTrue bytecodes test the accumulator, and branch based on whether the accumulator is true or false (no other value allowed, and in fact TurboFan would blow up if you would pass anything else, since Branch operator can only deal with Boolean). So for either branch we know exactly the value of the accumulator, and we can update the environment to this constant value instead. This helps to avoid the useless bit materialization that currently happens when || or && is being used in a value context. CQ_INCLUDE_TRYBOTS=master.tryserver.v8:v8_win64_dbg R=jarin@chromium.org BUG=v8:5267 Review-Url: https://codereview.chromium.org/2666283002 Cr-Original-Commit-Position: refs/heads/master@{#42843} Committed: https://chromium.googlesource.com/v8/v8/+/158ac9287193f315342ad31c38fe451620d176eb Review-Url: https://codereview.chromium.org/2666283002 Cr-Commit-Position: refs/heads/master@{#42934} Committed: https://chromium.googlesource.com/v8/v8/+/51ed12f96e5700b7ca5a89729574c719835a46d7

Patch Set 1 #

Patch Set 2 : Add CHECK to verifier. #

Patch Set 3 : Also add a DCHECK to SimplifiedLowering. #

Patch Set 4 : Also add proper guards to Ignition. #

Patch Set 5 : REBASE #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -6 lines) Patch
M src/code-stub-assembler.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M src/code-stub-assembler.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M src/compiler/bytecode-graph-builder.cc View 1 2 3 4 1 chunk +16 lines, -2 lines 0 comments Download
M src/interpreter/interpreter.cc View 1 2 3 4 1 chunk +16 lines, -4 lines 0 comments Download

Messages

Total messages: 38 (27 generated)
Benedikt Meurer
3 years, 10 months ago (2017-02-01 06:37:52 UTC) #1
Jarin
You need to do some serious documentation on the invariants that you are cementing here. ...
3 years, 10 months ago (2017-02-01 08:10:11 UTC) #6
Benedikt Meurer
On 2017/02/01 08:10:11, Jarin wrote: > You need to do some serious documentation on the ...
3 years, 10 months ago (2017-02-01 08:25:45 UTC) #7
Jarin
Lovely! lgtm.
3 years, 10 months ago (2017-02-01 09:31:37 UTC) #16
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/2666283002/60001
3 years, 10 months ago (2017-02-01 09:43:13 UTC) #19
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/v8/v8/+/158ac9287193f315342ad31c38fe451620d176eb
3 years, 10 months ago (2017-02-01 09:51:46 UTC) #22
Benedikt Meurer
A revert of this CL (patchset #4 id:60001) has been created in https://codereview.chromium.org/2668933002/ by bmeurer@chromium.org. ...
3 years, 10 months ago (2017-02-01 10:35:56 UTC) #23
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/2666283002/80001
3 years, 10 months ago (2017-02-02 11:07:30 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: v8_win64_dbg on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_win64_dbg/builds/548)
3 years, 10 months ago (2017-02-02 12:07:02 UTC) #33
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/2666283002/80001
3 years, 10 months ago (2017-02-03 21:18:44 UTC) #35
commit-bot: I haz the power
3 years, 10 months ago (2017-02-03 21:54:28 UTC) #38
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/v8/v8/+/51ed12f96e5700b7ca5a89729574c719835...

Powered by Google App Engine
This is Rietveld 408576698