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

Issue 2309733002: [turbofan] Improve graph for JumpIfTrue/False and JumpIfToBooleanTrue/False. (Closed)

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

Description

[turbofan] Improve graph for JumpIfTrue/False and JumpIfToBooleanTrue/False. Avoid the useless strict equality comparisons with true/false being generated for the JumpIfTrue, JumpIfFalse, JumpIfToBooleanTrue and JumpIfToBooleanFalse bytecodes. Instead feed the accumulator (or the outcome of ToBoolean) directly to the Branch node and do the negation as part of the control flow. The previous subraphs would render the loop variable analysis useless, and would cause a lot of unnecessary bit materialization, because many of our optimizations don't kick in. Note: This is only part of the problem, there are more subtle differences in the bytecode pipeline that prevent several important optimizations to kick in. R=mstarzinger@chromium.org BUG=v8:5267, v8:5348 Committed: https://crrev.com/776a5c100873cd59f32565ba8482417c8b749e7a Cr-Commit-Position: refs/heads/master@{#39151}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -31 lines) Patch
M src/compiler/bytecode-graph-builder.h View 1 chunk +6 lines, -2 lines 0 comments Download
M src/compiler/bytecode-graph-builder.cc View 4 chunks +35 lines, -29 lines 0 comments Download

Messages

Total messages: 14 (7 generated)
Benedikt Meurer
4 years, 3 months ago (2016-09-05 06:34:41 UTC) #1
Benedikt Meurer
Hey Michi, Here's a simple refactoring for the BytecodeGraphBuilder that reduces the unnecessary junk in ...
4 years, 3 months ago (2016-09-05 06:35:43 UTC) #4
epertoso
lgtm
4 years, 3 months ago (2016-09-05 08:40:33 UTC) #8
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/2309733002/1
4 years, 3 months ago (2016-09-05 08:41:02 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 3 months ago (2016-09-05 08:43:20 UTC) #11
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/776a5c100873cd59f32565ba8482417c8b749e7a Cr-Commit-Position: refs/heads/master@{#39151}
4 years, 3 months ago (2016-09-05 08:43:47 UTC) #13
Michael Starzinger
4 years, 3 months ago (2016-09-05 12:42:51 UTC) #14
Message was sent while issue was closed.
LGTM.

Powered by Google App Engine
This is Rietveld 408576698