From: Sebastian Pop Date: Mon, 31 Jan 2011 19:30:55 +0000 (+0000) Subject: Use Alias in common.opt to make -ftree-loop-linear an alias of -floop-interchange. X-Git-Tag: releases/gcc-4.6.0~843 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7633415cb2c6c35afd15d70a99db3046a3d70349;p=thirdparty%2Fgcc.git Use Alias in common.opt to make -ftree-loop-linear an alias of -floop-interchange. 2011-01-31 Sebastian Pop * common.opt (ftree-loop-linear): Use Alias to make it an alias of -floop-interchange. * invoke.texi (-ftree-loop-linear): Make it clear that this flag is an alias of -floop-interchange and that it requires the Graphite infrastructure. * tree-ssa-loop.c (gate_graphite_transforms): Do not set flag_loop_interchange based on the value of flag_tree_loop_linear. From-SVN: r169445 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f575543585ce..a17a9a36cd11 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,13 @@ +2011-01-31 Sebastian Pop + + * common.opt (ftree-loop-linear): Use Alias to make it an alias of + -floop-interchange. + * invoke.texi (-ftree-loop-linear): Make it clear that this flag + is an alias of -floop-interchange and that it requires the + Graphite infrastructure. + * tree-ssa-loop.c (gate_graphite_transforms): Do not set + flag_loop_interchange based on the value of flag_tree_loop_linear. + 2011-01-31 Jakub Jelinek Richard Guenther diff --git a/gcc/common.opt b/gcc/common.opt index 12f41b13e88e..aed8dd1a5124 100644 --- a/gcc/common.opt +++ b/gcc/common.opt @@ -1903,8 +1903,8 @@ Common Report Var(flag_tree_loop_im) Init(1) Optimization Enable loop invariant motion on trees ftree-loop-linear -Common Report Var(flag_tree_loop_linear) Optimization -Enable linear loop transforms on trees +Common Alias(floop-interchange) +Enable loop interchange transforms. Same as -floop-interchange ftree-loop-ivcanon Common Report Var(flag_tree_loop_ivcanon) Init(1) Optimization diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 93e01f87d633..b25d8cf48269 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -6870,8 +6870,10 @@ at @option{-O} and higher. @item -ftree-loop-linear @opindex ftree-loop-linear -Perform linear loop transformations on tree. This flag can improve cache -performance and allow further loop optimizations to take place. +Perform loop interchange transformations on tree. Same as +@option{-floop-interchange}. To use this code transformation, GCC has +to be configured with @option{--with-ppl} and @option{--with-cloog} to +enable the Graphite loop transformation infrastructure. @item -floop-interchange @opindex floop-interchange diff --git a/gcc/tree-ssa-loop.c b/gcc/tree-ssa-loop.c index 5534b6a515ae..656d2b6a8e00 100644 --- a/gcc/tree-ssa-loop.c +++ b/gcc/tree-ssa-loop.c @@ -266,17 +266,12 @@ gate_graphite_transforms (void) is turned on. */ if (flag_loop_block || flag_loop_interchange - || flag_tree_loop_linear || flag_loop_strip_mine || flag_graphite_identity || flag_loop_parallelize_all || flag_loop_flatten) flag_graphite = 1; - /* Make flag_tree_loop_linear an alias of flag_loop_interchange. */ - if (flag_tree_loop_linear) - flag_loop_interchange = flag_tree_loop_linear; - return flag_graphite != 0; }