projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9e1315
)
Use is_Const_all_one() instead of tarval_is_all_one(get_Const_tarval()).
author
Christoph Mallon
<christoph.mallon@gmx.de>
Mon, 17 Sep 2007 16:31:52 +0000
(16:31 +0000)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Mon, 17 Sep 2007 16:31:52 +0000
(16:31 +0000)
[r15845]
ir/ir/iropt.c
patch
|
blob
|
history
diff --git
a/ir/ir/iropt.c
b/ir/ir/iropt.c
index
5c802b6
..
b1263d7
100644
(file)
--- a/
ir/ir/iropt.c
+++ b/
ir/ir/iropt.c
@@
-1124,12
+1124,12
@@
static ir_node *equivalent_node_And(ir_node *n) {
DBG_OPT_ALGSIM0(oldn, n, FS_OPT_AND);
return n;
}
- if (
tarval_is_all_one(value_of(a)
)) {
+ if (
is_Const(a) && is_Const_all_one(a
)) {
n = b;
DBG_OPT_ALGSIM1(oldn, a, b, n, FS_OPT_AND);
return n;
}
- if (
tarval_is_all_one(value_of(b)
)) {
+ if (
is_Const(b) && is_Const_all_one(b
)) {
n = a;
DBG_OPT_ALGSIM1(oldn, a, b, n, FS_OPT_AND);
return n;