summaryrefslogtreecommitdiff
path: root/gcc/tree-if-conv.c
diff options
context:
space:
mode:
authorSebastian Pop <sebastian.pop@amd.com>2010-05-26 16:45:56 +0000
committerSebastian Pop <spop@gcc.gnu.org>2010-05-26 16:45:56 +0000
commit7b371e73d8f54518f30ac28c978eabfd684e7af7 (patch)
treeb33ffd26d39e598cd8baa7aac50721156cb42fd3 /gcc/tree-if-conv.c
parent4ab719737cb105c71fc319566be3ae99da827489 (diff)
downloadgcc-7b371e73d8f54518f30ac28c978eabfd684e7af7.tar.gz
Make tree_if_conversion not return a bool.
2010-05-26 Sebastian Pop <sebastian.pop@amd.com> * tree-if-conv.c (tree_if_conversion): Do not return a bool. From-SVN: r159881
Diffstat (limited to 'gcc/tree-if-conv.c')
-rw-r--r--gcc/tree-if-conv.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/gcc/tree-if-conv.c b/gcc/tree-if-conv.c
index 127b5e36b59..ba3b7c6848a 100644
--- a/gcc/tree-if-conv.c
+++ b/gcc/tree-if-conv.c
@@ -1004,10 +1004,10 @@ combine_blocks (struct loop *loop)
merge_blocks (loop->header, exit_bb);
}
-/* Main entry point: return true when LOOP is if-converted, otherwise
- the loop remains unchanged. */
+/* If-convert LOOP when it is legal. For the moment this pass has no
+ profitability analysis. */
-static bool
+static void
tree_if_conversion (struct loop *loop)
{
gimple_stmt_iterator itr;
@@ -1027,7 +1027,7 @@ tree_if_conversion (struct loop *loop)
ifc_bbs = NULL;
}
free_dominance_info (CDI_POST_DOMINATORS);
- return false;
+ return;
}
for (i = 0; i < loop->num_nodes; i++)
@@ -1071,8 +1071,6 @@ tree_if_conversion (struct loop *loop)
clean_predicate_lists (loop);
free (ifc_bbs);
ifc_bbs = NULL;
-
- return true;
}
/* Tree if-conversion pass management. */