From: Christian Helmer Date: Fri, 28 Sep 2012 14:38:12 +0000 (+0200) Subject: fixed processing of mode_T nodes X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=197d247f6e886b8ee6e327c4ebcd16f20994d487;p=libfirm fixed processing of mode_T nodes --- diff --git a/ir/opt/gvn_pre.c b/ir/opt/gvn_pre.c index e8672d084..4cdf4ca3a 100644 --- 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)))