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

Issue 10559072: Fuse Comparison->BooleanNegate->Branch. (Closed)

Created:
8 years, 6 months ago by srdjan
Modified:
8 years, 6 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Fuse Comparison->BooleanNegate->Branch. Committed: https://code.google.com/p/dart/source/detail?r=8914

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Total comments: 2

Patch Set 8 : #

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -13 lines) Patch
M runtime/vm/flow_graph_optimizer.cc View 1 2 3 4 5 6 7 3 chunks +20 lines, -7 lines 0 comments Download
M runtime/vm/il_printer.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M runtime/vm/intermediate_language.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -1 line 0 comments Download
M runtime/vm/intermediate_language.cc View 1 2 3 4 5 6 7 3 chunks +6 lines, -3 lines 0 comments Download
M runtime/vm/intermediate_language_ia32.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -1 line 0 comments Download
M runtime/vm/intermediate_language_x64.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
srdjan
8 years, 6 months ago (2012-06-20 01:25:17 UTC) #1
Florian Schneider
I think this kind of optimization should be really done in the flow graph builder ...
8 years, 6 months ago (2012-06-20 10:55:17 UTC) #2
Vyacheslav Egorov (Google)
lgtm as a temporary solution. we can potentially fuse it in the graph builder. https://chromiumcodereview.appspot.com/10559072/diff/2004/runtime/vm/flow_graph_optimizer.cc ...
8 years, 6 months ago (2012-06-20 12:17:40 UTC) #3
srdjan
https://chromiumcodereview.appspot.com/10559072/diff/2004/runtime/vm/flow_graph_optimizer.cc File runtime/vm/flow_graph_optimizer.cc (left): https://chromiumcodereview.appspot.com/10559072/diff/2004/runtime/vm/flow_graph_optimizer.cc#oldcode518 runtime/vm/flow_graph_optimizer.cc:518: TryFuseComparisonWithBranch(comp); On 2012/06/20 12:17:40, Vyacheslav Egorov (Google) wrote: > ...
8 years, 6 months ago (2012-06-20 16:16:07 UTC) #4
srdjan
8 years, 6 months ago (2012-06-20 16:16:56 UTC) #5
On 2012/06/20 10:55:17, Florian Schneider wrote:
> I think this kind of optimization should be really done in the flow graph
> builder where we can immediately generate a CompareAndBranch instruction.

You may have a point, and we should discuss this soon.

Powered by Google App Engine
This is Rietveld 408576698