aboutsummaryrefslogtreecommitdiff
path: root/gcc/graphite.c
diff options
context:
space:
mode:
authorSebastian Pop <sebastian.pop@amd.com>2009-08-12 14:19:33 +0000
committerSebastian Pop <spop@gcc.gnu.org>2009-08-12 14:19:33 +0000
commit8e88f9fddff4bbcbae3b70fa49d05386a56fdbd1 (patch)
treef9a4f9f1f654eb461ed80c62939a929783f0bba2 /gcc/graphite.c
parent87d4d0ee2504d5350b1b355366cff7ea095b10fc (diff)
downloadgcc-8e88f9fddff4bbcbae3b70fa49d05386a56fdbd1.zip
gcc-8e88f9fddff4bbcbae3b70fa49d05386a56fdbd1.tar.gz
gcc-8e88f9fddff4bbcbae3b70fa49d05386a56fdbd1.tar.bz2
Recompute profile after Graphite.
2009-08-05 Sebastian Pop <sebastian.pop@amd.com> * Makefile.in (graphite.o): Depends on PREDICT_H. * graphite.c: Include predict.h. (graphite_finalize): Call tree_estimate_probability. * predict.c (predict_loops): Do not call scev_initialize and scev_finalize. (tree_estimate_probability_bb): New. (tree_estimate_probability): Do not initialize loops: move that code to the driver. Call tree_estimate_probability_bb. (tree_estimate_probability_driver): New. (pass_profile): Use tree_estimate_probability_driver. * predict.h (tree_estimate_probability): Declared. From-SVN: r150684
Diffstat (limited to 'gcc/graphite.c')
-rw-r--r--gcc/graphite.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/graphite.c b/gcc/graphite.c
index 0c0b607..819116d 100644
--- a/gcc/graphite.c
+++ b/gcc/graphite.c
@@ -54,6 +54,7 @@ along with GCC; see the file COPYING3. If not see
#include "pointer-set.h"
#include "gimple.h"
#include "sese.h"
+#include "predict.h"
#ifdef HAVE_cloog
@@ -229,7 +230,12 @@ static void
graphite_finalize (bool need_cfg_cleanup_p)
{
if (need_cfg_cleanup_p)
- cleanup_tree_cfg ();
+ {
+ cleanup_tree_cfg ();
+ profile_status = PROFILE_ABSENT;
+ release_recorded_exits ();
+ tree_estimate_probability ();
+ }
cloog_finalize ();
free_original_copy_tables ();