| Index: runtime/vm/flow_graph_optimizer.cc
|
| ===================================================================
|
| --- runtime/vm/flow_graph_optimizer.cc (revision 13776)
|
| +++ runtime/vm/flow_graph_optimizer.cc (working copy)
|
| @@ -2335,7 +2335,11 @@
|
| break;
|
| }
|
| }
|
| - if (inputs_loop_invariant) {
|
| + if (inputs_loop_invariant &&
|
| + !current->IsAssertAssignable() &&
|
| + !current->IsAssertBoolean()) {
|
| + // TODO(fschneider): Enable hoisting of Assert-instructions
|
| + // if it safe to do.
|
| Hoist(&it, pre_header, current);
|
| } else if (current->IsCheckSmi() &&
|
| current->InputAt(0)->definition()->IsPhi()) {
|
|
|