This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[lno][committed] Fix -ftree-loop-linear for most cases


I committed this as obvious as it fixes a lot of SPEC when runnning
with -ftree-loop-linear.

Thanks,
Andrew Pinski


2004-09-15 Andrew Pinski <apinski@apple.com>


        * tree-loop-linear.c (linear_transform_loops): Continue when
        loop_nest is null.

Index: tree-loop-linear.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-loop-linear.c,v
retrieving revision 1.1.2.18
diff -u -p -r1.1.2.18 tree-loop-linear.c
--- tree-loop-linear.c  13 Sep 2004 19:30:40 -0000      1.1.2.18
+++ tree-loop-linear.c  15 Sep 2004 22:31:56 -0000
@@ -254,6 +254,10 @@ linear_transform_loops (struct loops *lo
       lambda_loopnest before, after;
       lambda_trans_matrix trans;
       bool problem = false;
+
+      if (loop_nest)
+       continue;
+
       flow_loop_scan (loop_nest, LOOP_ALL);
       if (dump_file)
        flow_loop_dump (loop_nest, dump_file, NULL, 0);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]