Minor cleanup.
authorDavid Given <dg@cowlark.com>
Sat, 8 Oct 2016 09:07:28 +0000 (11:07 +0200)
committerDavid Given <dg@cowlark.com>
Sat, 8 Oct 2016 09:07:28 +0000 (11:07 +0200)
mach/proto/mcg/hop.c
mach/proto/mcg/pass_instructionselection.c
mach/proto/mcg/pass_promotefloatops.c

index d175147..652b9f6 100644 (file)
@@ -103,7 +103,7 @@ void hop_print(char k, struct hop* hop)
 
                                        case IR_LOCAL:
                                        case IR_CONST:
-                                               tracef(k, "0x%d", ir->u.ivalue);
+                                               tracef(k, "%d", ir->u.ivalue);
                                                break;
                                }
                                break;
index 029cacd..4e3edd4 100644 (file)
@@ -243,6 +243,7 @@ static void select_instructions(void)
         }
         else
         {
+            ir_print('I', current_ir);
             shadow = build_shadow_tree(current_ir, current_ir);
             burm_label(shadow);
 
@@ -250,7 +251,6 @@ static void select_instructions(void)
             if (!insnno)
                 burm_panic_cannot_match(shadow);
 
-            ir_print('I', current_ir);
             walk_instructions(shadow, 1);
         }
        }
index 478143b..7b1d769 100644 (file)
@@ -97,4 +97,3 @@ void pass_promote_float_ops(struct procedure* proc)
 }
 
 /* vim: set sw=4 ts=4 expandtab : */
-