projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6e1daa
)
imissing case added: computed_value_Proj() now handle Proj(Quot)
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Mon, 10 Jul 2006 11:55:48 +0000
(11:55 +0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Mon, 10 Jul 2006 11:55:48 +0000
(11:55 +0000)
[r8025]
ir/ir/iropt.c
patch
|
blob
|
history
diff --git
a/ir/ir/iropt.c
b/ir/ir/iropt.c
index
e3a6f25
..
ea0b9d7
100644
(file)
--- 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;
}