ir_node *new_op;
/* in case of storing a const (but not a symconst) -> make it an attribute */
- if (is_ia32_Const(val) && get_ia32_op_type(val) == ia32_Const) {
+ if (is_ia32_Const(val)) {
sval = noreg;
}
}
/* stored const is an attribute (saves a register) */
- if (is_ia32_Const(val) && get_ia32_op_type(val) == ia32_Const) {
+ if (is_ia32_Const(val)) {
set_ia32_Immop_attr(new_op, val);
}
ir_node *nomem, *noreg, *base, *index, *op1, *op2;
char *offs;
ia32_transform_env_t tenv;
- arch_register_t *out_reg, *base_reg, *index_reg;
+ const arch_register_t *out_reg, *base_reg, *index_reg;
/* must be a LEA */
if (! is_ia32_Lea(irn))