From 672b5c243e900427b5dcae01441d4fa3327d692c Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Sun, 18 May 2008 23:48:59 +0000 Subject: [PATCH 1/1] - BugFix of the last fix ... [r19658] --- ir/ir/iropt.c | 4 ++++ 1 file changed, 4 insertions(+) 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; } } -- 2.20.1