Commit 7b371e73 by Sebastian Pop Committed by Sebastian Pop

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
parent 4ab71973
2010-05-26 Sebastian Pop <sebastian.pop@amd.com> 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
* tree-if-conv.c (tree_if_conversion): Do not return a bool.
2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
* tree-if-conv.c: Update copyright years. Fix comments. * tree-if-conv.c: Update copyright years. Fix comments.
Fix indentation. Fix indentation.
......
...@@ -1004,10 +1004,10 @@ combine_blocks (struct loop *loop) ...@@ -1004,10 +1004,10 @@ combine_blocks (struct loop *loop)
merge_blocks (loop->header, exit_bb); merge_blocks (loop->header, exit_bb);
} }
/* Main entry point: return true when LOOP is if-converted, otherwise /* If-convert LOOP when it is legal. For the moment this pass has no
the loop remains unchanged. */ profitability analysis. */
static bool static void
tree_if_conversion (struct loop *loop) tree_if_conversion (struct loop *loop)
{ {
gimple_stmt_iterator itr; gimple_stmt_iterator itr;
...@@ -1027,7 +1027,7 @@ tree_if_conversion (struct loop *loop) ...@@ -1027,7 +1027,7 @@ tree_if_conversion (struct loop *loop)
ifc_bbs = NULL; ifc_bbs = NULL;
} }
free_dominance_info (CDI_POST_DOMINATORS); free_dominance_info (CDI_POST_DOMINATORS);
return false; return;
} }
for (i = 0; i < loop->num_nodes; i++) for (i = 0; i < loop->num_nodes; i++)
...@@ -1071,8 +1071,6 @@ tree_if_conversion (struct loop *loop) ...@@ -1071,8 +1071,6 @@ tree_if_conversion (struct loop *loop)
clean_predicate_lists (loop); clean_predicate_lists (loop);
free (ifc_bbs); free (ifc_bbs);
ifc_bbs = NULL; ifc_bbs = NULL;
return true;
} }
/* Tree if-conversion pass management. */ /* Tree if-conversion pass management. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment