projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a66e32
)
fixed DivMod optimization
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Tue, 15 Jun 2004 14:41:09 +0000
(14:41 +0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Tue, 15 Jun 2004 14:41:09 +0000
(14:41 +0000)
[r3092]
ir/ir/iropt.c
patch
|
blob
|
history
diff --git
a/ir/ir/iropt.c
b/ir/ir/iropt.c
index
2d07656
..
c093a64
100644
(file)
--- a/
ir/ir/iropt.c
+++ b/
ir/ir/iropt.c
@@
-16,6
+16,7
@@
# include "irnode_t.h"
# include "irgraph_t.h"
+# include "irmode_t.h"
# include "iropt_t.h"
# include "ircons.h"
# include "irgmod.h"
@@
-1079,7
+1080,7
@@
static ir_node *transform_node_DivMod(ir_node *n)
b = new_Const (mode, resb);
evaluated = 1;
}
- } else if (ta == get_mode_null(
get_tarval_mode(ta)
)) {
+ } else if (ta == get_mode_null(
mode
)) {
b = a;
evaluated = 1;
}