OSDN Git Service

Remove unused parameter.
authorspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Apr 2010 17:32:17 +0000 (17:32 +0000)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 00:52:11 +0000 (09:52 +0900)
2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>

* tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
(tree_if_conversion): Same.  Update call to if_convertible_loop_p.
(main_tree_if_conversion): Update call to tree_if_conversion.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158135 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree-if-conv.c

index 4b7d1e2..1d1a3b9 100644 (file)
@@ -1,3 +1,9 @@
+2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
+
+       * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
+       (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
+       (main_tree_if_conversion): Update call to tree_if_conversion.
+
 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
 
        PR 42485
 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
 
        PR 42485
@@ -6,7 +12,7 @@
        * gcc.c (display_help): Delete -b and -V.
        (process_command): Delete -b and -V.
        * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
        * gcc.c (display_help): Delete -b and -V.
        (process_command): Delete -b and -V.
        * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
-       
+
 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
             Wolfgang Gellerich  <gellerich@de.ibm.com>
 
 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
             Wolfgang Gellerich  <gellerich@de.ibm.com>
 
index 4a563f3..3a2034e 100644 (file)
@@ -584,14 +584,10 @@ get_loop_body_in_if_conv_order (const struct loop *loop)
    - it has two or more basic blocks,
    - it has only one exit,
    - loop header is not the exit edge,
    - it has two or more basic blocks,
    - it has only one exit,
    - loop header is not the exit edge,
-   - if its basic blocks and phi nodes are if convertible.  See above for
-     more info.
-   FOR_VECTORIZER enables vectorizer specific checks, for example, support
-   for vector conditions, data dependency checks, etc.
-   (Not implemented yet).  */
+   - if its basic blocks and phi nodes are if convertible.  */
 
 static bool
 
 static bool
-if_convertible_loop_p (struct loop *loop, bool for_vectorizer ATTRIBUTE_UNUSED)
+if_convertible_loop_p (struct loop *loop)
 {
   basic_block bb;
   gimple_stmt_iterator itr;
 {
   basic_block bb;
   gimple_stmt_iterator itr;
@@ -1023,13 +1019,10 @@ combine_blocks (struct loop *loop)
 
 /* Main entry point.  Apply if-conversion to the LOOP.  Return true if
    successful otherwise return false.  If false is returned then loop
 
 /* Main entry point.  Apply if-conversion to the LOOP.  Return true if
    successful otherwise return false.  If false is returned then loop
-   remains unchanged.  FOR_VECTORIZER is a boolean flag.  It indicates
-   whether if-conversion is used for vectorizer or not.  If it is used
-   for vectorizer, additional checks are used. (Vectorization checks
-   are not yet implemented).  */
+   remains unchanged.  */
 
 static bool
 
 static bool
-tree_if_conversion (struct loop *loop, bool for_vectorizer)
+tree_if_conversion (struct loop *loop)
 {
   basic_block bb;
   gimple_stmt_iterator itr;
 {
   basic_block bb;
   gimple_stmt_iterator itr;
@@ -1039,7 +1032,7 @@ tree_if_conversion (struct loop *loop, bool for_vectorizer)
 
   /* If-conversion is not appropriate for all loops.  First, check if
      loop is if-convertible or not.  */
 
   /* If-conversion is not appropriate for all loops.  First, check if
      loop is if-convertible or not.  */
-  if (!if_convertible_loop_p (loop, for_vectorizer))
+  if (!if_convertible_loop_p (loop))
     {
       if (dump_file && (dump_flags & TDF_DETAILS))
        fprintf (dump_file,"-------------------------\n");
     {
       if (dump_file && (dump_flags & TDF_DETAILS))
        fprintf (dump_file,"-------------------------\n");
@@ -1114,9 +1107,8 @@ main_tree_if_conversion (void)
     return 0;
 
   FOR_EACH_LOOP (li, loop, 0)
     return 0;
 
   FOR_EACH_LOOP (li, loop, 0)
-    {
-      tree_if_conversion (loop, true);
-    }
+    tree_if_conversion (loop);
+
   return 0;
 }
 
   return 0;
 }