projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Correct inaccurate comment: The only corner case of wrong CF in NEG+ADD as replacemen...
[libfirm]
/
ir
/
be
/
beabihelper.c
diff --git
a/ir/be/beabihelper.c
b/ir/be/beabihelper.c
index
faa6969
..
5b5fe69
100644
(file)
--- a/
ir/be/beabihelper.c
+++ b/
ir/be/beabihelper.c
@@
-165,9
+165,9
@@
static void rsm_clear_regs(register_state_mapping_t *rsm,
* Add a register and its constraint flags to a register state map
* and return its index inside the map.
*/
* Add a register and its constraint flags to a register state map
* and return its index inside the map.
*/
-static
in
t rsm_add_reg(register_state_mapping_t *rsm,
- const arch_register_t *reg,
- arch_register_req_type_t flags)
+static
size_
t rsm_add_reg(register_state_mapping_t *rsm,
+
const arch_register_t *reg,
+
arch_register_req_type_t flags)
{
size_t input_idx = ARR_LEN(rsm->regs);
int cls_idx = reg->reg_class->index;
{
size_t input_idx = ARR_LEN(rsm->regs);
int cls_idx = reg->reg_class->index;
@@
-324,7
+324,7
@@
void be_epilog_begin(beabi_helper_env_t *env)
void be_epilog_add_reg(beabi_helper_env_t *env, const arch_register_t *reg,
arch_register_req_type_t flags, ir_node *value)
{
void be_epilog_add_reg(beabi_helper_env_t *env, const arch_register_t *reg,
arch_register_req_type_t flags, ir_node *value)
{
-
in
t index = rsm_add_reg(&env->epilog, reg, flags);
+
size_
t index = rsm_add_reg(&env->epilog, reg, flags);
rsm_set_value(&env->epilog, index, value);
}
rsm_set_value(&env->epilog, index, value);
}
@@
-396,7
+396,6
@@
static bool has_real_user(const ir_node *node)
static ir_node *add_to_keep(ir_node *last_keep,
const arch_register_class_t *cls, ir_node *node)
{
static ir_node *add_to_keep(ir_node *last_keep,
const arch_register_class_t *cls, ir_node *node)
{
- const ir_node *op;
if (last_keep != NULL) {
be_Keep_add_node(last_keep, cls, node);
} else {
if (last_keep != NULL) {
be_Keep_add_node(last_keep, cls, node);
} else {
@@
-410,7
+409,6
@@
static ir_node *add_to_keep(ir_node *last_keep,
sched_add_after(schedpoint, last_keep);
}
}
sched_add_after(schedpoint, last_keep);
}
}
- op = skip_Proj_const(node);
return last_keep;
}
return last_keep;
}