[jit] Enable alias analysis dce even if there are no ldaddr instructions eliminated...
authorZoltan Varga <vargaz@gmail.com>
Sun, 18 Aug 2019 05:55:25 +0000 (01:55 -0400)
committerZoltan Varga <vargaz@gmail.com>
Sun, 18 Aug 2019 05:55:25 +0000 (01:55 -0400)
Commit migrated from https://github.com/mono/mono/commit/3c6e8de0daadeddcbf9a6e8f8a1c12854f2dd54e

src/mono/mono/mini/alias-analysis.c

index 9ebbaaa..4f096ed 100644 (file)
@@ -303,6 +303,12 @@ handle_instruction:
                }
        }
        g_hash_table_destroy (addr_loads);
+
+#ifdef ENABLE_NETCORE
+       /* There could be ldaddr instructions which already got eliminated */
+       if (COMPILE_LLVM (cfg))
+               return TRUE;
+#endif
        return needs_dce;
 }