This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch][tuples] fix thinko
- From: "Rafael Espindola" <espindola at google dot com>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Cc: "Diego Novillo" <dnovillo at google dot com>
- Date: Mon, 25 Feb 2008 16:42:01 +0000
- Subject: [patch][tuples] fix thinko
The code was doing the opposite of the comment.
Testing now. OK if it passes?
* tree-cfgcleanup.c (tree_forwarder_block_p): fix thinko.
Cheers,
--
Rafael Avila de Espindola
Google Ireland Ltd.
Gordon House
Barrow Street
Dublin 4
Ireland
Registered in Dublin, Ireland
Registration Number: 368047
diff --git a/gcc/tree-cfgcleanup.c b/gcc/tree-cfgcleanup.c
index 833386a..e4b8fd0 100644
--- a/gcc/tree-cfgcleanup.c
+++ b/gcc/tree-cfgcleanup.c
@@ -227,7 +227,7 @@ tree_forwarder_block_p (basic_block bb, bool phi_wanted)
if (single_succ_p (bb) != 1
/* If PHI_WANTED is false, BB must not have any PHI nodes.
Otherwise, BB must have PHI nodes. */
- || (gimple_seq_empty_p (phi_nodes (bb)) ^ phi_wanted)
+ || !(gimple_seq_empty_p (phi_nodes (bb)) ^ phi_wanted)
/* BB may not be a predecessor of EXIT_BLOCK_PTR. */
|| single_succ (bb) == EXIT_BLOCK_PTR
/* Nor should this be an infinite loop. */