Commit 0c157edb authored by Christoph Mallon's avatar Christoph Mallon
Browse files

Use ia32_copy_am_attrs().

parent 1cb93250
...@@ -5436,11 +5436,7 @@ static void postprocess_fp_call_results(void) ...@@ -5436,11 +5436,7 @@ static void postprocess_fp_call_results(void)
ir_mode *mode = get_ia32_ls_mode(succ); ir_mode *mode = get_ia32_ls_mode(succ);
ir_node *st = new_bd_ia32_fst(db, block, base, idx, ir_node *st = new_bd_ia32_fst(db, block, base, idx,
mem, value, mode); mem, value, mode);
//ir_node *mem = new_r_Proj(st, mode_M, pn_ia32_fst_M); ia32_copy_am_attrs(st, succ);
set_ia32_am_offs_int(st, get_ia32_am_offs_int(succ));
if (is_ia32_use_frame(succ))
set_ia32_use_frame(st);
set_ia32_frame_ent(st, get_ia32_frame_ent(succ));
set_irn_pinned(st, get_irn_pinned(succ)); set_irn_pinned(st, get_irn_pinned(succ));
set_ia32_op_type(st, ia32_AddrModeD); set_ia32_op_type(st, ia32_AddrModeD);
......
...@@ -915,13 +915,8 @@ static int sim_store(x87_state *state, ir_node *n) ...@@ -915,13 +915,8 @@ static int sim_store(x87_state *state, ir_node *n)
ir_node *const vfld = new_bd_ia32_fld(NULL, block, get_irn_n(n, 0), get_irn_n(n, 1), mem, mode); ir_node *const vfld = new_bd_ia32_fld(NULL, block, get_irn_n(n, 0), get_irn_n(n, 1), mem, mode);
/* copy all attributes */ /* copy all attributes */
set_ia32_frame_ent(vfld, get_ia32_frame_ent(n)); ia32_copy_am_attrs(vfld, n);
if (is_ia32_use_frame(n))
set_ia32_use_frame(vfld);
set_ia32_op_type(vfld, ia32_AddrModeS); set_ia32_op_type(vfld, ia32_AddrModeS);
add_ia32_am_offs_int(vfld, get_ia32_am_offs_int(n));
set_ia32_am_sc(vfld, get_ia32_am_sc(n));
set_ia32_ls_mode(vfld, mode);
ir_node *const rproj = new_r_Proj(vfld, mode, pn_ia32_fld_res); ir_node *const rproj = new_r_Proj(vfld, mode, pn_ia32_fld_res);
ir_node *const mproj = new_r_Proj(vfld, mode_M, pn_ia32_fld_M); ir_node *const mproj = new_r_Proj(vfld, mode_M, pn_ia32_fld_M);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment