projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd54b0a
)
fixed processing of mode_T nodes
author
Christian Helmer
<c.helmer@gmx.de>
Fri, 28 Sep 2012 14:38:12 +0000
(16:38 +0200)
committer
Christian Helmer
<c.helmer@gmx.de>
Fri, 26 Oct 2012 13:52:05 +0000
(15:52 +0200)
ir/opt/gvn_pre.c
patch
|
blob
|
history
diff --git
a/ir/opt/gvn_pre.c
b/ir/opt/gvn_pre.c
index
e8672d0
..
4cdf4ca
100644
(file)
--- a/
ir/opt/gvn_pre.c
+++ b/
ir/opt/gvn_pre.c
@@
-265,7
+265,9
@@
static int compare_gvn_identities(const void *elt, const void *key)
/* memops are not the same, even if we want to optimize them
we have to take the order in account */
- if (is_memop(a) || is_memop(b)) {
+ if (is_memop(a) || is_memop(b) ||
+ get_irn_mode(a) == mode_T ||
+ get_irn_mode(b) == mode_T) {
/* Loads with the same predecessors are the same value;
this should only happen after phi translation. */
if ((! is_Load(a) || ! is_Load(b)) && (! is_Store(a) || ! is_Store(b)))