9b16b3409b
For example turn 'i = i + 1' into '++i' and 'i = i / 0.2' into
'i /= 0.2'.
Additionally, only move equivalent instructions to a dominator block
if there is more than one successor. There is no reason to move if
there is only one in any case. This has the added benefit that the
update part of a simple for-loop stays in the update part in the
generated code.
Before:
for (var i = 0; i < 10; ) {
i = i + 1;
}
Now:
for (var i = 0; i < 10; ++i) {
}
This code is a bit hackish. Please let me know if you have suggestions
for better structure of the cod.
R=ngeoffray@google.com,kasperl@google.com
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//10520003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8250 260f80e4-7a28-3924-810f-c04153c831b5