Correct three bugs in bemit_incsp(): Offset 0 must emit no code, get_signed_imm_size...
[libfirm] / ir / be / bestat.c
index 155ed40..69e89b6 100644 (file)
 #include "statev.h"
 #include "error.h"
 
-#include "bearch_t.h"
-#include "beirg_t.h"
+#include "bearch.h"
+#include "beirg.h"
 #include "bestat.h"
 #include "belive_t.h"
 #include "besched.h"
-#include "benode_t.h"
+#include "benode.h"
 
 
 
@@ -166,7 +166,7 @@ static void node_stat_walker(ir_node *irn, void *data)
                } else {
                        (*stats)[BE_STAT_PHIS]++;
                }
-       } else {
+       } else if (!is_Proj(irn)) {
                arch_irn_class_t classify = arch_irn_classify(irn);
 
                if(classify & arch_irn_class_spill)
@@ -235,7 +235,7 @@ static void insn_count_walker(ir_node *irn, void *data)
        switch(get_irn_opcode(irn)) {
        case iro_Proj:
        case iro_Phi:
-       case iro_Start:
+       case beo_Start:
        case iro_End:
                break;
        default: