aboutsummaryrefslogtreecommitdiff
path: root/gcc/graphite.c
diff options
context:
space:
mode:
authorTobias Grosser <grosser@fim.uni-passau.de>2008-10-23 17:00:35 +0000
committerTobias Grosser <grosser@gcc.gnu.org>2008-10-23 17:00:35 +0000
commit20ed8b32bad9d2e49ea9a39533aead8eda33e3df (patch)
tree0da344ad10eca1534e339ee2475afd4287ca8206 /gcc/graphite.c
parent1fa8718bc8b44c1aaef0a32b870d7383b2934c73 (diff)
downloadgcc-20ed8b32bad9d2e49ea9a39533aead8eda33e3df.zip
gcc-20ed8b32bad9d2e49ea9a39533aead8eda33e3df.tar.gz
gcc-20ed8b32bad9d2e49ea9a39533aead8eda33e3df.tar.bz2
graphite.c (graphite_apply_transformations): Check for -fgraphite-identity.
2008-10-23 Tobias Grosser <grosser@fim.uni-passau.de> * graphite.c (graphite_apply_transformations): Check for -fgraphite-identity. * toplev.c (process_options): Add graphite_identity. * tree-ssa-loop.c (gate_graphite_transforms): Add graphite_identity. From-SVN: r141325
Diffstat (limited to 'gcc/graphite.c')
-rw-r--r--gcc/graphite.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/gcc/graphite.c b/gcc/graphite.c
index 18174ee..a14dd14 100644
--- a/gcc/graphite.c
+++ b/gcc/graphite.c
@@ -5068,17 +5068,13 @@ graphite_apply_transformations (scop_p scop)
if (flag_loop_block)
transform_done = graphite_trans_scop_block (scop);
-#if 0 && ENABLE_CHECKING
- /* When the compiler is configured with ENABLE_CHECKING, always
- generate code, even if we did not apply any transformation. This
- provides better code coverage of the backend code generator.
-
- This also allows to check the performance for an identity
- transform: GIMPLE -> GRAPHITE -> GIMPLE; and the output of CLooG
- is never an identity: if CLooG optimizations are not disabled,
- the CLooG output is always optimized in control flow. */
- transform_done = true;
-#endif
+ /* Generate code even if we did not apply any real transformation.
+ This also allows to check the performance for the identity
+ transformation: GIMPLE -> GRAPHITE -> GIMPLE
+ Keep in mind that CLooG optimizes in control, so the loop structure
+ may change, even if we only use -fgraphite-identity. */
+ if (flag_graphite_identity)
+ transform_done = true;
return transform_done;
}