Set an input requirement for be_Spill, be_Reload frame input
authorMatthias Braun <matze@braunis.de>
Thu, 27 Sep 2012 17:11:49 +0000 (19:11 +0200)
committerMatthias Braun <matze@braunis.de>
Mon, 29 Oct 2012 16:48:55 +0000 (17:48 +0100)
(It was set to NULL in the past to support the STA-architecture, but
 that backend is not maintained anymore)

ir/be/benode.c

index 48386ca..6139c34 100644 (file)
@@ -265,14 +265,6 @@ ir_node *be_new_Spill(const arch_register_class_t *cls,
 
        be_node_set_reg_class_in(res, n_be_Spill_frame, cls_frame);
        be_node_set_reg_class_in(res, n_be_Spill_val, cls);
-       /*
-        * For spills and reloads, we return "none" as requirement for frame
-        * pointer, so every input is ok. Some backends need this (STA).
-        * Matze: we should investigate if this is really needed, this solution
-        *        looks very hacky to me
-        */
-       be_set_constr_in(res, n_be_Spill_frame, arch_no_register_req);
-
        arch_set_irn_register_req_out(res, 0, arch_no_register_req);
 
        return res;
@@ -302,14 +294,6 @@ ir_node *be_new_Reload(const arch_register_class_t *cls,
        a->offset = 0;
        a->base.exc.pin_state = op_pin_state_pinned;
 
-       /*
-        * For spills and reloads, we return "none" as requirement for frame
-        * pointer, so every input is ok. Some backends need this (e.g. STA).
-        * Matze: we should investigate if this is really needed, this solution
-        *        looks very hacky to me
-        */
-       be_set_constr_in(res, n_be_Reload_frame, arch_no_register_req);
-
        return res;
 }