Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions mono/mini/mini-llvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -7113,19 +7113,6 @@ emit_method_inner (EmitContext *ctx)
}
}

/*
* The INDIRECT flag added by OP_LDADDR inhibits optimizations, even if the LDADDR
* was later optimized away, so clear these flags, and add them back for the still
* present OP_LDADDR instructions.
*/
for (i = 0; i < cfg->next_vreg; ++i) {
MonoInst *ins;

ins = get_vreg_to_inst (cfg, i);
if (ins && ins != cfg->rgctx_var)
ins->flags &= ~MONO_INST_INDIRECT;
}

/*
* Make a first pass over the code to precreate PHI nodes/set INDIRECT flags.
*/
Expand Down
5 changes: 4 additions & 1 deletion mono/mini/mini.c
Original file line number Diff line number Diff line change
Expand Up @@ -2077,8 +2077,11 @@ mono_compile_create_vars (MonoCompile *cfg)
if (cfg->verbose_level > 2)
g_print ("creating locals\n");

for (i = 0; i < header->num_locals; ++i)
for (i = 0; i < header->num_locals; ++i) {
if (cfg->verbose_level > 2)
g_print ("\tlocal [%d]: ", i);
cfg->locals [i] = mono_compile_create_var (cfg, header->locals [i], OP_LOCAL);
}

if (cfg->verbose_level > 2)
g_print ("locals done\n");
Expand Down