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

Issue 10342002: Make sure that we don't assign phis before its uses. (Closed)

Created:
8 years, 7 months ago by floitsch
Modified:
8 years, 7 months ago
CC:
reviews_dartlang.org, ngeoffray
Visibility:
Public.

Description

Make sure that we don't assign phis before its uses. Committed: https://code.google.com/p/dart/source/detail?r=7276

Patch Set 1 #

Patch Set 2 : Don't introduce temp for updates to self. #

Total comments: 31

Patch Set 3 : Address comments. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+235 lines, -40 lines) Patch
M lib/compiler/implementation/ssa/codegen.dart View 1 2 2 chunks +146 lines, -40 lines 2 comments Download
A tests/language/loop_exchange2_test.dart View 1 chunk +44 lines, -0 lines 0 comments Download
A tests/language/loop_exchange3_test.dart View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
A tests/language/loop_exchange4_test.dart View 1 2 1 chunk +16 lines, -0 lines 0 comments Download
A tests/language/loop_exchange_test.dart View 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
floitsch
8 years, 7 months ago (2012-05-02 17:54:58 UTC) #1
ngeoffray
Initial comments on the tests. https://chromiumcodereview.appspot.com/10342002/diff/3001/tests/language/loop_exchange2_test.dart File tests/language/loop_exchange2_test.dart (right): https://chromiumcodereview.appspot.com/10342002/diff/3001/tests/language/loop_exchange2_test.dart#newcode5 tests/language/loop_exchange2_test.dart:5: // This program tripped ...
8 years, 7 months ago (2012-05-03 07:29:14 UTC) #2
Lasse Reichstein Nielsen
What ngeoffray said! LGTM. https://chromiumcodereview.appspot.com/10342002/diff/3001/lib/compiler/implementation/ssa/codegen.dart File lib/compiler/implementation/ssa/codegen.dart (right): https://chromiumcodereview.appspot.com/10342002/diff/3001/lib/compiler/implementation/ssa/codegen.dart#newcode923 lib/compiler/implementation/ssa/codegen.dart:923: Please add dart-doc describing what ...
8 years, 7 months ago (2012-05-03 08:22:02 UTC) #3
floitsch
PTAL. https://chromiumcodereview.appspot.com/10342002/diff/3001/lib/compiler/implementation/ssa/codegen.dart File lib/compiler/implementation/ssa/codegen.dart (right): https://chromiumcodereview.appspot.com/10342002/diff/3001/lib/compiler/implementation/ssa/codegen.dart#newcode923 lib/compiler/implementation/ssa/codegen.dart:923: On 2012/05/03 08:22:02, Lasse Reichstein Nielsen wrote: > ...
8 years, 7 months ago (2012-05-03 09:11:29 UTC) #4
Lasse Reichstein Nielsen
LGTM https://chromiumcodereview.appspot.com/10342002/diff/11002/lib/compiler/implementation/ssa/codegen.dart File lib/compiler/implementation/ssa/codegen.dart (right): https://chromiumcodereview.appspot.com/10342002/diff/11002/lib/compiler/implementation/ssa/codegen.dart#newcode934 lib/compiler/implementation/ssa/codegen.dart:934: * then the [canonicalPhi] is assigned with the ...
8 years, 7 months ago (2012-05-03 12:19:49 UTC) #5
floitsch
8 years, 7 months ago (2012-05-03 12:27:23 UTC) #6
https://chromiumcodereview.appspot.com/10342002/diff/11002/lib/compiler/imple...
File lib/compiler/implementation/ssa/codegen.dart (right):

https://chromiumcodereview.appspot.com/10342002/diff/11002/lib/compiler/imple...
lib/compiler/implementation/ssa/codegen.dart:934: * then the [canonicalPhi] is
assigned with the temporary.
On 2012/05/03 12:19:49, Lasse Reichstein Nielsen wrote:
> Still a slightly odd "modal" function. Acceptable, but odd. Does it have to be
> one function?

It could be split, but there is quite some boiler-plate code... (like is it an
expression, a logical operation, ...)
If you see a nice way to split it, tell me and I will change it in another CL.

Powered by Google App Engine
This is Rietveld 408576698