Test case for historical reasons
[libfirm] / ir / be / ia32 / bearch_ia32.c
index fdf9abf..7267b0c 100644 (file)
@@ -319,9 +319,15 @@ static arch_irn_class_t ia32_classify(const ir_node *irn) {
        if (is_ia32_St(irn))
                classification |= arch_irn_class_store;
 
-       if (is_ia32_need_stackent(irn))
+       if (is_ia32_is_reload(irn))
                classification |= arch_irn_class_reload;
 
+       if (is_ia32_is_spill(irn))
+               classification |= arch_irn_class_spill;
+
+       if (is_ia32_is_remat(irn))
+               classification |= arch_irn_class_remat;
+
        return classification;
 }
 
@@ -920,7 +926,7 @@ static ir_entity *mcount = NULL;
 static void ia32_before_abi(void *self) {
        lower_mode_b_config_t lower_mode_b_config = {
                mode_Iu,  /* lowered mode */
-               mode_Bu,  /* prefered mode for set */
+               mode_Bu,  /* preferred mode for set */
                0,        /* don't lower direct compares */
        };
        ia32_code_gen_t *cg = self;
@@ -972,13 +978,8 @@ static void ia32_prepare_graph(void *self) {
 #ifdef FIRM_GRGEN_BE
                case TRANSFORMER_PBQP:
                case TRANSFORMER_RAND:
-                       // disable CSE, because of two-step node-construction
-                       set_opt_cse(0);
-
                        /* transform nodes into assembler instructions by PBQP magic */
                        ia32_transform_graph_by_pbqp(cg);
-
-                       set_opt_cse(1);
                        break;
 #endif