summaryrefslogtreecommitdiffhomepage
path: root/ir/be/ia32
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2018-09-01 11:39:05 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2018-09-01 11:42:36 +0200
commit5963ee21685854b5353ee91bb8c8ce7b2a1a2d81 (patch)
tree6ad6cfcbb9afc7ed0eabf5628079a0d0452ae461 /ir/be/ia32
parent1844595e49cc37d32bbd2aaf4d9a0a7a4959ed2a (diff)
ia32: Do not unnecessarily attach a Proj to an fadd.
Even though the node loads from memory, it is from a constant pool and there will be no memory user. So making preparations for one is pointless.
Diffstat (limited to 'ir/be/ia32')
-rw-r--r--ir/be/ia32/ia32_transform.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/ir/be/ia32/ia32_transform.c b/ir/be/ia32/ia32_transform.c
index ddf2480..e44f674 100644
--- a/ir/be/ia32/ia32_transform.c
+++ b/ir/be/ia32/ia32_transform.c
@@ -4348,11 +4348,8 @@ static ir_node *gen_ia32_l_LLtoFloat(ir_node *node)
ir_node *const index = new_bd_ia32_Shr(dbgi, block, new_val_high, count, X86_SIZE_32);
ir_node *const noreg = ia32_new_NoReg_fp(irg);
ir_node *const fpcw = get_initial_fpcw(irg);
- ir_node *const fadd = new_bd_ia32_fadd(dbgi, block, base, index, nomem, res, noreg, fpcw, X86_SIZE_32);
- set_indexed_ent(fadd, 2, ia32_gen_fp_known_const(ia32_ULLBIAS));
-
- set_irn_mode(fadd, mode_T);
- res = be_new_Proj(fadd, pn_ia32_fadd_res);
+ res = new_bd_ia32_fadd(dbgi, block, base, index, nomem, res, noreg, fpcw, X86_SIZE_32);
+ set_indexed_ent(res, 2, ia32_gen_fp_known_const(ia32_ULLBIAS));
}
return res;
}