From 0afe73323d8f3057e9d65c88eb6e8fd59f2c4b81 Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Mon, 3 Mar 2014 11:39:22 +0000 Subject: [PATCH] re PR tree-optimization/58028 (Several failures in libgomp.graphite after revision 200946) 2014-03-03 Tobias Grosser Mircea Namolaru PR tree-optimization/58028 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove scalar dimensions. Co-Authored-By: Mircea Namolaru From-SVN: r208273 --- gcc/ChangeLog | 7 +++++++ gcc/graphite-clast-to-gimple.c | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 551e134e064..a1b4e547357 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2014-03-03 Tobias Grosser + Mircea Namolaru + + PR tree-optimization/58028 + * graphite-clast-to-gimple.c (set_cloog_options): Don't remove + scalar dimensions. + 2014-03-03 Ramana Radhakrishnan * config/arm/neon.md (*movmisalign): Legitimize addresses diff --git a/gcc/graphite-clast-to-gimple.c b/gcc/graphite-clast-to-gimple.c index 0edeb29f15d..fc60845d85a 100644 --- a/gcc/graphite-clast-to-gimple.c +++ b/gcc/graphite-clast-to-gimple.c @@ -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. -- 2.30.2