[profiler] Add a missing method_tail_call event when the tailc optimization is enabled.
authorAlex Rønne Petersen <alpeters@microsoft.com>
Thu, 24 Aug 2017 15:08:20 +0000 (17:08 +0200)
committerAlex Rønne Petersen <alpeters@microsoft.com>
Thu, 24 Aug 2017 15:08:20 +0000 (17:08 +0200)
mono/mini/method-to-ir.c

index 07585ad2f82dcdddc969c2cd41242f620400b387..31c5513743eb140e004b0bf81e774d26d3798676 100644 (file)
@@ -8751,6 +8751,9 @@ mono_method_to_ir (MonoCompile *cfg, MonoMethod *method, MonoBasicBlock *start_b
                                        }
                                        for (i = 0; i < n; ++i)
                                                EMIT_NEW_ARGSTORE (cfg, ins, i, sp [i]);
+
+                                       mini_profiler_emit_tail_call (cfg, cmethod);
+
                                        MONO_INST_NEW (cfg, ins, OP_BR);
                                        MONO_ADD_INS (cfg->cbb, ins);
                                        tblock = start_bblock->out_bb [0];