From: Michael Beck Date: Mon, 10 Jul 2006 11:55:48 +0000 (+0000) Subject: imissing case added: computed_value_Proj() now handle Proj(Quot) X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=e36148354367cb27eff93bcbee80b7303285126b;p=libfirm imissing case added: computed_value_Proj() now handle Proj(Quot) [r8025] --- diff --git a/ir/ir/iropt.c b/ir/ir/iropt.c index e3a6f256e..ea0b9d7e9 100644 --- a/ir/ir/iropt.c +++ b/ir/ir/iropt.c @@ -553,7 +553,8 @@ static tarval *computed_value_Proj_Cmp(ir_node *n) } /* computed_value_Proj_Cmp */ /** - * Return the value of a Proj, handle Proj(Cmp), Proj(Div), Proj(Mod), Proj(DivMod). + * Return the value of a Proj, handle Proj(Cmp), Proj(Div), Proj(Mod), + * Proj(DivMod) and Proj(Quot). */ static tarval *computed_value_Proj(ir_node *n) { ir_node *a = get_Proj_pred(n); @@ -582,6 +583,11 @@ static tarval *computed_value_Proj(ir_node *n) { return computed_value(a); break; + case iro_Quot: + if (get_Proj_proj(n) == pn_Quot_res) + return computed_value(a); + break; + default: return tarval_bad; }