imissing case added: computed_value_Proj() now handle Proj(Quot)
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Mon, 10 Jul 2006 11:55:48 +0000 (11:55 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Mon, 10 Jul 2006 11:55:48 +0000 (11:55 +0000)
[r8025]

ir/ir/iropt.c

index e3a6f25..ea0b9d7 100644 (file)
@@ -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;
   }