From 7e3ccf46260d371552cade12f8c792bfbce4ebad Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Wed, 22 Aug 2012 18:51:32 +0200 Subject: [PATCH] MUL_VF and MUL_FV get their special life-range handling --- ir.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ir.c b/ir.c index dff566e..47b9adc 100644 --- a/ir.c +++ b/ir.c @@ -2109,6 +2109,19 @@ static bool ir_block_life_propagate(ir_block *self, ir_block *prev, bool *change /* See which operands are read and write operands */ ir_op_read_write(instr->opcode, &read, &write); + if (instr->opcode == INSTR_MUL_VF) + { + /* the float source will get an additional lifetime */ + tempbool = ir_value_life_merge(instr->_ops[2], instr->eid+1); + *changed = *changed || tempbool; + } + else if (instr->opcode == INSTR_MUL_FV) + { + /* the float source will get an additional lifetime */ + tempbool = ir_value_life_merge(instr->_ops[1], instr->eid+1); + *changed = *changed || tempbool; + } + /* Go through the 3 main operands */ for (o = 0; o < 3; ++o) { -- 2.39.2