re PR tree-optimization/58028 (Several failures in libgomp.graphite after revision...
authorTobias Grosser <tobias@grosser.es>
Mon, 3 Mar 2014 11:39:22 +0000 (11:39 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 3 Mar 2014 11:39:22 +0000 (11:39 +0000)
2014-03-03  Tobias Grosser  <tobias@grosser.es>
Mircea Namolaru  <mircea.namolaru@inria.fr>

PR tree-optimization/58028
* graphite-clast-to-gimple.c (set_cloog_options): Don't remove
scalar dimensions.

Co-Authored-By: Mircea Namolaru <mircea.namolaru@inria.fr>
From-SVN: r208273

gcc/ChangeLog
gcc/graphite-clast-to-gimple.c

index 551e134e0642cb143029bb447867dcc6e508abb7..a1b4e54735770fb3b5796f3d2e1ef0dc42886689 100644 (file)
@@ -1,3 +1,10 @@
+2014-03-03  Tobias Grosser  <tobias@grosser.es>
+       Mircea Namolaru  <mircea.namolaru@inria.fr>
+
+       PR tree-optimization/58028
+       * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
+       scalar dimensions.
+
 2014-03-03  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
 
        * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
index 0edeb29f15dd913a2ae79cdbd0040dc5441507e1..fc60845d85ad9e4ac9557996add5f23d2f793c88 100644 (file)
@@ -1522,6 +1522,13 @@ set_cloog_options (void)
      variables.  */
   options->save_domains = 1;
 
+  /* Do not remove scalar dimensions.  CLooG by default removes scalar 
+     dimensions very early from the input schedule.  However, they are 
+     necessary to correctly derive from the saved domains 
+     (options->save_domains) the relationship between the generated loops 
+     and the schedule dimensions they are generated from.  */ 
+  options->noscalars = 1;
+
   /* Disable optimizations and make cloog generate source code closer to the
      input.  This is useful for debugging,  but later we want the optimized
      code.