Use Alias in common.opt to make -ftree-loop-linear an alias of -floop-interchange.

2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>

	* 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
This commit is contained in:
Sebastian Pop 2011-01-31 19:30:55 +00:00 committed by Sebastian Pop
parent fabb6f8ea1
commit 7633415cb2
4 changed files with 16 additions and 9 deletions

View File

@ -1,3 +1,13 @@
2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
* 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 <jakub@redhat.com>
Richard Guenther <rguenther@suse.de>

View File

@ -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

View File

@ -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

View File

@ -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;
}