| Index: runtime/vm/intermediate_language_arm64.cc
|
| ===================================================================
|
| --- runtime/vm/intermediate_language_arm64.cc (revision 37078)
|
| +++ runtime/vm/intermediate_language_arm64.cc (working copy)
|
| @@ -8,6 +8,7 @@
|
| #include "vm/intermediate_language.h"
|
|
|
| #include "vm/dart_entry.h"
|
| +#include "vm/flow_graph.h"
|
| #include "vm/flow_graph_compiler.h"
|
| #include "vm/locations.h"
|
| #include "vm/object_store.h"
|
| @@ -5149,7 +5150,9 @@
|
| void TargetEntryInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
|
| __ Bind(compiler->GetJumpLabel(this));
|
| if (!compiler->is_optimizing()) {
|
| - if (FLAG_emit_edge_counters) {
|
| + if (FLAG_emit_edge_counters &&
|
| + (!last_instruction()->IsGoto() ||
|
| + (this == compiler->flow_graph().graph_entry()->normal_entry()))) {
|
| compiler->EmitEdgeCounter();
|
| }
|
| // Add an edge counter.
|
|
|