projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- Spillslot coalescing now collects all nodes that have class spill/reload
[libfirm]
/
ir
/
be
/
mips
/
mips_new_nodes.c
diff --git
a/ir/be/mips/mips_new_nodes.c
b/ir/be/mips/mips_new_nodes.c
index
7a8ceec
..
fccfa47
100644
(file)
--- a/
ir/be/mips/mips_new_nodes.c
+++ b/
ir/be/mips/mips_new_nodes.c
@@
-128,7
+128,7
@@
static void dump_reg_req(FILE *F, ir_node *n, const mips_register_req_t **reqs,
* @param reason indicates which kind of information should be dumped
* @return 0 on success or != 0 on failure
*/
* @param reason indicates which kind of information should be dumped
* @return 0 on success or != 0 on failure
*/
-static int
dump_node_mips
(ir_node *n, FILE *F, dump_reason_t reason) {
+static int
mips_dump_node
(ir_node *n, FILE *F, dump_reason_t reason) {
ir_mode *mode = NULL;
int bad = 0;
int i;
ir_mode *mode = NULL;
int bad = 0;
int i;
@@
-395,12
+395,9
@@
void init_mips_attributes(ir_node *node, arch_irn_flags_t flags, const mips_regi
attr->out_req = out_reqs;
attr->n_res = n_res;
attr->out_req = out_reqs;
attr->n_res = n_res;
- if(n_res) {
- attr->slots = xcalloc(n_res, sizeof(attr->slots[0]));
- } else {
- attr->slots = NULL;
- }
attr->in_req = in_reqs;
attr->in_req = in_reqs;
+
+ memset((void *)attr->slots, 0, n_res * sizeof(attr->slots[0]));
}
/************************************************************************
}
/************************************************************************
@@
-492,9
+489,5
@@
void mips_init_opcode_transforms(void) {
*
***************************************************************************************/
*
***************************************************************************************/
-static void mips_register_additional_opcodes(int n) {
- /* we don't need any additional opcodes */
-}
-
/* Include the generated constructor functions */
#include "gen_mips_new_nodes.c.inl"
/* Include the generated constructor functions */
#include "gen_mips_new_nodes.c.inl"