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

Issue 800433003: First version of typr propagation in the new IR. (Closed)

Created:
6 years ago by karlklose
Modified:
6 years ago
CC:
reviews_dartlang.org
Target Ref:
refs/remotes/git-svn
Visibility:
Public.

Description

First version of type propagation in the new IR. This CL introduces typed constants and values to the IR. As a demonstration, the types are used to eagerly statically evaluate identical(a, b) to false, if a and b have different types. R=kmillikin@google.com Committed: https://code.google.com/p/dart/source/detail?r=42315

Patch Set 1 #

Patch Set 2 : Add type arguments, fix join and tests. #

Total comments: 6

Patch Set 3 : Address comments. #

Patch Set 4 : Rename constant_propagation.dart to type_propagation.dart. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+324 lines, -819 lines) Patch
M pkg/compiler/lib/src/cps_ir/constant_propagation.dart View 1 2 3 1 chunk +0 lines, -705 lines 0 comments Download
M pkg/compiler/lib/src/cps_ir/cps_ir_nodes_sexpr.dart View 2 chunks +10 lines, -4 lines 0 comments Download
M pkg/compiler/lib/src/cps_ir/optimizers.dart View 1 2 3 1 chunk +5 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/cps_ir/shrinking_reductions.dart View 1 chunk +1 line, -1 line 0 comments Download
A + pkg/compiler/lib/src/cps_ir/type_propagation.dart View 1 2 3 24 chunks +242 lines, -100 lines 0 comments Download
M pkg/compiler/lib/src/dart_backend/backend.dart View 1 1 chunk +2 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/js_backend/codegen/glue.dart View 1 chunk +1 line, -0 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/codegen/task.dart View 1 5 chunks +22 lines, -2 lines 0 comments Download
M tests/compiler/dart2js/backend_dart/opt_constprop_test.dart View 1 2 2 chunks +24 lines, -2 lines 0 comments Download
M tests/compiler/dart2js/js_backend_cps_ir_control_flow.dart View 1 chunk +16 lines, -2 lines 0 comments Download
M tests/compiler/dart2js/js_backend_cps_ir_operators.dart View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 5 (1 generated)
karlklose
6 years ago (2014-12-12 09:59:43 UTC) #2
Kevin Millikin (Google)
LGTM with || replaced by && as noted below. https://codereview.chromium.org/800433003/diff/20001/pkg/compiler/lib/src/cps_ir/constant_propagation.dart File pkg/compiler/lib/src/cps_ir/constant_propagation.dart (right): https://codereview.chromium.org/800433003/diff/20001/pkg/compiler/lib/src/cps_ir/constant_propagation.dart#newcode60 pkg/compiler/lib/src/cps_ir/constant_propagation.dart:60: ...
6 years ago (2014-12-12 11:00:23 UTC) #3
karlklose
Thank you, Kevin. Comments addressed in patch set 3, renamed the file in patch set ...
6 years ago (2014-12-12 11:43:48 UTC) #4
karlklose
6 years ago (2014-12-12 12:14:27 UTC) #5
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as 42315 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698