[jit] Make ABCREM really remove bounds checks, not just when running with -v -v ...
authorZoltan Varga <vargaz@gmail.com>
Fri, 8 Nov 2013 17:27:01 +0000 (18:27 +0100)
committerZoltan Varga <vargaz@gmail.com>
Fri, 8 Nov 2013 17:27:01 +0000 (18:27 +0100)
mono/mini/abcremoval.c

index 8a9349d293d1467718f93e1796c44f2b8c005307..843f7c3b77d1943bdaae9e9a4eb8caf4e553aae3 100644 (file)
@@ -989,8 +989,8 @@ remove_abc_from_inst (MonoInst *ins, MonoVariableRelationsEvaluationArea *area)
                if (REPORT_ABC_REMOVAL) {
                        printf ("ARRAY-ACCESS: removed bounds check on array %d with index %d\n",
                                        array_variable, index_variable);
-                       NULLIFY_INS (ins);
                }
+               NULLIFY_INS (ins);
        } else {
                if (TRACE_ABC_REMOVAL) {
                        if (index_context->ranges.zero.lower >= 0) {