From: Michael Beck Date: Sun, 18 May 2008 23:48:59 +0000 (+0000) Subject: - BugFix of the last fix ... X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=672b5c243e900427b5dcae01441d4fa3327d692c;hp=003a2142dedebfec4b81892f22523e77bb4c89ea;p=libfirm - BugFix of the last fix ... [r19658] --- diff --git a/ir/ir/iropt.c b/ir/ir/iropt.c index dcd0acd22..ceb7522bd 100644 --- a/ir/ir/iropt.c +++ b/ir/ir/iropt.c @@ -888,10 +888,12 @@ static ir_node *equivalent_node_Eor(ir_node *n) /* (a ^ b) ^ a -> b */ n = ab; DBG_OPT_ALGSIM1(oldn, a, b, n, FS_OPT_EOR_A_B_A); + return n; } else if (ab == b) { /* (a ^ b) ^ b -> a */ n = aa; DBG_OPT_ALGSIM1(oldn, a, b, n, FS_OPT_EOR_A_B_A); + return n; } } if (is_Eor(b)) { @@ -902,10 +904,12 @@ static ir_node *equivalent_node_Eor(ir_node *n) /* a ^ (a ^ b) -> b */ n = bb; DBG_OPT_ALGSIM1(oldn, a, b, n, FS_OPT_EOR_A_B_A); + return n; } else if (bb == a) { /* a ^ (b ^ a) -> b */ n = ba; DBG_OPT_ALGSIM1(oldn, a, b, n, FS_OPT_EOR_A_B_A); + return n; } }