projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed equivalent_node_Quot()
[libfirm]
/
ir
/
ir
/
iropt.c
diff --git
a/ir/ir/iropt.c
b/ir/ir/iropt.c
index
0cfee7b
..
0c6d049
100644
(file)
--- a/
ir/ir/iropt.c
+++ b/
ir/ir/iropt.c
@@
-1085,8
+1085,8
@@
static ir_node *equivalent_node_Div(ir_node *n)
* Optimize a / 1.0 = a.
*/
static ir_node *equivalent_node_Quot(ir_node *n) {
* Optimize a / 1.0 = a.
*/
static ir_node *equivalent_node_Quot(ir_node *n) {
- ir_node *a = get_
Div
_left(n);
- ir_node *b = get_
Div
_right(n);
+ ir_node *a = get_
Quot
_left(n);
+ ir_node *b = get_
Quot
_right(n);
/* Div is not commutative. */
if (classify_tarval(value_of(b)) == TV_CLASSIFY_ONE) { /* Quot(x, 1) == x */
/* Div is not commutative. */
if (classify_tarval(value_of(b)) == TV_CLASSIFY_ONE) { /* Quot(x, 1) == x */