OSDN Git Service

PR c/20187
[pf3gnuchains/gcc-fork.git] / gcc / tree-loop-linear.c
index b7e57a6..0b13e2b 100644 (file)
@@ -16,15 +16,14 @@ for more details.
 
 You should have received a copy of the GNU General Public License
 along with GCC; see the file COPYING.  If not, write to the Free
-Software Foundation, 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.  */
+Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
+02110-1301, USA.  */
 
 
 #include "config.h"
 #include "system.h"
 #include "coretypes.h"
 #include "tm.h"
-#include "errors.h"
 #include "ggc.h"
 #include "tree.h"
 #include "target.h"
@@ -243,9 +242,8 @@ void
 linear_transform_loops (struct loops *loops)
 {
   unsigned int i;
-  VEC(tree,gc) *oldivs = NULL;  /* FIXME:These should really be on the
-                                  heap.  (nathan 2005/04/15)*/
-  VEC(tree,gc) *invariants = NULL;  /* FIXME:Likewise. */
+  VEC(tree,heap) *oldivs = NULL;
+  VEC(tree,heap) *invariants = NULL;
   
   for (i = 1; i < loops->num; i++)
     {
@@ -297,7 +295,7 @@ linear_transform_loops (struct loops *loops)
                               "dependence_relations");
       
   
-      compute_data_dependences_for_loop (depth, loop_nest,
+      compute_data_dependences_for_loop (loop_nest, true,
                                         &datarefs, &dependence_relations);
       if (dump_file && (dump_flags & TDF_DETAILS))
        {
@@ -371,9 +369,8 @@ linear_transform_loops (struct loops *loops)
       free_dependence_relations (dependence_relations);
       free_data_refs (datarefs);
     }
-  VEC_free (tree, gc, oldivs);
-  VEC_free (tree, gc, invariants);
+  VEC_free (tree, heap, oldivs);
+  VEC_free (tree, heap, invariants);
   scev_reset ();
-  update_ssa (TODO_update_ssa);
-  rewrite_into_loop_closed_ssa (NULL);
+  rewrite_into_loop_closed_ssa (NULL, TODO_update_ssa_full_phi);
 }