projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95dd9ae
)
we can't negate ConstP
author
Matthias Braun
<matze@braunis.de>
Tue, 4 Sep 2007 14:13:59 +0000
(14:13 +0000)
committer
Matthias Braun
<matze@braunis.de>
Tue, 4 Sep 2007 14:13:59 +0000
(14:13 +0000)
[r15666]
ir/ir/iropt.c
patch
|
blob
|
history
diff --git
a/ir/ir/iropt.c
b/ir/ir/iropt.c
index
7164938
..
62f43dd
100644
(file)
--- a/
ir/ir/iropt.c
+++ b/
ir/ir/iropt.c
@@
-2047,7
+2047,7
@@
restart:
return n;
/* Sub(a, Const) -> Add(a, -Const) */
- if (is_Const(b)) {
+ if (is_Const(b)
&& get_irn_mode(b) != mode_P
) {
tarval *tv = get_Const_tarval(b);
tv = tarval_neg(tv);