Index: runtime/vm/flow_graph_optimizer.cc |
diff --git a/runtime/vm/flow_graph_optimizer.cc b/runtime/vm/flow_graph_optimizer.cc |
index 83d9383aff76e578dc31ee833687d92bd5d06576..e498dd8b15d807d9e5a1790aea1b8d7126491f02 100644 |
--- a/runtime/vm/flow_graph_optimizer.cc |
+++ b/runtime/vm/flow_graph_optimizer.cc |
@@ -48,7 +48,7 @@ DECLARE_FLAG(bool, trace_type_check_elimination); |
static bool ShouldInlineSimd() { |
- return FlowGraphCompiler::SupportsUnboxedFloat32x4(); |
+ return FlowGraphCompiler::SupportsUnboxedSimd128(); |
} |
@@ -1960,6 +1960,8 @@ bool FlowGraphOptimizer::TryReplaceWithBinaryOp(InstanceCallInstr* call, |
operands_type = kDoubleCid; |
} else if (HasOnlyTwoOf(ic_data, kFloat32x4Cid)) { |
operands_type = kFloat32x4Cid; |
+ } else if (HasOnlyTwoOf(ic_data, kFloat64x2Cid)) { |
+ operands_type = kFloat64x2Cid; |
} else { |
return false; |
} |
@@ -1970,6 +1972,8 @@ bool FlowGraphOptimizer::TryReplaceWithBinaryOp(InstanceCallInstr* call, |
operands_type = kDoubleCid; |
} else if (HasOnlyTwoOf(ic_data, kFloat32x4Cid)) { |
operands_type = kFloat32x4Cid; |
+ } else if (HasOnlyTwoOf(ic_data, kFloat64x2Cid)) { |
+ operands_type = kFloat64x2Cid; |
} else { |
return false; |
} |